Re: [xsl] following-sibling help please.

Subject: Re: [xsl] following-sibling help please.
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 10 Oct 2006 17:31:40 +0100
the direct answer to your question is

test="following-sibling::*[1][self::header]"
which is true just if the immediately following sibling is header, but
it sounds  lie wha you really want is to group the child elements of
root, with each group starting with a header, so that's

<xsl:for-each-group select="*" group-starting-with="header">
  ... something ...

David

Current Thread