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 (43 sloc) 2.02 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 name="writecontributors">
<xsl:result-document method="text" include-content-type="no" href="{'texfiles/contributors.tex'}">
<xsl:value-of select="eoa:texcomment('List of contributors')" />
<xsl:for-each select="//tei:titleStmt/tei:respStmt">
<!-- sorting by lang="de" incorporates diacritics into the alphabet -->
<xsl:sort lang="de" select="tei:persName/tei:surname"/>
<xsl:sort lang="de" select="tei:persName/tei:forename"/>
<xsl:for-each select=".">
<xsl:if test="contains(tei:resp, 'chapter author')">
<xsl:text>\noindent\textbf{</xsl:text>
<xsl:variable name="people" select="@xml:id"/>
<xsl:call-template name="format_persons">
<xsl:with-param name="people" select="$people"/>
</xsl:call-template>
<xsl:text>}\par&#x000a;</xsl:text>
<xsl:for-each select="tei:persName/tei:affiliation">
<xsl:text>\noindent </xsl:text>
<xsl:value-of select="tei:roleName"/>
<xsl:text>\\&#x000a;</xsl:text>
<xsl:for-each select="tei:orgName">
<xsl:text>\noindent </xsl:text>
<xsl:value-of select="."/>
<xsl:text>\\&#x000a;</xsl:text>
</xsl:for-each>
</xsl:for-each>
<xsl:text>\noindent </xsl:text>
<xsl:value-of select="tei:persName/tei:email"/>
<xsl:text>\\&#x000a;</xsl:text>
<xsl:text>&#x000a;</xsl:text>
</xsl:if>
</xsl:for-each>
</xsl:for-each>
</xsl:result-document>
</xsl:template>
</xsl:stylesheet>