Skip to content

Commit

Permalink
Merge pull request #690 from TEIC/issue_687_duplicate_deleted_attr
Browse files Browse the repository at this point in the history
fix complex merging of attrs, #687
  • Loading branch information
HelenaSabel committed Jul 7, 2024
2 parents b44a478 + def5a6b commit dfe9ea2
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions odds/odd2odd.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1635,11 +1635,18 @@ of this software, even if advised of the possibility of such damage.
</xsl:for-each>
<!-- class attributes are ones where there is no direct correspondence in
the source for this element -->
<xsl:apply-templates mode="justcopy"
select="tei:attList/tei:attDef[(@mode eq 'change'
or @mode eq 'delete'
or @mode eq 'replace') and
not(@ident=$ORIGINAL/tei:attList//tei:attDef/@ident)]"/>
<xsl:if test="$ORIGINAL/self::tei:elementSpec">
<xsl:apply-templates mode="justcopy"
select="tei:attList/tei:attDef
[
( @mode eq 'change'
or @mode eq 'delete'
or @mode eq 'replace'
)
and
not( @ident = $ORIGINAL/tei:attList//tei:attDef/@ident )
]"/>
</xsl:if>
<!-- any direct attRef elements -->
<xsl:apply-templates mode="justcopy"
select="tei:attList/tei:attRef"/>
Expand Down

0 comments on commit dfe9ea2

Please sign in to comment.