Skip to content

Commit

Permalink
support processing of mei:ref
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Sep 10, 2020
1 parent 6a3fb26 commit c4d5a05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xsl/common_link.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<xsl:call-template name="createSpan"/>
</xsl:template>

<xsl:template match="tei:ref" mode="#all">
<xsl:template match="tei:ref | mei:ref" mode="#all">
<xsl:element name="a">
<xsl:apply-templates select="@xml:id"/>
<xsl:apply-templates select="@target"/>
Expand All @@ -90,7 +90,8 @@
for previews. Hence, links with fragment identifiers (e.g. `<ref target='wega:A090092#chapter-links'>`)
will be transformed to simple links without preview popover
-->
<xsl:template match="tei:ref[contains(@target, 'wega:')][not(contains(@target, '#'))]" mode="#all">
<xsl:template match="tei:ref[contains(@target, 'wega:')][not(contains(@target, '#'))] |
mei:ref[contains(@target, 'wega:')][not(contains(@target, '#'))]" mode="#all">
<xsl:call-template name="createLink"/>
</xsl:template>

Expand Down

0 comments on commit c4d5a05

Please sign in to comment.