ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xsl-list
xsl-list
[xsl] filtering on following-sibling axis
by Don Smith other posts by this author
Nov 20 2001 9:55AM messages near this date
Re: [xsl] effecient inline multi-conditional testing | Re: [xsl] filtering on following-sibling axis
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
Thread:
Don Smith
Jeni Tennison
Don Smith
David Carlisle

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved