xsl-list
[Top] [All Lists]

Re: selecting the following-sibling in recursive search...

2005-11-18 03:22:08
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::*[(_at_)level=$current-level+1][generate-id(preceding-sibling::*[(_at_)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.

From what I read, this is what you want.

Regards,
Ragulf Pickaxe :-/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--