W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2005

[Bug 2042] Clause 1.2 of Datatypes Valid is broken

From: <bugzilla@wiggum.w3.org>
Date: Fri, 09 Sep 2005 02:18:28 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1EDYTE-0002xG-7j@wiggum.w3.org>


------- Additional Comments From sandygao@ca.ibm.com  2005-09-09 02:18 -------
There seem to be other problems in the "Datatype Valid" constraint in 4.1.4 of 
the datatypes spec:
- It assumes that there could be literals in the lexical space that don't 
correspond to any value in the value space. But as pointed out earlier 
(2.4.2) "Constraining the ·value space· consequently constrains the ·lexical 
- It ignores the fact that the order of member types in union types is 

Suggestion: something along the following line:
1. The string must be pattern valid if there is a pattern
2. The string must denote a value:
2.1 Primitive type
2.2 Derived atomic type (must be datatype-valid wrt the base/primitive type
2.3 List type (must be a sequence of items, each of which is datatype-valid wrt 
the item type)
2.4 Union type (must be datatype-valid wrt to at least one of the member types) 
(ues the first one in the list to determine the "denoted value")
3. The denoted value must be facet valid wrt all non-pattern facets
Received on Friday, 9 September 2005 02:18:33 UTC

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