Re: [xsl] selecting the following-sibling in recursive search...

Subject: Re: [xsl] selecting the following-sibling in recursive search...
From: Ragulf Pickaxe <ragulf.pickaxe@xxxxxxxxx>
Date: Fri, 18 Nov 2005 11:22:08 +0100
Raj,

> Is there any other way to select nodes between First
> list and second list using following-sibling of first
> list and preceding-sibling of second list.

I sent you a solution to another problem that you posted.
Why can you not tweak this one to work?

 <xsl:apply-templates
select="following-sibling::*[@level=$current-level+1][generate-id(preceding-s
ibling::*[@level=$current-level][1])=$current-id]">

The select can be easily changed to:
select="following-sibling::*[not(self::list)][generate-id(preceding-sibling::
list[1])=$current-list]"
Where $current-list is the generated-id for the current list element you are
in.

Current Thread