Revision [316]
This is an old revision of CommandImport made by DavidLee on 2008-12-09 13:41:21.
import module [prefix=]uri
The import command imports a module into the default namespace or a named namespace.
If prefix is omited then the module is imported into the default namespace.
If prefix is specified then the module is imported into the named prefix and commands are accessed by using the prefix.
Module is a java package that must already exist in the CLASSPATH of the current VM.
Commands are found by looking in that package for classes that extend the XCommand abstract class.
Commands may also be xmlsh scripts as resources within the specified package (and end with the .xsh extension).
Example
$ import module xp=org.xmlsh.xproc $ xp:xproc xprocfile.xpl ...
CommandsBuiltin