![]() |
![]() ![]() ![]() |
||
|
|||
Configuring your web server |
These scripts are designed to be run from a web server, so that the output appears as HTML in your browser. To run them from a web server, you must configure your web server so that it runs X-Tract automatically when a browser requests any .xst file. We have configuration information for Apache and Microsoft IIS in the main X-Tract documentation (also available at http://www.xmlscript.org/docs/index.html). |
||
Changes needed for Web operation |
You will almost certainly need to edit the .xst scripts so that the 'appsRoot' attribute points to the directory which holds the loadbook executable. Enter the full drive and path name for that directory, so that X-Tract (when invoked by the web server) will be able to find loadbook and the database file. Remember to 'escape' the backslashes in the directory path (that is, use double backslashes instead of single backslashes). |
||
Running scripts from a browser |
You can run the scripts from your browser by specifying the .xst file, with a query string representing the arguments which would have been entered on the command line. The query string takes the form '?a=b&c=d' where 'a' and 'c' are variable names, and 'b' and 'd' their respective values. You will need to check the batch files for the exact CGI variable names expected by the scripts. Thus, a straight address search could take the form:
|
||
Running scripts from forms |
X-Tract supports CGI data passed to the application by either POST or GET methods. This means that you can build standard HTML forms for generating the query string used in the previous example. You can use X-Tract to build up the query string for you with the cgi_wrap function (see the function documentation). This will allow you to use query strings with awkward characters (like spaces) which are not otherwise acceptable to HTTP. |
||
Next... | |||
Home | New X-Tract Release | XML Script | XSL | Downloads | Documentation X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited© Copyright 1998-2000 DecisionSoft Limited |