Subject: Re: [xsl] Can an XSLT 3.0 stylesheet access the complete sequence of values passed in as the initial match selection? From: "Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 14 Jan 2020 10:24:45 -0000 |
Am 13.01.2020 um 13:27 schrieb Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx:
As you observed, with XProc 3.0, when using p:xslt in XSLT-3.0 mode, a transformation that is invoked without an initial template is supposed to process each document of the input sequence individually. The default collection is undefined.
There was no /compelling/ reason to deviate from XProc 1.0 behavior, only these:
b It is more in line with the apply-templates invocation as specified by XSLT 3.0.
b Norm in particular doesnbt like first-value semantics
We thought that migrating their existing stylesheets isnbt too demanding for pipeline authors:
b They can simply invoke the transformation in XSLT-2 mode and get to keep the old behavior.
b If they were already using a named template they donbt need to change a thing about the default collection even when they now use XSLT-3 mode.
So the way the source port is used and whether or not the default collection is bound to the documents on the source port depends on that you call the XSLT-mode? Is that the version specified in the version attribute of the p:xslt step?
How will that work in a setup with a current version (e.g. Saxon 9.8 or 9.9) of Saxon as the XSLT processor. It supports XSLT 3 but no longer XSLT 2. The spec says "If the step specifies a version, then that version of XSLT must be used to process the transformation. It is a dynamic error (err:XC0038) if the specified xslt version is not available".
Is the XProc processor then supposed to use Saxon 9.8 or 9.9, an XSLT 3 processor, to run with the settings in https://spec.xproc.org/master/head/steps/#c.xslt.11 for invoking XSLT 2?
I guess this is possible but I previously understood "then that version of XSLT must be used" rather like "an XSLT 2 processor" is available and has to be used.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Can an XSLT 3.0 styleshee, Martin Honnen martin | Thread | [xsl] [ANN]: Apache Xerces-J 2.12.1, Mukul Gandhi gandhi. |
Re: [xsl] Can an XSLT 3.0 styleshee, Martin Honnen martin | Date | Re: [xsl] [ANN]: Apache Xerces-J 2., Mukul Gandhi gandhi. |
Month |