Skip to content

xs:NOTATION as a member type of a union #12

@michaelhkay

Description

@michaelhkay

Tests MS-SimpleType2006-07-15 stE056 through stE065 all declare a union type with xs:NOTATION as one of its member types.

On the face of it this violates the constraint (present in both XSD 1.0 and 1.1)

Schema Component Constraint: enumeration facet value required for NOTATION
It is an ·error· for NOTATION to be used directly in a schema. Only datatypes that are [·derived·] from NOTATION by specifying a value for ·enumeration· can be used in a schema.

The precise meaning of this constraint is unclear. Obviously xs:NOTATION can be used as the base type of a restriction with an enumeration facet. Whether it can be used anywhere else is open for debate, but a plain English reading of this constraint says that it can't be used as a member type of a union.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions