Skip to content

Commit

Permalink
Update insert-anchors.xsl
Browse files Browse the repository at this point in the history
Fixing a bug in the main template that causes generated text to appear in Appendices.
  • Loading branch information
franciscave committed Apr 17, 2024
1 parent efd76dd commit 91e9cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/resources/odf1.4/tools/insert-anchors.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ xmlns:rng="http://relaxng.org/ns/structure/1.0"
datatype.
-->

<xsl:template match="//text:h|//text:list[@text:style-name='Appendix']">
<xsl:template match="//text:h|//text:list[@text:style-name='Appendix' and not(preceding::text:list[@text:style-name='Appendix'])]">
<xsl:variable name="name">
<xsl:variable name="raw">
<xsl:value-of select="preceding-sibling::text:h[1]"/>
Expand Down

0 comments on commit 91e9cce

Please sign in to comment.