RE: [xsl] Filtering a node-set

Subject: RE: [xsl] Filtering a node-set
From: George James <GeorgeJ@xxxxxxxxxxxxxxx>
Date: Wed, 9 Jan 2008 12:09:28 -0000
-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx] 
Sent: 09 January 2008 11:23
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Filtering a node-set

>> I can't see a way of eliminating the use of the $top, $bottom, $left 
>> and $right variables.  Is it possible?
> possibly not, if there were just one, say right you could do something
> select="$elements[$elements[(@lon+180) &lt; @lon + 180 + $boxSize]]

This is the crux of the problem.  The first occurrence of @lon refers to the
inner $elements, whereas the second occurrence of @lon needs to refer to the
outer $elements.  So even with just one it still doesn't seem possible.

> but I don't think you can handle multiple attribute comparisons without
introducing variables anywhere.
> is node-set() really not availabe to you? there arever few processors
where it is not supported.

I need it to run with at least Xalan, Xmlstarlet, Firefox and IE.  Do all of
these implement the node-set() extension?


Current Thread