The include directive is not part of the SgmlQL language, but a pre-processing command that can only appear between top-level queries. It includes a file that may contain queries
Includes can be nested (up to 10 levels).
Prototype:
include string
Example:
With the file "predef.mtsgmlql" set to:
global $dir="/home/sgmlql/archives/lexicons"; cd "/home/sgmlql"; pwd; |
2655$ mtsgmlql Query[1]$ include "predef.mtsgmlql";
/home/sgmlql
Query[2]$ $dir;
/home/sgmlql/archives/lexicons
Query[3]$