
29 Nov
2012
29 Nov
'12
6:09 p.m.
On 29/11/2012 18:00, Florent Georges wrote:
Well, the value of the attribute @id is unique within the scope of each element a. What you're looking for, most likely, is to have unique values for @id of all elements a children of an Item, an similar for elements b. In this case, the following schema should do that:
Thanks. I've changed the <xs:unique>'s as follows because they can also be nested in <Item>. Is this correct? <xs:unique name="uniqueId-a"> <xs:selector xpath="*"/> <xs:field xpath="@id"/> </xs:unique> <xs:unique name="uniqueId-b"> <xs:selector xpath="*"/> <xs:field xpath="@id"/> </xs:unique> - Olumide