Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix complex merging of attrs, #687 #690

Merged
merged 2 commits into from
Jul 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading