Revision [1196]

This is an old revision of VariableXPATH made by DavidLee on 2010-02-13 07:19:25.

 

XPATH Variable


Similar to the PATH environment variable, the shell uses the XPATH variable as a list of directories to search to find xmlsh scripts. Unlike the PATH variable, however, the XPATH variable is treated as a sequence, not a ";" or ":" separated string. If the XPATH only contains a single directory it can be set as a sequence of 1.

Example: Set the XPATH variable to the directory C:/xmlshscripts
XPATH=C:/xmlshscripts


If you want to set XPATH to more then one directory then you can use any XML expression which produces sequences. The simplilest is the sequence constructor ().

Example Set the XPATH variable to 3 directories
XPATH=(/usr/local/bin/xmlshscripts $HOME/xmlsh /opt/myscripts)


Similarly you can use any XML expression which produces sequences such as <[ ]>

XPATH=<["/usr/local/bin/xmlshscripts", concat($HOME,"/xmlsh"), "/opt/myscripts" ]>


As with all sequence variables you can use the += notation to add to the variable

XPATH+=/my/directory

Variables
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki