xsl-list
[Top] [All Lists]

RE: [xsl] Variables in match expressions

2006-04-20 08:25:17
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: António Mota [mailto:amsmota(_at_)gmail(_dot_)com] 
Sent: 20 April 2006 15:43
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>