xsl-list
[Top] [All Lists]

Re: [xsl] following-sibling help please.

2006-10-10 09:31:58

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

--~------------------------------------------------------------------
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>
--~--