Subject: Variables in match expressions
From: "António Mota" <amsmota@xxxxxxxxx>
Date: Thu, 20 Apr 2006 15:42:35 +0100
|
I'm doing a Identity transform in wich i define a template like
<xsl:param name="pos"/>
<xsl:variable name="snode" select="(//*)[$pos]"/>
...
<xsl:template match="*[count(.|$snode)=1]">
...
</xsl:template>
It seems Xalan (under jEdit) and transformiix (Firefox) have no
problem with that, but MSXML (IE) says
"Variables may not be used within this expression"
Who is right about it?
Thanks.
|