[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Comparing node for identity using union

Subject: RE: Comparing node for identity using union
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 18 Jan 2005 20:03:06 -0000
RE:  Comparing node for identity using union
> 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]"/> 
> 
> A million neurones i burn to reach this solution!!!
> 
> This seems clearly a bug in XSLTProcessor, does anyone knows where can
> i submit this?

Did you show us the declaration of the variable $pos? If it's a string or a
result tree fragment, then the two expressions are not equivalent. They are
only equivalent if it is a number. There is a note in the XSLT 1.0
specification warning you of this.

Michael Kay
http://www.saxonica.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.