You can use the CompileXSLT tool to precompile one or more stylesheets, use the CompileXPath tool to precompile one or more XPath expressions, and use the CompileXQuery tool to precompile one or more XQuery expressions.
Before you can use these tools, you must create a new profile with the feature-pack functionality or augment an existing profile with the feature pack.
compileXSLT.bat -out output -dir directory -pkg package [-func name=funcName type=funcType argtype=argType...] ... -baseURI URI -imm int -v -h { stylesheet... | -i }
./compileXSLT.sh -out output -dir directory -pkg package [-func name=funcName type=funcType argtype=argType...] ... -baseURI URI -imm int -v -h { stylesheet... | -i }
By default, the base name is XSLTModule.
This option is ignored if compiling multiple stylesheets.
The default is the current working directory.
The default is the Java™ default package.
This simply declares the function, and a method object for the function also must be bound to the dynamic context at execution time.
This option can be used multiple times.
If the value of any option contains a blank space, enclose it in quotation marks.
This option can be used multiple times.
-func name=la,"http://www.ibm.com/Los Angeles" type=boolean,http://www.w3.org/2001/XMLSchema
This compiles the C:\stylesheets\simple.xml stylesheet and places the resulting files in C:\stylesheets\output\com\examples.
This compiles the /var/stylesheets/simple.xml stylesheet and places the resulting files in /var/stylesheets/output/com/examples.
compileXPath.bat -out output -dir directory -pkg package -cpm mode -ns prefix=URI -schema URI [-func name=funcName type=funcType argtype=argType...] ... [-var name=varName type=varType] ... -baseURI URI -dnet URI -dnf URI -imm int -v -h { xpathfile... | -i }
./compileXPath.sh -out output -dir directory -pkg package -cpm mode -ns prefix=URI -schema URI [-func name=funcName type=funcType argtype=argType...] ... [-var name=varName type=varType] ... -baseURI URI -dnet URI -dnf URI -imm int -v -h { xpathfile... | -i }
By default, the base is XPathModule.
This option is ignored if compiling multiple expressions.
The default is the current working directory.
The default is the Java default package.
For example, use 1.0 for compatibility with XPath Version 1.0.
If the value of any option contains a blank space, enclose it in quotation marks.
This option can be used multiple times. In the case of multiple -ns arguments with the same prefix, the last one prevails.
This option can be used multiple times.
This simply declares the function, and a method object for the function also must be bound to the dynamic context at execution time.
This option can be used multiple times.
If the value of any option contains a blank space, enclose it in quotation marks.
This option can be used multiple times.
-func name=la,"http://www.ibm.com/Los Angeles" type=boolean,http://www.w3.org/2001/XMLSchema
If the variable is in no namespace, the namespace URI should be omitted.
Localpart is a required value.
If the value of any option contains a blank space, enclose it in quotation marks.
This option can be used multiple times.
-var name=la,"http://www.ibm.com/Los Angeles" type=boolean,http://www.w3.org/2001/XMLSchema
The namespace URI, if present, is used for any unprefixed QName appearing in a position where an element or type name is expected.
The namespace URI, if present, is used for any unprefixed QName appearing in a position where a function name is expected.
This compiles the XPath expression provided in C:\XPath\simpleXPath.txt and places the resulting files in C:\XPath\output\com\examples.
This compiles the XPath expression provided in /var/XPath/simpleXPath.txt and places the resulting files in /var/XPath/output/com/examples.
compileXQuery.bat -out output -dir directory -pkg package [-func name=funcName type=funcType argtype=argType...] ... -baseURI URI -dnet URI -dnf URI -imm int -bsp int -csm int -cnmi int -cnmp int -eso int -ordm int -v -h { xqueryfile... | -i }
./compileXQuery.sh -out output -dir directory -pkg package [-func name=funcName type=funcType argtype=argType...] ... -baseURI URI -dnet URI -dnf URI -imm int -bsp int -csm int -cnmi int -cnmp int -eso int -ordm int -v -h { xqueryfile... | -i }
By default, the base name is XQueryModule.
This option is ignored if compiling multiple expressions.
The default is the current working directory.
The default is the Java default package.
This simply declares the function, and a method object for the function also must be bound to the dynamic context at execution time.
This option can be used multiple times.
If the value of any option contains a blank space, enclose it in quotation marks.
This option can be used multiple times.
-func name=la,"http://www.ibm.com/Los Angeles" type=boolean,http://www.w3.org/2001/XMLSchema
The namespace URI, if present, is used for any unprefixed QName appearing in a position where an element or type name is expected.
The namespace URI, if present, is used for any unprefixed QName appearing in a position where a function name is expected.
This is the default value.
The type of a constructed element node is xs:anyType, and all attribute and element nodes copied during node construction retain their original types.
This is the default value.
The type of a constructed element node is xs:untyped, all element nodes copied during node construction receive the type xs:untyped, and all attribute nodes copied during node construction receive the type xs:untypedAtomic.
Inherit mode should be used in namespace binding assignment when an existing element node is copied by an element constructor.
This is the default value.
No-inherit mode should be used in namespace binding assignment when an existing element node is copied by an element constructor.
Preserve mode should be used in namespace binding assignment when an existing element node is copied by an element constructor.
This is the default value.
No-preserve mode should be used in namespace binding assignment when an existing element node is copied by an element constructor.
This is the default value.
This is the default value.
This compiles the XQuery expression provided in C:\XQuery\simpleXQuery.txt and places the resulting files in C:\XQuery\output\com\examples.
This compiles the XQuery expression provided in /var/XQuery/simpleXQuery.txt and places the resulting files in /var/XQuery/output/com/examples.