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 10:25:11 -0400
Message-Id: <34FED2E2-8C8D-11D8-A090-000393BB384C@jmp.com>
Cc: xmlschema-dev@w3.org
To: Jeff Dahl <jddahl@micron.com>

I missed that your two questions were of opposite polarity.

>>> Shouldn't unique be case-sensitive?

Yes, because of the material your cited earlier.

>>> Given the following XML segment:
>>>
>>> <foos>
>>>    <foo id="1490" name="myName"/>
>>>    <foo id="9091" name="myNAME"/>
>>> </foos>
>>>
>>> shouldn't a uniqueness constraint ... throw an error?

No, because unique is case-sensitive, and so 'myName' and 'myNAME' are 
different.

xan


>> Yes, and I don't see any other problems with your example.  Are you 
>> sure your processor enforces identity constraints?
>
> Using the sample program, sax.Counter, of Xerces 2.6.2 with the flags, 
> -v -s -f -np, will throw:
> 'Duplicate unique value [myNAME] declared for identity constraint of 
> element "foos".'
> when the case is the same.
Received on Monday, 12 April 2004 10:25:17 UTC

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