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

Re: accessing node[$position]

Subject: Re: accessing node[$position]
From: Peter Davis <pdavis152@xxxxxxxxx>
Date: Mon, 3 Jun 2002 16:11:02 -0700
Re:  accessing node[$position]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm not sure what the real problem is, but you could try this:

descendant::page[position() = $the_position]

On Monday 03 June 2002 14:54, spiders frommars wrote:
> Xselerator seems to have a problem with anything
> involving something like node[$param_or_variable],
> saying that the variable cannot be resolved (even
> though value-of works just fine)

Looking at the XPath spec, section 2.4, 3rd paragraph, it appears that the way 
you are doing it should work as you expect, so long as $the_position is 
actually a number of course.  Does Xselerator have any documented bugs 
related to your issue?

- -- 
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8+/eGNSZCJx7tYycRAqwWAJ9HwgYzyNbckpO3ECM3qPrpunrwwgCcCz4z
BEMNSRk0tns6gcQNXUm+j6c=
=7eWL
-----END PGP SIGNATURE-----


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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-2007 All Rights Reserved.