[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Comparing node for identity using union


Subject: Re: [xsl] Comparing node for identity using union
From: "Joris Gillis" <roac@xxxxxxxxxx>
Date: Tue, 18 Jan 2005 20:50:31 +0100

Tempore 19:46:04, die 01/18/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Antsnio Mota <amsmota@xxxxxxxxx>:

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"


Current Thread