Skip to content

Commit

Permalink
for Alix
Browse files Browse the repository at this point in the history
  • Loading branch information
glorieux-f committed Sep 8, 2024
1 parent 1cfb009 commit 87433d2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tei_html/tei_toc_html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ BSD-3-Clause https://opensource.org/licenses/BSD-3-Clause

<!-- Generate an absolute table of sections -->
<xsl:template name="toc">
<xsl:param name="class">tree</xsl:param>
<xsl:variable name="html">
<xsl:apply-templates select="/*/tei:text/tei:front" mode="li">
<xsl:with-param name="localid" select="generate-id()"/>
Expand All @@ -50,7 +51,12 @@ BSD-3-Clause https://opensource.org/licenses/BSD-3-Clause
</xsl:apply-templates>
</xsl:variable>
<xsl:if test="$html != ''">
<ol class="tree">
<ol>
<xsl:if test="$class != ''">
<xsl:attribute name="class">
<xsl:value-of select="$class"/>
</xsl:attribute>
</xsl:if>
<xsl:copy-of select="$html"/>
</ol>
</xsl:if>
Expand Down

0 comments on commit 87433d2

Please sign in to comment.