diff --git a/specifications/xslt-40/src/xslt.xml b/specifications/xslt-40/src/xslt.xml
index f69350176..b50d214a8 100644
--- a/specifications/xslt-40/src/xslt.xml
+++ b/specifications/xslt-40/src/xslt.xml
@@ -6819,9 +6819,17 @@ and version="1.0"
otherwise.
[xsl:]version
attribute
(see version
- attribute on an
+ ancestor element that has such an attribute,
These rules do not apply to the version
attribute has an entirely different purpose: it is used to
+ define the version of the output method to be used for serialization.
+ The
There are additional rules for an
version="1.0"
otherwise.
These rules do not apply to the version
attribute has an entirely different purpose: it is used to
- define the version of the output method to be used for serialization.
version="1.0"
otherwise.
a separate module from the package manifest, and using the separate module as the
version of the stylesheet that is presented to a 2.0 processor.
+ For an XSLT 4.0 processor, the version
attribute
+ is 4.0: more generally, it is the version of XSLT supported by the processor.
+ This rule is designed to ensure that the
This rule was not present in earlier versions of this specification.
+ On a strict reading of the XSLT 3.0 specification, for example, an version
attribute is evaluated with forwards compatible
+ behavior. This means, for example, that if the stylesheet author writes
+ ]]>
(which is incorrect, because
+ the instruction does not define a select
attribute) then the select
+ attribute will simply be ignored.
Stylesheet authors can prevent this problem by adding an explicit
+ version
attribute to xsl:fallback
indicating the version
+ of XSLT that is needed to evaluate the fallback code.
This specification cannot retrospectively dictate what XSLT 3.0 (or earlier)
+ processors should do; however, developers of such processors are encouraged to adopt
+ this rule, so that in an XSLT 4.0 stylesheet, an
The select
attribute
in place of a contained sequence constructor.
Simplified stylesheets no longer require an xsl:version
attribute
(which means they might not need a declaration of the XSLT namespace). Unless otherwise
specified, a 4.0 simplified stylesheet defaults expand-text
to true
.
The streamability rules for accumulators have been relaxed, so that the phase="end"
processing has access to the full subtree of the matched node.
The version
attribute is the version of XSLT supported
+ by the processor, so that the