JacobAsiedu - Thu Oct 05 2006 - Version 1.1
Parent topic: DiscussionFor1dot1RC2
The uniqueness constraint(
in the identity constraint declaration.<xs:field xpath="@id|@ref"/>
This issue is illustrated with the example below. Attempting to reference 'efg301' more than once results in a validation error.
...
<ConceptStates>
<StateDefinition id="efg301">
<Representation>
<Label xml:lang="en" audience="efg2">brown</Label>
</Representation>
</StateDefinition>
....
<CategoricalCharacter id="efg458">
<Representation>
<Label xml:lang="en" audience="efg2">Flower Color</Label>
</Representation>
<States>
<StateReference ref="efg301"/>
</States>
</CategoricalCharacter>
<CategoricalCharacter id="efg459">
<Representation>
<Label xml:lang="en" audience="efg2">Leaf Color</Label>
</Representation>
<States>
<StateReference ref="efg301"/>
</States>
</CategoricalCharacter>
A solution will be to declare both
<xs:unique name="SomeUniqueName">
<xs:selector xpath=".//u:StateDefinition"/>
<xs:field xpath="@id"/>
</xs:unique>
This ensures that id's on
-- Main.JacobAsiedu - 05 Oct 2006