File tree 2 files changed +4
-1
lines changed
xmlschema/src/commonMain/kotlin/io/github/pdvrieze/formats/xmlschema/resolved
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ sealed class FlattenedGroup(
300
300
context : ResolvedComplexType ,
301
301
schema : ResolvedSchemaLike
302
302
): FlattenedParticle ? {
303
- if (! base.range .contains(range )) return null
303
+ if (! base.effectiveTotalRange() .contains(effectiveTotalRange() )) return null
304
304
305
305
val baseIt = base.particles.iterator()
306
306
Original file line number Diff line number Diff line change @@ -930,6 +930,9 @@ sealed class ResolvedComplexType(
930
930
for (use in attributes.values) {
931
931
if (use.mdlAttributeDeclaration.mdlTypeDefinition == IDType ) {
932
932
require(idAttrName == null ) { " Multiple attributes with id type: ${idAttrName} and ${use.mdlAttributeDeclaration.mdlQName} " }
933
+ require(use.mdlValueConstraint !is ValueConstraint .Fixed ) {
934
+ " Fixed id attributes are not allowed in 1.0"
935
+ }
933
936
idAttrName = use.mdlAttributeDeclaration.mdlQName
934
937
}
935
938
}
You can’t perform that action at this time.
0 commit comments