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

Re: Getting all the values between empty elements

Subject: Re: Getting all the values between empty elements
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Tue, 6 Jan 2004 07:06:45 +0100
xpath empty element
"Kyle Partridge" <kpartridge@xxxxxxxxxxxx> wrote in message
news:CBEAE06ADC8F9A4BB9E92B4441FA90BE01E99BC6@xxxxxxxxxxxxxxxxxxxxxxx
>
> Hi All,
>
> I have one final XPath-related question.
>
> If I have a series of sibling elements like <a/>, below:
>
> <p>
> <a/>One or two <b>items</b><a/>or <i>another</i>, I dare
> say<a/><c val="#0f0">a third</c>, do you think?<br/>
> </p>
>
> how can I get at "everything between one a and the next a"?
>
> Right now, I am formatting by matching on <br/> and looping backwards
> (this is greatly simplified).

Kyle,

Michael and Wendell provided one solution.

However, be aware that for big files with "a"s with many children this kind
of solution may be slow.

For an efficient solution do have a look at the December thread "Unbounded
element grouping/concatenation ", e.g. at:

    http://aspn.activestate.com/ASPN/Mail/Message/xsl-list/1913969


Dimitre Novatchev.
FXSL developer

http://fxsl.sourceforge.net/ -- the home of FXSL
Resume: http://fxsl.sf.net/DNovatchev/Resume/Res.html




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