Skip to content

Commit

Permalink
feat(at): show line number in poems. Multiples of 5.
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffroy-noel-ddh committed Dec 2, 2024
1 parent 69e4f63 commit c2465a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions responses/tei-to-html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@
<xsl:call-template name="lossless-span"/>
</xsl:template>

<xsl:template match="tei:l">
<span>
<xsl:call-template name="lossless-attributes-and-children" />
<xsl:if test="(@n mod 5) = 0"><span class="line-number"><xsl:value-of select="@n"/></span></xsl:if>
</span>
</xsl:template>

<!-- <xsl:template match="*[@rend='superscript']">
<sup><xsl:call-template name="lossless-attributes-and-children" /></sup>
</xsl:template> -->
Expand Down

0 comments on commit c2465a1

Please sign in to comment.