W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2004

Re: Uniqueness and case sensitivity

From: Xan Gregg <xan.gregg@jmp.com>
Date: Mon, 12 Apr 2004 08:41:11 -0400
Message-Id: <AD900D74-8C7E-11D8-A090-000393BB384C@jmp.com>
Cc: xmlschema-dev@w3.org
To: Jeff Dahl <jddahl@micron.com>

> 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

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:11 UTC