p:xslt — The standard p:xslt step.


<p:declare-step type="p:xslt">
     <p:input port="source" sequence="true" primary="true"/>
     <p:input port="stylesheet"/>
     <p:input port="parameters" kind="parameter"/>
     <p:output port="result" primary="true"/>
     <p:output port="secondary" sequence="true"/>
     <p:option name="initial-mode"/>                               <!-- QName -->
     <p:option name="template-name"/>                              <!-- QName -->
     <p:option name="output-base-uri"/>                            <!-- anyURI -->
     <p:option name="version"/>                                    <!-- string -->




By default, XML Calabash processes all XSLT stylesheets using an XSLT 2.0 processor. If the stylesheet version is “1.0”, it is processed by a 2.0 processor in “backwards compatible mode”.

If the “use XSLT 1.0” extension is enabled, XML Calabash will attempt to instantiate an XSLT 1.0 processor and use that instead.

When a 1.0 processor is used, several limitations apply:

  1. There can be at most one input document.

  2. The initial-mode, template-name, and output-base-uri options are ignored.

  3. There's no standard mechanism to capture secondary result documents created with, for example, exsl:document. Any such documents are likely to be written directly to the filesystem. They will not appear on the secondary result port, which will always be empty.