Skip to content

Commit c429129

Browse files
committed
[#190] Move datatype to repositorytypes.xsd
1 parent b05e6da commit c429129

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

repository/src/main/resources/xsd/repository.xsd

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -108,27 +108,6 @@
108108
<xs:field xpath="@name"/>
109109
</xs:key>
110110
</xs:element>
111-
<xs:element name="datatype">
112-
<xs:complexType>
113-
<xs:sequence>
114-
<xs:element name="mappedDatatype" type="fixr:mappedDatatype" minOccurs="0" maxOccurs="unbounded"/>
115-
<xs:element name="annotation" type="fixr:annotation" minOccurs="0"/>
116-
</xs:sequence>
117-
<xs:attribute name="name" type="fixr:Name_t" use="required"/>
118-
<xs:attribute name="scenario" type="fixr:Name_t" default="base">
119-
<xs:annotation>
120-
<xs:documentation>The use case of a datatype by name</xs:documentation>
121-
</xs:annotation>
122-
</xs:attribute>
123-
<xs:attribute name="scenarioId" type="fixr:id_t" default="1">
124-
<xs:annotation>
125-
<xs:documentation>Unique identifier of a scenario. Default is '1' for base scenario.</xs:documentation>
126-
</xs:annotation>
127-
</xs:attribute>
128-
<xs:attribute name="baseType" type="fixr:Name_t"/>
129-
<xs:attributeGroup ref="fixr:entityAttribGrp"/>
130-
</xs:complexType>
131-
</xs:element>
132111
<xs:element name="datatypes">
133112
<xs:complexType>
134113
<xs:sequence>

repository/src/main/resources/xsd/repositorytypes.xsd

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,27 @@
256256
</xs:sequence>
257257
<xs:attribute name="name" type="fixr:Name_t" use="required"/>
258258
</xs:complexType>
259+
<xs:element name="datatype">
260+
<xs:complexType>
261+
<xs:sequence>
262+
<xs:element name="mappedDatatype" type="fixr:mappedDatatype" minOccurs="0" maxOccurs="unbounded"/>
263+
<xs:element name="annotation" type="fixr:annotation" minOccurs="0"/>
264+
</xs:sequence>
265+
<xs:attribute name="name" type="fixr:Name_t" use="required"/>
266+
<xs:attribute name="scenario" type="fixr:Name_t" default="base">
267+
<xs:annotation>
268+
<xs:documentation>The use case of a datatype by name</xs:documentation>
269+
</xs:annotation>
270+
</xs:attribute>
271+
<xs:attribute name="scenarioId" type="fixr:id_t" default="1">
272+
<xs:annotation>
273+
<xs:documentation>Unique identifier of a scenario. Default is '1' for base scenario.</xs:documentation>
274+
</xs:annotation>
275+
</xs:attribute>
276+
<xs:attribute name="baseType" type="fixr:Name_t"/>
277+
<xs:attributeGroup ref="fixr:entityAttribGrp"/>
278+
</xs:complexType>
279+
</xs:element>
259280
<xs:simpleType name="datatypeStandard_enum">
260281
<xs:restriction base="xs:string">
261282
<xs:enumeration value="ISO11404">

0 commit comments

Comments
 (0)