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

filtering on following-sibling axis

Subject: filtering on following-sibling axis
From: "Don Smith" <donalds@xxxxxxxxxx>
Date: Tue, 20 Nov 2001 03:55:48 -0600
following sibling xml filtering
I need to select a subset of following siblings.

Given a structure like:

<book>
	<section type="heading">  </section>

	<section>  </section>
	<section>  </section>

	<section type="subsection">  </section>

	<section>  </section>
	<section>  </section>

	<section type="subsection">  </section>

	<section>  </section>
	<section>  </section>

	. . .

</book>

from the context of  <section type="subsection"> I need to access all the
following sibling sections up to the next <section type="subsection">. Of
course I can get them all with the expression 'following-sibling::section',
and exclude the following sections that have the attribute type="subsection"
by adding the predicate [not(@type='subsection')], but I'm unable to write a
filter that stops accessing the following siblings at the next subsection.

I've fiddled with an id check using generate-id, but can't get it to work.

Any help will be appreciated,

Don


 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.