Skip to content

Commit

Permalink
feat(viewer): rendered quatity within <measure>.
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffroy-noel-ddh committed Dec 2, 2024
1 parent d86a782 commit ec90476
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions responses/tei-to-html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@
<del><xsl:call-template name="lossless-attributes-and-children" /></del>
</xsl:template>

<xsl:template match="tei:measure">
<span class="modern-only">£<xsl:if test="@quantity"><xsl:value-of select="format-number(@quantity, '#,###')"/></xsl:if></span>
<xsl:call-template name="lossless-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 ec90476

Please sign in to comment.