Skip to content
Permalink
08d0ffeadc
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
44 lines (42 sloc) 1.82 KB
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:eoa="http://www.edition-open-access.de/ns"
exclude-result-prefixes="xs tei"
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('eoa')">
<xsl:sequence select="eoa:debug(0, 'found processing instruction. type: eoa', '')"/>
<xsl:choose>
<xsl:when test="contains(., 'printbibliography')">
<xsl:choose>
<xsl:when test="substring-after(., ' ')">
<xsl:text>\EOAprintbibliography[</xsl:text>
<xsl:value-of select="substring-after(., ' ')"/>
<xsl:text>]&#x000a;&#x000a;</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>\EOAprintbibliography&#x000a;&#x000a;</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="contains(., 'printindex')">
<xsl:text>\EOAprintindex&#x000a;&#x000a;</xsl:text>
</xsl:when>
<xsl:when test="contains(., 'printpersonindex')">
<xsl:text>\EOAprintpersonindex&#x000a;&#x000a;</xsl:text>
</xsl:when>
<xsl:when test="contains(., 'printlocationindex')">
<xsl:text>\EOAprintlocationindex&#x000a;&#x000a;</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="eoa:debug(2, 'Unrecognized processing instruction: ', current())" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>