Skip to content

Commit ac6ca19

Browse files
committed
fix double <app> issue
1 parent 829a7c8 commit ac6ca19

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

combine-continued.xsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@
140140
<xsl:apply-templates select="@*" mode="continued"/>
141141
<xsl:for-each select="node()">
142142
<xsl:choose>
143-
<xsl:when test="self::tei:rdg">
143+
<xsl:when test="self::tei:rdg and not(parent::tei:app)">
144144
<xsl:variable name="currentN" select="@n"/>
145145
<xsl:variable name="precedingSameN" select="preceding-sibling::tei:rdg[@n = $currentN]"/>
146146
<xsl:if test="not($precedingSameN)">
147-
<app>
147+
<app>
148148
<xsl:for-each select="../*">
149149
<xsl:choose>
150150
<!-- lb directly in front of the rdg[varSeq > 1] has to be remain -->
@@ -155,7 +155,7 @@
155155
<!-- do not show – lb is already processed in rdg -->
156156
</xsl:when>
157157

158-
<!-- rdg with current n and varSeq=1 (and no lb in front of it!) -->
158+
<!-- rdg with current n (and no lb in front of it!) -->
159159
<xsl:when test="self::tei:rdg[@n=$currentN]">
160160
<xsl:apply-templates select="." mode="continued"/>
161161
</xsl:when>

0 commit comments

Comments
 (0)