Skip to content

Commit 20612ba

Browse files
committed
Changes per review
1 parent 126fd89 commit 20612ba

1 file changed

Lines changed: 23 additions & 7 deletions

File tree

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

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@
6363
<xs:selector xpath="fixr:code"/>
6464
<xs:field xpath="@name"/>
6565
</xs:key>
66-
<xs:key name="codeIdKey">
67-
<xs:selector xpath="fixr:code"/>
68-
<xs:field xpath="@id"/>
69-
</xs:key>
7066
</xs:element>
7167
<xs:element ref="fixr:encodings" minOccurs="0"/>
7268
<xs:element name="annotation" type="fixr:annotation" minOccurs="0"/>
@@ -249,21 +245,41 @@
249245
</xs:attribute>
250246
</xs:complexType>
251247
<!-- Type attribute of a code set definition must reference a valid datatype name -->
252-
<xs:keyref name="codeSetTypeRef" refer="fixr:datatypeKey">
248+
<xs:keyref name="codeSetTypeKeyRef" refer="fixr:datatypeKey">
253249
<xs:selector xpath="fixr:codeSets/fixr:codeSet"/>
254250
<xs:field xpath="@type"/>
255251
</xs:keyref>
256252
<!-- Type attribute of a field definition must reference a valid datatype name -->
257-
<xs:keyref name="fieldTypeRef" refer="fixr:datatypeKey">
253+
<xs:keyref name="fieldTypeKeyRef" refer="fixr:datatypeKey">
258254
<xs:selector xpath="fixr:fields/fixr:field"/>
259255
<xs:field xpath="@type"/>
260256
</xs:keyref>
261257
<!-- Code set and scenario attributes in a field definition must reference a valid code set name and scenario -->
262-
<xs:keyref name="fieldCodeSetRef" refer="fixr:codeSetNameKey">
258+
<xs:keyref name="fieldCodeSetKeyRef" refer="fixr:codeSetNameKey">
263259
<xs:selector xpath="fixr:fields/fixr:field"/>
264260
<xs:field xpath="@codeSet"/>
265261
<xs:field xpath="@scenario"/>
266262
</xs:keyref>
263+
<!-- A scenario used in a code set definition must be a valid scenario defined in the list of scenarios -->
264+
<xs:keyref name="codeSetScenarioKeyRef" refer="fixr:scenarioKey">
265+
<xs:selector xpath="fixr:codeSets/fixr:codeSet"/>
266+
<xs:field xpath="@scenario"/>
267+
</xs:keyref>
268+
<!-- A scenario used in a component definition must be a valid scenario defined in the list of scenarios -->
269+
<xs:keyref name="componentScenarioKeyRef" refer="fixr:scenarioKey">
270+
<xs:selector xpath="fixr:components/fixr:component"/>
271+
<xs:field xpath="@scenario"/>
272+
</xs:keyref>
273+
<!-- A scenario used in a group definition must be a valid scenario defined in the list of scenarios -->
274+
<xs:keyref name="groupScenarioKeyRef" refer="fixr:scenarioKey">
275+
<xs:selector xpath="fixr:groups/fixr:group"/>
276+
<xs:field xpath="@scenario"/>
277+
</xs:keyref>
278+
<!-- A scenario used in a message definition must be a valid scenario defined in the list of scenarios -->
279+
<xs:keyref name="messageScenarioKeyRef" refer="fixr:scenarioKey">
280+
<xs:selector xpath="fixr:messages/fixr:message"/>
281+
<xs:field xpath="@scenario"/>
282+
</xs:keyref>
267283
</xs:element>
268284
<!-- Scenario definitions -->
269285
<xs:element name="scenarios">

0 commit comments

Comments
 (0)