- From: Xan Gregg <xan.gregg@jmp.com>
- Date: Mon, 12 Apr 2004 08:41:11 -0400
- To: Jeff Dahl <jddahl@micron.com>
- Cc: xmlschema-dev@w3.org
> Given the following XML segment: > > <foos> > <foo id="1490" name="myName"/> > <foo id="9091" name="myNAME"/> > </foos> > > shouldn't a uniqueness constraint: > > <xsd:element name="foos"> > <xsd:complexType> > <xsd:sequence> > <xsd:element name="foo" type="foo_type" maxOccurs="unbounded"/> > </xsd:sequence> > </xsd:complexType> > <xsd:unique name="name_id"> > <xsd:selector xpath="foo"/> > <xsd:field xpath="@name"/> > </xsd:unique> > </xsd:element> > > throw an error? ... > Shouldn't unique be case-sensitive? Yes, and I don't see any other problems with your example. Are you sure your processor enforces identity constraints? xan
Received on Monday, 12 April 2004 08:42:28 UTC