Skip to content

Commit

Permalink
Incorrect TOC numbering
Browse files Browse the repository at this point in the history
In the table of contents, subsections were being numbered as if they
were sections.

Fix: #22
  • Loading branch information
io7m committed Sep 21, 2022
1 parent f9c1da7 commit 5a226fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -38,8 +38,8 @@
<xsl:when test="$depthCurrent &lt;= $depthMaximum">
<xsl:element name="li">
<xsl:variable name="numberTitle">
<xsl:call-template name="xstructural.numbers.sectionNumberTitleOf">
<xsl:with-param name="section"
<xsl:call-template name="xstructural.numbers.subsectionNumberTitleOf">
<xsl:with-param name="subsection"
select="."/>
</xsl:call-template>
</xsl:variable>
Expand Down
Expand Up @@ -38,8 +38,8 @@
<xsl:when test="$depthCurrent &lt;= $depthMaximum">
<xsl:element name="li">
<xsl:variable name="numberTitle">
<xsl:call-template name="xstructural.numbers.sectionNumberTitleOf">
<xsl:with-param name="section"
<xsl:call-template name="xstructural.numbers.subsectionNumberTitleOf">
<xsl:with-param name="subsection"
select="."/>
</xsl:call-template>
</xsl:variable>
Expand Down

0 comments on commit 5a226fd

Please sign in to comment.