Skip to content

Commit

Permalink
move tr:insert-numbering(.) at w:p after para-id anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
fr4nze committed Jun 20, 2023
1 parent c4c31f2 commit b91bbd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xsl/wml2dbk.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,9 @@
<xsl:if test="w:r[last()][count(*)=1][w:br[@w:type='page']] and count(w:r[count(*)=1][w:br[@w:type='page']]) gt 1">
<xsl:attribute name="css:page-break-after" select="'always'"/>
</xsl:if>
<xsl:if test="not(@docx2hub:removable='true')">
<xsl:sequence select="tr:insert-numbering(.)"/>
</xsl:if>
<xsl:if test="@w14:paraId and $keep-paraid=('yes','true')">
<xsl:element name="anchor">
<xsl:attribute name="role" select="'w14:paraId'"/>
Expand All @@ -739,9 +742,6 @@
<xsl:attribute name="xml:id" select="concat('textId_',@w14:textId)"/>
</xsl:element>
</xsl:if>
<xsl:if test="not(@docx2hub:removable='true')">
<xsl:sequence select="tr:insert-numbering(.)"/>
</xsl:if>
<!-- Only necessary in tables? They'll get lost otherwise. -->
<xsl:variable name="bookmarkstart-before-p" as="element(w:bookmarkStart)*"
select="preceding-sibling::w:bookmarkStart[. &gt;&gt; current()/preceding-sibling::*[not(self::w:bookmarkStart or self::w:bookmarkEnd)][1]]"/>
Expand Down

0 comments on commit b91bbd7

Please sign in to comment.