Groupe XSLT suivant les frères et sœurs qui suivent une balise avec ID généré

<xsl:variable name="thisgid" select="generate-id(.)" />
 <xsl:apply-templates select="following-sibling::*[not(@class='sectiontitle' or @class='paragraphtitle')]
                              [generate-id(preceding-sibling::p[@class='sectiontitle'][1]) = $thisgid]"/>
Yellowed Yak