FYI, I was able to flag the duplicate name when I validated with XML Spy v4.0.1. However, when I changed your example to use "key" instead of "unique", I was no longer able to validate this instance doc. <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xsd:element name="Root"> <xsd:complexType> <xsd:choice minOccurs="0" maxOccurs="unbounded"> <xsd:element name="Element"> <xsd:complexType> <xsd:attribute name="name"/> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> <xsd:key name="IdentityContraint1"> <xsd:selector xpath=".//*"/> <xsd:field xpath="@name"/> </xsd:key> </xsd:element> </xsd:schema> Thanks! RobynReceived on Friday, 26 October 2001 13:37:28 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 22 July 2006 00:12:45 GMT