RTF converted to nodeset with 1.0
The Saxon XSLT and XQuery processor, developed by Saxonica
Brought to you by:
mhkay
It should not be possible to use a result tree
fragment in contexts that require a node-set when the
effective version of the stylesheet is 1.0. But a
simple call of <xsl:apply-template select="$rtf"/>
succeeds, because the check is not being made in this
situation (it is made only when a path expression or
filter expression is used).
Applies to 6.5.2 and all earlier releases. Not
applicable to 7.x, which does not enforce any
restrictions on RTF-to-nodeset conversion, regardless
of the version number.
Logged In: YES
user_id=251681
Source code fixed (6.5 branch only). Added a check to the
enumerate() methods for FragmentValue and
TextFragmentValue. This seems to work, though I'm slighly
anxious about possible side-effects (i.e. that there may be
paths that legitimately use these methods under 1.0).