You can use the ExecuteXSLT tool to execute a stylesheet, use the ExecuteXPath tool to execute an XPath expression, and use the ExecuteXQuery tool to execute an XQuery expression.
ExecuteXSLT.bat -outputfile file -baseURI URI -useCompiler -bindVar name=varName value=varValue -baseOutputURI URI -XSLTinitMode mode -XSLTinitTemplate template -v -h -input file stylesheet
./ExecuteXSLT.sh -outputfile file -baseURI URI -useCompiler -bindVar name=varName value=varValue -baseOutputURI URI -XSLTinitMode mode -XSLTinitTemplate template -v -h -input file stylesheet
By default, the output is sent to standard out.
If this parameter is not specified, the default behavior is to use interpreted mode.
-bindVar name=la,"http://www.ibm.com/Los Angeles" value="some value"
The default is either the base URI for the main result document or the current working directory.
This option only applies when working with XSLT.
This option only applies when working with XSLT.
-XSLTinitMode la,"http://www.ibm.com/Los Angeles"
If a named template is not set, the initial template is determined by the initial mode, context node, and template matching rules.
This option only applies when working with XSLT.
-XSLTinitTemplate la,"http://www.ibm.com/Los Angeles"
This executes the C:\stylesheets\simple.xsl stylesheet and places the resulting output on standard out.
This executes the /var/stylesheets/simple.xsl stylesheet and places the resulting output on standard out.
ExecuteXPath.bat -outputfile file -cpm mode -ns prefix=URI -schema URI [-var name=varName type=varType] ... -baseURI URI -dnet URI -useCompiler -bindVar name=varName value=varValue -v -h -input file xpathfile
./ExecuteXPath.sh -outputfile file -cpm mode -ns prefix=URI -schema URI [-var name=varName type=varType] ... -baseURI URI -dnet URI -useCompiler -bindVar name=varName value=varValue -v -h -input file xpathfile
By default, the output is sent to standard out.
Valid values are Latest, 1.0, and 2.0.
The default is 2.0.
If the value of any option contains a blank space, enclose it in quotation marks.
This option can be used multiple times.
This option can be used multiple times.
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.
If this parameter is not specified, the default behavior is to use interpreted mode.
-bindVar name=la,"http://www.ibm.com/Los Angeles" value="some value"
This executes the XPath expression provided in C:\XPath\simpleXPath.txt and places the resulting output on standard out.
This executes the XPath expression provided in /var/XPath/simpleXPath.txt and places the resulting output on standard out.
ExecuteXQuery.bat -outputfile file -baseURI URI -dnet URI -useCompiler -bindVar name=varName value=varValue -v -h -input file xqueryfile
./ExecuteXQuery.sh -outputfile file -baseURI URI -dnet URI -useCompiler -bindVar name=varName value=varValue -v -h -input file xqueryfile
By default, the output is sent to standard out.
The namespace URI, if present, is used for any unprefixed QName appearing in a position where an element or type name is expected.
If this parameter is not specified, the default behavior is to use interpreted mode.
-bindVar name=la,"http://www.ibm.com/Los Angeles" value="some value"
This executes the XQuery expression provided in C:\XQuery\simpleXQuery.txt and places the resulting output on standard out.
This executes the XQuery expression provided in /var/XQuery/simpleXQuery.txt and places the resulting output on standard out.
In this information ... | IBM Redbooks, demos, education, and more(Index) Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience. This feature requires Internet access. Most of the following links will take you to information that is not part of the formal product documentation and is provided "as is." Some of these links go to non-IBM Web sites and are provided for your convenience only and do not in any manner serve as an endorsement by IBM of those Web sites, the material thereon, or the owner thereof. |