Subject: RE: Variables in match expressions
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 20 Apr 2006 16:24:45 +0100
|
MSXML is right. In XSLT 1.0, variables are not allowed in match patterns.
They are allowed in 2.0.
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: Antsnio Mota [mailto:amsmota@xxxxxxxxx]
> Sent: 20 April 2006 15:43
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Variables in match expressions
>
> 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.
| Current Thread |
|
Michael Kay - 20 Apr 2006 15:25:19 -0000 <=
|
|