[oXygen-user] Using xs:unique
Olumide
videohead at mail.com
Thu Nov 29 12:09:31 CST 2012
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
More information about the oXygen-user
mailing list