Re: Uniqueness and case sensitivity

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