Revision [321]

This is an old revision of CommandImport made by DavidLee on 2008-12-19 04:36:05.

 

import module [prefix=]uri


The import command imports a module into the default namespace or a named namespace.
See the Modules section for a description of Extension Modules.
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
Modules

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