xsl-list
[Top] [All Lists]

Re: following-sibling problem

2004-10-27 06:16:50

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[(_at_)level='2']
                   ^^^^ ^^^^^^
rather than

following-sibling::key:bullet[(_at_)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[(_at_)level='1']"?

Bruce



<Prev in Thread] Current Thread [Next in Thread>