Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 25 additions & 10 deletions repository/src/main/resources/xsd/repositorytypes.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -579,18 +579,10 @@
<xs:simpleType name="language_t">
<xs:restriction base="xs:language"/>
</xs:simpleType>
<!-- Mapping of logical datatype to a physical one for the standard defined here -->
<xs:complexType name="mappedDatatype">
<xs:sequence>
<xs:element name="extension" minOccurs="0">
<xs:annotation>
<xs:documentation>A datatype may be mapped to an XML snippet in the native schema belonging to its encoding standard.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="encoding" type="fixr:unnamedEncoding" minOccurs="0"/>
<xs:element name="annotation" type="fixr:annotation" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="standard" type="fixr:Name_t" use="required"/>
Expand Down Expand Up @@ -1095,4 +1087,27 @@
</xs:annotation>
</xs:restriction>
</xs:simpleType>
<!-- Generic (abstract) type that is to be used for actual encoding information -->
<xs:complexType name="baseEncoding" abstract="true">
<xs:sequence>
<xs:element name="annotation" type="fixr:annotation" minOccurs="0"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<!-- Encoding information where the context does not identify its name -->
<xs:complexType name="namedEncoding">
<xs:complexContent>
<xs:extension base="fixr:baseEncoding">
<xs:attribute name="standard" type="fixr:Name_t" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<!-- Encoding information where the context already identifies its name -->
<xs:complexType name="unnamedEncoding">
<xs:complexContent>
<xs:extension base="fixr:baseEncoding">
<xs:attribute name="standard" type="fixr:Name_t" use="prohibited"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>