Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'dev'
  • Loading branch information
kthoden committed Nov 18, 2021
2 parents d21ce4f + 9901f9c commit 33d4166
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/stylesheets/tei2html/utils/numbering.xsl
Expand Up @@ -184,11 +184,11 @@
<xsl:variable name="chapter" select="ancestor-or-self::tei:div[@type = 'chapter']"/>
<xsl:variable name="chapter_nr">
<xsl:choose>
<xsl:when test="$index_html">
<xsl:value-of select="count($chapter/preceding-sibling::*) +1"/>
<xsl:when test="//tei:body//tei:div[@type='part']">
<xsl:value-of select="count($chapter/preceding-sibling::*)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="count($chapter/preceding-sibling::*)"/>
<xsl:value-of select="count($chapter/preceding-sibling::*) + 1"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
Expand All @@ -211,11 +211,11 @@
<xsl:variable name="chapter" select="ancestor-or-self::tei:div[@type = 'chapter']"/>
<xsl:variable name="chapter_nr">
<xsl:choose>
<xsl:when test="$index_html">
<xsl:value-of select="count($chapter/preceding-sibling::*) +1"/>
<xsl:when test="//tei:body//tei:div[@type='part']">
<xsl:value-of select="count($chapter/preceding-sibling::*)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="count($chapter/preceding-sibling::*)"/>
<xsl:value-of select="count($chapter/preceding-sibling::*) + 1"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
Expand All @@ -238,11 +238,11 @@
<xsl:variable name="chapter" select="ancestor-or-self::tei:div[@type = 'chapter']"/>
<xsl:variable name="chapter_nr">
<xsl:choose>
<xsl:when test="$index_html">
<xsl:value-of select="count($chapter/preceding-sibling::*) +1"/>
<xsl:when test="//tei:body//tei:div[@type='part']">
<xsl:value-of select="count($chapter/preceding-sibling::*)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="count($chapter/preceding-sibling::*)"/>
<xsl:value-of select="count($chapter/preceding-sibling::*) + 1"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
Expand Down

0 comments on commit 33d4166

Please sign in to comment.