Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
paragraph level figure: experimental implementation
  • Loading branch information
EsGeh authored and EsGeh committed Mar 21, 2019
1 parent 91b4407 commit 672936b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tei2html.xsl
Expand Up @@ -974,6 +974,24 @@
</figure>
</xsl:template>

<xsl:template match="tei:figure" mode="body">
<!-- TODO: check/fix path -->
<xsl:message>figure</xsl:message>
<xsl:variable name="caption">
<xsl:apply-templates select="tei:head/node() | text()" mode="html"/>
</xsl:variable>
<figure class="publication__image">
<a href="{@url}" data-lightbox="" title="$caption">
<img src="{@url}">image could not</img>
</a>
<xsl:if test="tei:head">
<figcaption>
<xsl:value-of select="$caption"/>
</figcaption>
</xsl:if>
</figure>
</xsl:template>

<!--
<xsl:template match="tei:formula">
<xsl:message>formula</xsl:message>
Expand Down

0 comments on commit 672936b

Please sign in to comment.