Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Authorbio code corrected
  • Loading branch information
kthoden committed Jun 12, 2019
1 parent e19a2c7 commit d11ff80
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions tei2eoatex.xsl
Expand Up @@ -764,11 +764,14 @@ contexts, a double replacement is performed.
<xsl:result-document method="text" include-content-type="no" href="{concat('texfiles/part', $partposition, '-chapter', format-number(position(), '00'), '.tex')}">
<xsl:value-of select="eoa:texcomment('A subordinate file.')" />
<xsl:choose>
<xsl:when test="following-sibling::*[1][self::tei:ab[@type='authorbio']]">
<xsl:when test="following-sibling::*[1][self::tei:ab[@type='authorbio']] and following-sibling::*[2][self::tei:ab[@type='chapterabstract']]">
<xsl:apply-templates select="*[position() > 2]"/>
</xsl:when>
<xsl:otherwise>
<xsl:when test="following-sibling::*[1][self::tei:ab[@type='chapterabstract']]">
<xsl:apply-templates select="*[position() > 1]"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="*[position() > 0]"/>
</xsl:otherwise>
</xsl:choose>
</xsl:result-document>
Expand Down Expand Up @@ -919,8 +922,14 @@ contexts, a double replacement is performed.
</xsl:for-each>
<xsl:for-each select="//tei:div[@type='chapter']">
<xsl:result-document method="text" include-content-type="no" href="{concat('texfiles/chapter', format-number(position(), '00'), '.tex')}">
<xsl:choose>
<xsl:when test="//tei:ab[@type='authorbio']">
<xsl:choose>
<xsl:when test="child::*[2][self::tei:ab[@type='authorbio']] and child::*[3][self::tei:ab[@type='chapterabstract']]">
<xsl:apply-templates select="*[position() > 2]"/>
</xsl:when>
<xsl:when test="child::*[2][self::tei:ab[@type='authorbio']]">
<xsl:apply-templates select="*[position() > 2]"/>
</xsl:when>
<xsl:when test="child::*[2][self::tei:ab[@type='chapterabstract']]">
<xsl:apply-templates select="*[position() > 2]"/>
</xsl:when>
<xsl:otherwise>
Expand Down

0 comments on commit d11ff80

Please sign in to comment.