Precompiling
You can use this information to help you to precompile an expression, query, or stylesheet.
Procedure
次主題
![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
Precompiling using the command-line tools
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.![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
Precompiling using ANT tasks
You can use the TaskCompileXPath, TaskCompileXQuery, and TaskCompileXSLT ANT tasks as alternatives to using the CompileXPath, CompileXQuery, and CompileXSLT commands.![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
Precompiling in Java
You can use the XCompilationFactory interface and its various compile and load methods to compile an expression, query, or stylesheet in advance. The Java classes can be loaded at execution time, therefore avoiding the cost of compilation in the application run time.![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
Loading a precompiled executable
You can use the XCompilationFactory interface and its various load methods to load a precompiled expression, query, or stylesheet. These load methods load the Java classes and return an XPathExecutable, XQueryExecutable, or XSLTExecutable object respectively.
作業主題
前次更新: July 9, 2016 8:14http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-base-dist&topic=txml_precompiling
檔名:txml_precompiling.html