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

RE: Filtering a node-set

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

Regards
George

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.