Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a TypeOfClass restriction to reference definitions in XSD #304

Open
OliverHopt opened this issue Dec 6, 2022 · 0 comments
Open
Milestone

Comments

@OliverHopt
Copy link

OliverHopt commented Dec 6, 2022

Within the XMI transformations written for moving forward, every reference definition in the XSD contained an enumeration with all target classes that would be allowed destinations for that reference.

The content of that enumeration was calculated by following the inheritence path starting from the target data type towards all its subclasses. Just non-abstract classes were inserted. The result looked something like this:

<xs:complexType> <xs:simpleContent> <xs:extension base="ReferenceType"> <xs:attribute name="typeOfClass" use="required"> <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="Datum"/> <xs:enumeration value="ClassificationItem"/> <xs:enumeration value="Code"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:extension> </xs:simpleContent> </xs:complexType>

@DanSmith DanSmith added this to the Backlog milestone Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants