Skip to content

Commit

Permalink
process quotations etc. in every mode
Browse files Browse the repository at this point in the history
necessary for e.g. the mode='lemma' in the apparatus.xsl
  • Loading branch information
peterstadler committed Jul 18, 2019
1 parent 0806287 commit 3777509
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xsl/common_main.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -730,14 +730,14 @@
</xsl:element>
</xsl:template>

<xsl:template match="tei:q" priority="0.5">
<xsl:template match="tei:q" priority="0.5" mode="#all">
<!-- Always(!) surround with quotation marks -->
<xsl:call-template name="enquote">
<xsl:with-param name="double" select="true()"/>
</xsl:call-template>
</xsl:template>

<xsl:template match="tei:quote" priority="0.5">
<xsl:template match="tei:quote" priority="0.5" mode="#all">
<xsl:choose>
<!-- Surround with quotation marks if @rend is set -->
<xsl:when test="@rend">
Expand All @@ -747,12 +747,12 @@
</xsl:when>
<!-- no quotation marks as default -->
<xsl:otherwise>
<xsl:apply-templates/>
<xsl:apply-templates mode="#current"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="tei:soCalled">
<xsl:template match="tei:soCalled" mode="#all">
<xsl:call-template name="enquote">
<xsl:with-param name="double" select="false()"/>
</xsl:call-template>
Expand Down

0 comments on commit 3777509

Please sign in to comment.