Skip to content

Commit

Permalink
Merge pull request SAA-SDT#97 from SAA-SDT/vertical_html_toc
Browse files Browse the repository at this point in the history
HTML toc now reads vertically
  • Loading branch information
alexduryee authored May 2, 2022
2 parents df20223 + 0e33e7a commit f7e0382
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions transformations/tagLibrary2html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
</div>
<div class="toc2">
<table>
<xsl:for-each-group select="tei:div[@type='elementDocumentation']" group-ending-with="tei:div[@type='elementDocumentation'][position() mod 7 = 0]">
<xsl:for-each-group select="tei:div[@type='elementDocumentation']" group-by="position() mod 20">
<tr>
<xsl:for-each select="current-group()">
<td>
Expand All @@ -259,7 +259,7 @@
</div>
<div class="toc2">
<table>
<xsl:for-each-group select="tei:div[@type='attributeDocumentation']" group-ending-with="tei:div[@type='attributeDocumentation'][position() mod 7 = 0]">
<xsl:for-each-group select="tei:div[@type='attributeDocumentation']" group-by="position() mod 15">
<tr>
<xsl:for-each select="current-group()">
<td>
Expand All @@ -284,22 +284,17 @@
</a>
</div>
<div class="toc2">
<table>
<xsl:for-each select="tei:div/tei:head">
<span>
<a href="#{translate(translate(concat('appendix-' , .), ':',''), ' ','')}">
<xsl:value-of select="."/>
</a>
<xsl:text> &#xA0; </xsl:text>
</span>
<xsl:for-each select="parent::tei:div">
<xsl:variable name="count">
<xsl:number/>
</xsl:variable>
<xsl:if test="($count mod 6) = 0">
<br/>
</xsl:if>
</xsl:for-each>
<tr>
<td>
<a href="#{translate(translate(concat('appendix-' , .), ':',''), ' ','')}">
<xsl:value-of select="."/>
</a>
</td>
</tr>
</xsl:for-each>
</table>
</div>
</xsl:when>
<xsl:otherwise>
Expand Down

0 comments on commit f7e0382

Please sign in to comment.