W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2003

Unions: canonical lexical representation

From: Alessandro Triglia <sandro@mclink.it>
Date: Mon, 10 Nov 2003 17:16:49 -0500
To: "[Public XML Schema-DEV]" <xmlschema-dev@w3.org>, "[XML Schema Comments]" <www-xml-schema-comments@w3.org>
Message-ID: <001d01c3a7d8$59a6e430$8b01a8c0@aldebaran>


Suppose you have a union whose members are:

- a restriction of xsd:string with a length facet = 1
- xsd:integer

Suppose the union is used as the type definition of an attribute declaration with default = "01"

This "01" does not match the first member of the union but matches the second member.  Therefore it is the lexical representation of an xsd:integer.  But its canonical lexical representation will be "1".  "1" (and not "01") will be added to the PSVI as the value of a missing attribute i.i. corresponding to that attribute declaration.

I would accept the statement that the attribute declaration *component* has a correct value for the default property ("the integer 1"), but when this value is written into the PSVI, the result will be wrong.

Alessandro Triglia
OSS Nokalva
Received on Monday, 10 November 2003 17:18:31 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:03 UTC