Changes

Jump to navigation Jump to search
189 bytes added ,  01:09, 26 May 2012
no edit summary
This [[Module Library|XQuery Module]] contains functions and variables to perform XSLT transformations. All functions are preceded by the <code>xslt:</code> prefix, which is linked to the statically declared <code>http://basex.org/modules/xslt</code> namespace. By default, this module uses Java’s XSLT 1.0 Xalan implementation to transform documents. XSLT 2.0 is used instead if Version 9.x of the [http://www.saxonica.com/ Saxon XSLT Processor] (<code>saxon9he.jar</code>, <code>saxon9pe.jar</code>, <code>saxon9ee.jar</code>) is found in the classpath. A custom transformer can be specified by overwriting the system property <code>javax.xml.transform.TransformerFactory</code>, as shown in the following Java example:
<pre class="brush:java">
ctx.close();
</pre>
 
=Conventions=
 
All functions in this module are assigned to the <code>http://basex.org/modules/xslt</code> namespace, which is statically bound to the <code>xslt</code> prefix.<br/>
All errors are assigned to the <code>http://basex.org/errors</code> namespace, which is statically bound to the <code>bxerr</code> prefix.
 
=Variables=
==$xslt:processor==
|This variable contains the supported XSLT version (currently: "1.0" or "2.0"). "Unknown" is returned if a custom implementation was chosen.<br />
|}
 
=Functions=
==xslt:transform==
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu