Skip to content
Permalink
Browse files

Merge pull request #377 from xatapult/issue-363

Added static-parameters option to p:xslt
  • Loading branch information
xatapult committed Mar 23, 2020
2 parents 64ddaa9 + be73105 commit 26b88de578aa91b2cb725760a2e28264d521dae4
Showing with 10 additions and 2 deletions.
  1. +4 −1 steps/src/main/xml/specification.xml
  2. +6 −1 steps/src/main/xml/steps/xslt.xml
@@ -275,7 +275,10 @@ draft:</para>
<code>c:entry/@content-type</code> was added to the archive manifest, to be filled by the
<tag>p:archive-manifest</tag> step. (2020-03-20)</para>
</listitem>
</orderedlist>
<listitem>
<para>A <option>static-parameters</option> was added to <tag>p:xslt</tag>. (2020-03-23)</para>
</listitem>
</orderedlist>
</appendix>

</specification>
@@ -9,6 +9,7 @@
<p:output port="result" primary="true" sequence="true" content-types="any"/>
<p:output port="secondary" sequence="true" content-types="any"/>
<p:option name="parameters" as="map(xs:QName,item()*)?"/>
<p:option name="static-parameters" as="map(xs:QName,item()*)?"/>
<p:option name="global-context-item" as="item()?"/>
<p:option name="initial-mode" as="xs:QName?"/>
<p:option name="template-name" as="xs:QName?"/>
@@ -23,12 +24,16 @@
<glossterm>dynamic error</glossterm> if the specified xslt version is not available.</error> If
the step does not specify a version, the implementation may use any version it has available and
may use any means to determine what version to use, including, but not limited to, examining the
version of the stylesheet. <impl>It is <glossterm>implementation defined</glossterm> which XSLT
version of the stylesheet. <impl>It is <glossterm>implementation-defined</glossterm> which XSLT
version(s) is/are supported.</impl></para>
<para>The XSLT stylesheet provided on the <port>stylesheet</port> port is invoked. <error
code="C0093"> It is a <glossterm>dynamic error</glossterm> if a static error occurs during the
static analysis of the XSLT stylesheet.</error> Any parameters passed in the
<option>parameters</option> option are used to define top-level stylesheet parameters.</para>
<para>Parameters passed in the <option>static-parameters</option> option are passed as static
parameters to the XSLT invocation. Whether static parameters are supported is
<glossterm>implementation-defined</glossterm> and depends on the XSLT version (which must be
3.0 or higher). If static parameters are not supported the option is ignored.</para>
<para><error code="C0095">It is a <glossterm>dynamic error</glossterm> if an error occurred during
the transformation.</error>
<error code="C0096">It is a <glossterm>dynamic error</glossterm> if the transformation is

0 comments on commit 26b88de

Please sign in to comment.
You can’t perform that action at this time.