<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6735</bug_id>
          
          <creation_ts>2009-03-24 21:14:37 +0000</creation_ts>
          <short_desc>List simple types with whitespace != collapse</short_desc>
          <delta_ts>2009-05-08 16:37:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>Structures: XSD Part 1</component>
          <version>1.1 only</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>editorial, resolved</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="David Ezell">David_E3</assigned_to>
          <cc>cmsmcq</cc>
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>24398</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2009-03-24 21:14:37 +0000</bug_when>
    <thetext>The constraint &quot;Derivation Valid (Restriction, Simple)&quot; requires that for a list type D:

2.2.1.2 D.{facets} contains only the whiteSpace facet component.

But there is no requirement on the value of the &quot;whiteSpace&quot; facet. Can it be &quot;preserve&quot;?

It&apos;s not possible to get whiteSpace=preserve if the list type comes from a schema document, but what if it&apos;s &quot;born-binary&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24402</commentid>
    <comment_count>1</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2009-03-24 21:50:23 +0000</bug_when>
    <thetext>(In reply to comment #0)

&gt; But there is no requirement on the value of the &quot;whiteSpace&quot; facet. Can it be
&gt; &quot;preserve&quot;?
&gt; 
&gt; It&apos;s not possible to get whiteSpace=preserve if the list type comes from a
&gt; schema document, but what if it&apos;s &quot;born-binary&quot;?
 
In Datatypes, section 2.4.1.2, List Datatypes, we assert:

&quot;When a datatype is derived by ·restricting· a ·list· datatype, the following ·constraining facets· apply:
  ·length·
  ·maxLength·
  ·minLength·
  ·enumeration·
  ·pattern·
  ·whiteSpace·
  ·assertions·
For each of ·length·, ·maxLength· and ·minLength·, the length is measured in number of list items.  The value of ·whiteSpace· is fixed to the value collapse.&quot;

That last sentence should settle the matter.  Perhaps it should be duplicated in Structures?

Note also another aspect of your quote:  &quot;2.2.1.2 D.{facets} contains only the whiteSpace facet component.&quot;  I vaguely recall there was some reason we required that a construction of, say, a two-items-required list of integers datatype would be disallowed and one would be required to first construct an arbitrary-lists-of-integers datatype and then derive (using the length facet) the desired one.  Presumably to avoid constructing and deriving-by-facet in the same step.  Without looking, I suspect that our current derivation/construction mechanisms, even without that explicit restriction, don&apos;t have that capability.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25036</commentid>
    <comment_count>2</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2009-05-08 16:37:41 +0000</bug_when>
    <thetext>During its 2009-04-17 telecon, the schema WG adopted a proposal to address this issue, by updating clause 2.2.1.3 in &quot;Derivation Valid (Restriction, Simple)&quot; to read:

    2.2.1.2  D.{facets} contains only the whiteSpace facet component with
             {value} = collapse and {fixed} = true.

With this change, the WG believes that the issue raised in this bug report is
addressed. As the reporter of this bug, I&apos;m closing it accordingly.


</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>