Skip to content

ids.XSD - Invalid xs:attributeGroup ref="xs:occurs" in applicabilityType #422

@spaih

Description

@spaih

Background:
Started building a Plugin for IDS-Data-Exchange and run into technical problems, as the current IDS.xsd is not fit for automatic validation in standard .XSD parser, due to technical mistakes. Did not find any corresponding issue here. Please point me when I’m wrong (1 of 2). New to the party. Programming civil engineer and CAD dev. Hi!
Description:
The ids:applicabilityType definition in the XSD contains an xs:attributeGroup ref="xs:occurs" element directly under xs:complexType.
Problem:
According to the XML Schema Part 1: Structures Second Edition, Section 3.4.2, xs:attributeGroup references are not permitted directly as children of xs:complexType. The minOccurs and maxOccurs attributes (which xs:occurs bundles) are applicable to element declarations (xs:element) or model group particles (xs:sequence, xs:choice, xs:all), not to the complex type definition itself. This construct makes the schema invalid.
Impact:
The schema fails validation with standard XSD processors.
Suggested Fix:
I can suggest nothing but removal and maybe add a choice between the 3 possible states, as suggested in the developer documenation "required, optional, prohibited" directly instead of that dirty and technial wrong hack!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions