Re: [xsl] accessing node[$position]

Subject: Re: [xsl] accessing node[$position]
From: Peter Davis <pdavis152@xxxxxxxxx>
Date: Mon, 3 Jun 2002 16:11:02 -0700
-----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