Re: Question about uniqueness

> ><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 UTC