Skip to content

Commit

Permalink
tei->eoatex: correctly insert bibliographies
Browse files Browse the repository at this point in the history
  • Loading branch information
EsGeh authored and EsGeh committed Dec 19, 2019
1 parent 5fc7acc commit 08d0ffe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/stylesheets/tei2eoatex/eoatex_processinginstructions.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
version="2.0">

<xsl:template match="//processing-instruction()[name()='latex']">
<xsl:sequence select="eoa:debug(0, 'found processing instruction. type latex', '')"/>
<xsl:value-of select="."/>
</xsl:template>

<xsl:template match="//processing-instruction()[name()='eoa']">
<xsl:template match="processing-instruction('eoa')">
<xsl:sequence select="eoa:debug(0, 'found processing instruction. type: eoa', '')"/>
<xsl:choose>
<xsl:when test="contains(., 'printbibliography')">
<xsl:choose>
Expand Down
4 changes: 2 additions & 2 deletions src/stylesheets/tei2eoatex/eoatex_textparts.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<xsl:text>\vspace{2\baselineskip}&#x000a;&#x000a;</xsl:text>
</xsl:when>
</xsl:choose>
<xsl:apply-templates select="*[not(self::tei:head)]"/>
<xsl:apply-templates select="*[not(self::tei:head)] | processing-instruction()"/>
</xsl:template>

<xsl:template match="tei:div[@type = ('section', 'subsection', 'subsubsection')]">
Expand Down Expand Up @@ -65,7 +65,7 @@
</xsl:otherwise>
</xsl:choose>
<xsl:text>&#x000a;</xsl:text>
<xsl:apply-templates select="tei:*[not(self::tei:head)]"/>
<xsl:apply-templates select="tei:*[not(self::tei:head)] | processing-instruction()"/>
</xsl:template>

<xsl:template match="tei:body//tei:quote">
Expand Down

0 comments on commit 08d0ffe

Please sign in to comment.