-
Notifications
You must be signed in to change notification settings - Fork 81
Description
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 (2 of 2). New to the party. Programming civil engineer and CAD dev. Hi!
Description:
The ids:idsValue complex type definition includes an xs:element ref="xs:restriction" within its xs:choice group.
Problem:
xs:restriction is a schema-defining component used to derive new types by restricting existing ones (see XML Schema Part 1: Structures Second Edition, Section 2.1.3). It is not an element that should appear in an XML instance document, nor is it valid to be referenced by an xs:element for inclusion in a content model. This construct makes the schema invalid.
Impact:
The schema fails validation with standard XSD processors. It also indicates an unclear intent for representing restricted values in the instance document. As I scrolled through many issue even the intent of using it doesn’t statisfy the desired functionality. As this is the most used DataType, it is crucial to get it right!
Suggested Fix:
Introduce a own restriction class instead of Xs-restriction, with all that community requested condition possibilities: eg. MinValue, MaxValue, MinOccurs, HasToBeUnique, Pattern.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status