Skip to content

Commit

Permalink
Simplify an xpath expression
Browse files Browse the repository at this point in the history
  • Loading branch information
egli committed Apr 27, 2023
1 parent e1f7dd3 commit 5553377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xsl/dtbook2sbsform.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@
</xsl:template>

<!-- Handle pagenums after volume boundaries -->
<xsl:template match="dtb:pagenum[preceding-sibling::*[position()=1 and local-name()='volume' and @brl:grade = $contraction]]"/>
<xsl:template match="dtb:pagenum[preceding-sibling::node()[1][self::brl:volume][@brl:grade = $contraction]]"/>

<!-- Handle levelN/pagenums after volume boundaries -->
<xsl:template match="dtb:pagenum[empty(preceding-sibling::node())][parent::*[self::dtb:level1|self::dtb:level2|self::dtb:level3|self::dtb:level4|self::dtb:level5|self::dtb:level6][preceding-sibling::node()[1][self::brl:volume][@brl:grade = $contraction]]]"/>
Expand Down

0 comments on commit 5553377

Please sign in to comment.