Re: [xsl] following-sibling problem

Subject: Re: [xsl] following-sibling problem
From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Wed, 27 Oct 2004 09:16:50 -0400
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