Difference between revisions of "XSLT Module"
Jump to navigation
Jump to search
| Line 8: | Line 8: | ||
|- | |- | ||
| valign='top' | '''Summary''' | | valign='top' | '''Summary''' | ||
| − | |This variable returns the name of the XSLT processor (currently: <code>Java<code> or <code>Saxon<code>).<br /> | + | |This variable returns the name of the XSLT processor (currently: <code>Java</code> or <code>Saxon</code>).<br /> |
|} | |} | ||
| Line 18: | Line 18: | ||
|- | |- | ||
| valign='top' | '''Summary''' | | valign='top' | '''Summary''' | ||
| − | |This variable returns the supported XSLT version (currently: <code>1.0<code> or <code>2.0<code>).<br /> | + | |This variable returns the supported XSLT version (currently: <code>1.0</code> or <code>2.0</code>).<br /> |
|} | |} | ||
Revision as of 02:57, 10 July 2011
This module contains XQuery Functions and Variables to perform XSLT transformations. All functions are preceded by the xslt: prefix, which is linked to the http://www.basex.org/xslt namespace. By default, this module relies on the internal XSLT 1.0 implementation of Java. If Saxon is found in the classpath, however, XSLT 2.0 is used.
xslt:processor
| Signatures | xslt:processor as xs:string |
| Summary | This variable returns the name of the XSLT processor (currently: Java or Saxon). |
xslt:version
| Signatures | xslt:processor as xs:string |
| Summary | This variable returns the supported XSLT version (currently: 1.0 or 2.0). |
xslt:transform
| Signatures | xslt:transform($input as item(), $stylesheet as item()) as node()xslt:transform($input as item(), $stylesheet as item(), $params as item()) as node()
|
| Summary | Transforms the specified data specified by $input, using the XSLT stylesheet specified by $stylesheet, and returns the result as node(). If Saxon is found in the Java classpath, XSLT 2.0 is used. Otherwise, Java’s internal XSLT 1.0 is used to perform the transformation. |