Closed vog closed 7 years ago
Provided full test case in #85.
This issue is closely related to #68. The same section of the XML Schema standard is relevant here:
https://www.w3.org/TR/xmlschema11-1/#declare-element
An
<element>
with no referenced or included type definition will correspond to an element declaration which has the same type definition as the first substitution-group head named in the substitutionGroup [attribute], if present, otherwise xs:anyType.
The following Schema defines
Current output (relevant part):
Expected output (relevant part):
Workarounds:
substitutionGroup="foo:Base"
, the expected schema is returned.