W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2002

Re: Question about uniqueness

From: Eric Jain <Eric.Jain@isb-sib.ch>
Date: Fri, 13 Sep 2002 13:07:02 +0200
Message-ID: <007401c25b15$b0140ca0$2fd721c0@caliente>
To: "Eddie Robertsson" <erobertsson@allette.com.au>
Cc: "xmlschema-dev" <xmlschema-dev@w3.org>

> ><xsd:unique name="uniqueAccession">
> > <xsd:selector xpath="expasy:accession"/>
> > <xsd:field xpath="."/>
> ></xsd:unique>
> >
> ><accessions>
> >  <accession>P12345</accession>
> >  <accession>P23456</accession>
> >  <accession>P34567</accession>
> ></accessions>

> If the two or more
> "accession" elements would have the same text content then it _does_
> violate the unique constraint if it was declared in the element
> declaration for the "accessions" element.

Yes, it would violate the constraint, but the issue is that MSXML complains
(right at the first accession element!) even if there are no duplicates. On
the other hand if I create a small test file, everything works as expected,
so I must be missing something...


--
Eric Jain
Received on Friday, 13 September 2002 07:07:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:34 GMT