xsl-list
[Top] [All Lists]

[xsl] Variables in match expressions

2006-04-20 07:42:58
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>
--~--

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