Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Processing instructions
  • Loading branch information
kthoden committed Feb 19, 2019
1 parent fcdf3c8 commit 5b3b2b2
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions tei2eoatex.xsl
Expand Up @@ -486,9 +486,17 @@ contexts, a double replacement is performed.
</xsl:choose>
</xsl:template>

<xsl:template match="processing-instruction('eoa')">
<xsl:template match="//processing-instruction()[name()='latex']">
<xsl:choose>
<xsl:when test="starts-with(., 'printbibliography')">
<xsl:when test="contains(., 'clearpage')">
<xsl:text>&#x000a;&#x000a;\clearpage&#x000a;&#x000a;</xsl:text>
</xsl:when>
</xsl:choose>
</xsl:template>

<xsl:template match="//processing-instruction()[name()='eoa']">
<xsl:choose>
<xsl:when test="contains(., 'printbibliography')">
<xsl:choose>
<xsl:when test="substring-after(., ' ')">
<xsl:text>\EOAprintbibliography[</xsl:text>
Expand All @@ -500,13 +508,13 @@ contexts, a double replacement is performed.
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="starts-with(., 'printindex')">
<xsl:when test="contains(., 'printindex')">
<xsl:text>\EOAprintindex&#x000a;&#x000a;</xsl:text>
</xsl:when>
<xsl:when test="starts-with(., 'printpersonindex')">
<xsl:when test="contains(., 'printpersonindex')">
<xsl:text>\EOAprintpersonindex&#x000a;&#x000a;</xsl:text>
</xsl:when>
<xsl:when test="starts-with(., 'printlocationindex')">
<xsl:when test="contains(., 'printlocationindex')">
<xsl:text>\EOAprintlocationindex&#x000a;&#x000a;</xsl:text>
</xsl:when>
<xsl:otherwise>
Expand Down

0 comments on commit 5b3b2b2

Please sign in to comment.