RE: [xsl] html subsection headers xpath

Subject: RE: [xsl] html subsection headers xpath
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 3 Oct 2007 18:02:40 +0100
> How do I limit to <h4> elements following the current <h3> 
> element, up until the next <h3> element?

In 2.0, <xsl:for-each-group group-starting-with="h3">.

In 1.0,

following-sibling::h4[generate-id(preceding-sibling::h3[1]) =
generate-id(current())]

Michael Kay
http://www.saxonica.com/

Current Thread