Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
chapter abstract
  • Loading branch information
kthoden committed Mar 27, 2019
1 parent 0975557 commit 402634c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tei2eoatex.xsl
Expand Up @@ -143,7 +143,7 @@ contexts, a double replacement is performed.
<xsl:text>\end{EOAquote}</xsl:text>
</xsl:template>

<xsl:template match="tei:body//tei:abstract">
<xsl:template match="tei:body//tei:ab[@type='chapterabstract']">
<xsl:text>\begin{EOAabstract}</xsl:text>
<xsl:apply-templates/>
<xsl:text>\end{EOAabstract}</xsl:text>
Expand All @@ -153,7 +153,7 @@ contexts, a double replacement is performed.
<xsl:template match="tei:body//tei:p[not(ancestor::tei:note)]">
<xsl:choose>
<!-- thanks: https://stackoverflow.com/questions/28984806/xsl-check-immediate-preceding-sibling#28985405 -->
<xsl:when test="preceding-sibling::*[1][self::tei:abstract]">
<xsl:when test="preceding-sibling::*[1][self::tei:ab[@type='chapterabstract'] | self::tei:quote | self::tei:figure | self::tei:list]">
<xsl:text>&#x000a;&#x000a;\noindent </xsl:text>
<xsl:apply-templates />
</xsl:when>
Expand Down

0 comments on commit 402634c

Please sign in to comment.