Tempore 19:46:04, die 01/18/2005 AD, hinc in
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit António Mota <amsmota(_at_)gmail(_dot_)com>:
Well, just for the record, i solve my problem, by using
<xsl:variable name="snode" select="(//Menu)[position()=$pos]"/>
instead of
<xsl:variable name="snode" select="(//Menu)[$pos]"/>
This seems clearly a bug in XSLTProcessor, does anyone knows where can
i submit this?
Hi,
I don't think this is a bug in your XSLTProcessor.
According to http://www.w3.org/TR/xpath.html#predicates, a predicate
expression should only be interpreted as a position when it's a number.
So, for example, <xsl:variable name="snode" select="(//Menu)[5]"/> will
work as well as <xsl:variable name="snode"
select="(//Menu)[number($pos)]"/>
regards,
--
Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
"In the land of the blind, the one-eyed man is king"
--~------------------------------------------------------------------
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>
--~--