This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6734 - NMTOKENS IDREFS and ENTITIES should all have a "whiteSpace" facet
Summary: NMTOKENS IDREFS and ENTITIES should all have a "whiteSpace" facet
Status: CLOSED FIXED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Datatypes: XSD Part 2 (show other bugs)
Version: 1.1 only
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: David Ezell
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords: resolved
Depends on:
Blocks:
 
Reported: 2009-03-24 20:57 UTC by Sandy Gao
Modified: 2009-04-21 19:21 UTC (History)
1 user (show)

See Also:


Attachments

Description Sandy Gao 2009-03-24 20:57:18 UTC
Section 3.4 in the Datatypes spec lists all facets that are already present on the derived types. For the 3 built-in list types, whiteSpace = collapse should be listed. whiteSpace should also be removed from the "may also specify" list for these types.
Comment 1 Dave Peterson 2009-03-24 21:14:51 UTC
(In reply to comment #0)

>           whiteSpace should also be removed from the "may also specify" list
> for these types.

(Most easily done by making whiteSpace fixed when set to collapse.  This was done relatively recently for some datatypes.)
Comment 2 C. M. Sperberg-McQueen 2009-04-09 01:14:23 UTC
It's not clear to me why whitespace should be removed from the 'may also
specify' list.  Is it illegal to specify whitespace=collapse when restricting a
list datatype?
Comment 3 Dave Peterson 2009-04-09 01:28:02 UTC
(In reply to comment #2)
> It's not clear to me why whitespace should be removed from the 'may also
> specify' list.  Is it illegal to specify whitespace=collapse when restricting a
> list datatype?

Of course not.  Just should be specified fixed="true" (as we did a few months ago for most of the primitives).  That way it gets the lead-in "these facets must not be changed from the values shown" rather than "these facets may be further restricted in the derivation of new types" (which really suggests that it can be *changed*, not just *specified*).  And it *should* be listed as having a value, not just available to be given a value in a subsequent derivation (which is what the "may also specify values for" list is about).

Comment 4 David Ezell 2009-04-13 14:12:36 UTC
The WG decided on wording to address this issue:
http://www.w3.org/XML/Group/2004/06/xmlschema-2/datatypes.b6734.html
Comment 5 C. M. Sperberg-McQueen 2009-04-21 18:12:50 UTC
The change mentioned in comment 4 now having been integrated into the
status-quo documents, I'm marking this issue RESOLVED / FIXED.

Sandy, as the originator, will you please verify that the problem has been
fixed to your satisfaction and CLOSE the issue (or REOPEN it if not)?
Thanks.  On Friday, silence will be taken as consent.