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

Re: select immediately following siblings with constr

Subject: Re: select immediately following siblings with constraints?
From: "James A. Robinson" <jim.robinson@xxxxxxxxxxxx>
Date: Thu, 23 Feb 2006 10:54:31 -0800
james a robinson
Wendell,

Thank you very much for the reply.  I actually hadn't been aware of
the << and >> operators, I shall have to read up on them.  I did think
about using a for loop, I just wasn't sure how I could write one which
would be efficent, which wouldn't end up taking a lot more time than
necessary to run down the remaining following-sibling elements.

Thanks for the pointers, this gives me more things to research. :)


> If using XSLT 1.0 I would probably go to this method quickly except 
> in simple cases, where a key-based grouping solution would work. In 
> 2.0 I'd be tempted first to try using its grouping constructs and 
> perhaps fancy XPath 2.0. Which is what I see you're doing.
> 
> Bottom line: you're in uncharted waters. Have fun. Tell us what you 
> find! Take a look at those << and >> operators in XPath 2.0.
> 
> You could even try such things as
> 
>   "for $b in following-sibling::b[1] return following-sibling::a[. 
> &lt;&lt; $b]"
> 
> which might get it into a single line (by using the 'for' construct 
> in an unorthodox way)....
> 
> Cheers,
> Wendell
> 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
James A. Robinson                       jim.robinson@xxxxxxxxxxxx
Stanford University HighWire Press      http://highwire.stanford.edu/
+1 650 7237294 (Work)                   +1 650 7259335 (Fax)

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.