Skip to content

Refactor element lookup in replaceUnsolvedReference#84

Merged
lcduarte merged 1 commit into
xmlet:tests/PR83from
waldi5001:tests/PR83
Apr 19, 2026
Merged

Refactor element lookup in replaceUnsolvedReference#84
lcduarte merged 1 commit into
xmlet:tests/PR83from
waldi5001:tests/PR83

Conversation

@waldi5001
Copy link
Copy Markdown
Contributor

The logic is as follows: if the element is a child of a Redefine, replace it with the original element. Otherwise, if a Redefine is available, replace it with that. In this case, the UnsolvedReference points to a Redefine. In the latter case, all elements with a schema as parent are considered. If UnsolvedReference is a TypeRef, the element must be a Simple or Complex Type. If it is not a TypeRef, it must be an ElementRef.

The logic is as follows: if the element is a child of a Redefine,
replace it with the original element. Otherwise, if a Redefine is
available, replace it with that. In this case, the UnsolvedReference
points to a Redefine. In the latter case, all elements with a schema as
parent are considered. If UnsolvedReference is a TypeRef, the element
must be a Simple or Complex Type. If it is not a TypeRef, it must be an
ElementRef.
@lcduarte lcduarte merged commit 855b82a into xmlet:tests/PR83 Apr 19, 2026
@waldi5001 waldi5001 deleted the tests/PR83 branch April 28, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants