Skip to content

Commit

Permalink
prevent a sequence for second argument of >is< operator
Browse files Browse the repository at this point in the history
  • Loading branch information
haendwic committed Aug 25, 2023
1 parent fa7a31f commit edb995e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xsl/join-runs.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -501,15 +501,15 @@

<!-- collateral: deflate an adjacent start/end anchor pair to a single anchor -->
<xsl:template match="dbk:anchor[
following-sibling::node()[1] is key('docx2hub:linking-item-by-id', @xml:id)/self::dbk:anchor
following-sibling::node()[1] is (key('docx2hub:linking-item-by-id', @xml:id)/self::dbk:anchor)[1]
]" mode="docx2hub:join-runs">
<xsl:copy copy-namespaces="no">
<xsl:apply-templates select="@* except @role" mode="#current"/>
</xsl:copy>
</xsl:template>

<xsl:template match="dbk:anchor[
preceding-sibling::node()[1] is key('docx2hub:item-by-id', @linkend)
preceding-sibling::node()[1] is (key('docx2hub:item-by-id', @linkend))[1]
]" mode="docx2hub:join-runs"/>

<xsl:template match="dbk:anchor/@linkend" mode="docx2hub:join-runs">
Expand Down

0 comments on commit edb995e

Please sign in to comment.