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

Re: following-sibling problem

Subject: Re: following-sibling problem
From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Wed, 27 Oct 2004 09:16:50 -0400
Re:  following-sibling problem
On Oct 27, 2004, at 9:04 AM, David Carlisle wrote:

simplest is to change the select so I think you want

following-sibling::*[1][self::key:bullet[@level='2']
                   ^^^^ ^^^^^^
rather than

following-sibling::key:bullet[@level='2']

in both places where you use it.

OK, thanks.


But I just realized this then isn't very general. How, for exasmple, would I also handle a situation where I have:

	bullet 1a
		bullet 2a
		bullet 2b
	bullet 1b
		bullet 2c
		bullet 2d

Is this where -- because of limitations in this input format (where level is only indicated by the level attribute value) -- I need to do some grouping? Maybe defining a group as starting with "key:bullet[@level='1']"?

Bruce

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.