Skip to content

Commit

Permalink
Handle linked chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Dec 16, 2019
1 parent d0ee9a6 commit c159ae8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tei2eoatex/eoatex_textparts.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
<xsl:text>\noindent\EOAemph{Traduzione italiana a p.~\EOApageref{</xsl:text>
<xsl:value-of select="substring-after(@corresp, '#')"/>
<xsl:text>}.}</xsl:text>
<xsl:text>\vspace{2\baselineskip}</xsl:text>
<xsl:text>\vspace{2\baselineskip}&#x000a;&#x000a;</xsl:text>
</xsl:when>
<xsl:when test="self::tei:div[@type='chaptertranslation']">
<xsl:text>\vspace{-2\baselineskip}</xsl:text>
<xsl:text>\noindent\EOAemph{Versione originale latina a p.~\EOApageref{</xsl:text>
<xsl:value-of select="substring-after(@corresp, '#')"/>
<xsl:text>}.}</xsl:text>
<xsl:text>\vspace{2\baselineskip}</xsl:text>
<xsl:text>\vspace{2\baselineskip}&#x000a;&#x000a;</xsl:text>
</xsl:when>
</xsl:choose>
<xsl:apply-templates select="*[not(self::tei:head)]"/>
Expand Down Expand Up @@ -298,7 +298,7 @@

<!-- head -->

<xsl:template match="tei:div[@type = 'chapter']/tei:head">
<xsl:template match="tei:div[ @type = ('chapter', 'chapteroriginal', 'chaptertranslation')]/tei:head">
<xsl:value-of select="eoa:debug(0, 'chapter heading: ', .)"/>
<xsl:text>\EOAchapter</xsl:text>
<xsl:choose>
Expand Down

0 comments on commit c159ae8

Please sign in to comment.