Hi,
I was trying out Xalan C++ 1.2 (RedHat Linux) and found that the
match attribute of the xsl:template allows a variable
reference in the predicates.
(eg)
<xsl:template match = "doc[$foo]">

The XSLT specification is clear in stating that the variable references
are not allowed in template and key match patterns.

The following code also coredumps because of the
circular reference.

<xsl:variable name="foo">
   <xsl:apply-templates select="//doc"/>
</xsl:variable>

<xsl:template match = "doc[$foo]">
</xsl:template>

The confusing part is the testcase in the Xalan test suite
match14.xsl which shows that a variable can be used in the template
match pattern. Can someone pl. confirm if this is intentional??

Thanks,
-Sriram

Reply via email to