Skip to content

Commit

Permalink
Support resolving members of the builtin xmlschema even if the schema…
Browse files Browse the repository at this point in the history
… document targets xmlschema.
  • Loading branch information
pdvrieze committed Feb 29, 2024
1 parent da6ec5e commit f8faa30
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,15 @@ class ResolvedSchema(
if (typeName.namespaceURI.let { it != targetNamespace.value && it == BuiltinSchemaXmlschema.targetNamespace.value }) {
BuiltinSchemaXmlschema.maybeType(typeName)?.let { return it }
}
return withQName(typeName) {
withQName(typeName) {
maybeType(it)
}?.let { return it }

if (typeName.namespaceURI == BuiltinSchemaXmlschema.targetNamespace.value) {
return BuiltinSchemaXmlschema.maybeType(typeName)
}

return null
}

override fun maybeAttributeGroup(attributeGroupName: QName): ResolvedGlobalAttributeGroup? =
Expand Down

0 comments on commit f8faa30

Please sign in to comment.