xslt 2.0 - grouping following-siblings with same name and same attributes causes exception in saxon -
xslt 2.0 - grouping following-siblings with same name and same attributes causes exception in saxon - i have xml documents (similar docbook) have transformed xsl-fo. of documents contains poems, , lines of poems written in separate p tags. verses separated br tags. there "page" tags irrelevant , should ignored. typical code example: <h4>headline</h4> <p>1st line of 1st verse</p> <p>2nd line of 1st verse</p> <br/> <p>1st line of 2nd verse</p> <p>2nd line of 2nd verse</p> <page n="100"/> <p>3rd line of 2nd verse</p> <h4>other headline</h4> for xsl-fo output, gather text of verse 1 single fo:block. right mechanism works code structures above, there exceptions. actual way of doing decide every p tag: - first line of verse? - if yes: collect text of verse ynd write fo:block, utilize attributes of actual (first) p tag set formatting of block - if no: contents trea...