Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
in chapter view: fix links to sections in the "Overview" part
  • Loading branch information
EsGeh authored and EsGeh committed Mar 25, 2019
1 parent a1fa9bb commit 47ec3e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions tei2html.xsl
Expand Up @@ -602,9 +602,7 @@
<xsl:for-each select="./tei:div[@type='section']">
<li>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:text>#</xsl:text>
</xsl:attribute>
<xsl:attribute name="href" select="concat('#',@xml:id)"/>
<xsl:if test="../@n != 'nonumber'">
<xsl:value-of select="concat(../@n, '.', @n, ' ')"/>
</xsl:if>
Expand Down
2 changes: 1 addition & 1 deletion tei2html_utils/html_rules.xsl
Expand Up @@ -60,7 +60,7 @@

<xsl:template match="tei:div[@type='section']" mode="body">
<xsl:message>section</xsl:message>
<div class="accordion__item active">
<div id="{@xml:id}" class="accordion__item active">
<a class="accordion__title" href="#">
<h2>
<xsl:if test="../@n != 'nonumber'">
Expand Down

0 comments on commit 47ec3e2

Please sign in to comment.