atviriduomenys / spinta

Spinta is a framework to describe, extract and publish data (a DEP Framework).
MIT License
10 stars 4 forks source link

in XSD, attribute can be a ref to an externally defined attribute also #605

Open karina-klinkeviciute opened 2 months ago

karina-klinkeviciute commented 2 months ago

Just like elements can have refs to externally defined elements, the same way is with attributes.

Example:

<xs:attribute name="mybaseattribute">
  <xs:simpleType>
   <xs:restriction base="xs:integer">
      <xs:maxInclusive value="1000"/>
   </xs:restriction>
  </xs:simpleType>
</xs:attribute>
<xs:complexType name="myComplexType">
  <xs:attribute ref="mybaseattribute"/>
</xs:complexType>

This is not covered in XSD manifest.