Skip to content

Abstract refs - #19

Merged
craflin merged 3 commits into
masterfrom
abstract-refs
Aug 1, 2026
Merged

Abstract refs#19
craflin merged 3 commits into
masterfrom
abstract-refs

Conversation

@craflin

@craflin craflin commented Aug 1, 2026

Copy link
Copy Markdown
Owner

No description provided.

mcraveiro and others added 3 commits August 1, 2026 10:47
Helps debugging by showing which element is missing a type definition.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Abstract elements serve as placeholders for substitution groups and have
no type definition. When processing a ref to an abstract element, skip
the recursive processXsElement call and just record the reference for
later resolution by resolveElementRefs().

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Two fixes:

1. Refine abstract element handling: only skip processing for abstract
   elements that have no type attribute. Abstract elements with a type
   attribute still need processing for substitution groups to work.

2. Handle elements with no type attribute and no inline type definition.
   In XSD, these default to xs:anyType. Map this to a string element type.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@craflin
craflin merged commit a449982 into master Aug 1, 2026
2 checks passed
@craflin
craflin deleted the abstract-refs branch August 1, 2026 09:02
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