- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 29 Oct 2002 17:09:25 +0000
- To: Joe Forrest <curiousmejf@yahoo.com>
- Cc: xmlschema-dev@w3.org
Joe Forrest <curiousmejf@yahoo.com> writes:
>
> Thanks Henry! Does this mean, in the above example, if
> only one of the elements has xsi:type, then the
> uniqueness constraint won't work:
> <books ...>
> <isbn xsi:type="xsd:decimal">1234.0</isbn>
> <isbn>1234</isbn>
> </books>
No violation, the two <isbn> elements have _different_ values, i.e. a
decimal and an anySimpleType.
> Well, I presume, if the xsi:type is in the second isbn
> and not in the first isbn, above, then, the constraint
> would be enforced. Is it true?.
No, still _different_ values, one anySimpleType and one decimal.
ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
W3C Fellow 1999--2002, part-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Tuesday, 29 October 2002 12:09:26 UTC