Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#76 RTF converted to nodeset with 1.0

v6.5.2
closed
Michael Kay
5
2012-10-08
2002-04-19
Michael Kay
No

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.

Discussion

  • Michael Kay
    Michael Kay
    2002-04-19

    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).