<?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>2781</bug_id>
          
          <creation_ts>2006-01-30 18:35:53 +0000</creation_ts>
          <short_desc>restriction relation among facet values needed</short_desc>
          <delta_ts>2007-03-01 01:57:45 +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>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>important, easy, restriction cluster</status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>2246</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="C. M. Sperberg-McQueen">cmsmcq</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          
          
          <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>8047</commentid>
    <comment_count>0</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-01-30 18:35:53 +0000</bug_when>
    <thetext>Clause 1.3.2 of Schema Component Constraint: Derivation Valid
(Restriction, Simple) in section 3.14.6 of Structures reads:

    1.3.2 If there is a facet of the same kind in the {facets} of the
    {base type definition} (call this BF), then the DF&apos;s {value} is a
    valid restriction of BF&apos;s {value} as defined in [XML Schema:
    Datatypes].

The concept of one facet value being &apos;at least as strong as&apos; another
value for the same facet is a very useful one, and it is good that
Structures appeals to it here.  The problem is that this is a throw
which the Datatypes spec does not catch very well: the notion is
reasonably well covered with various component constraints about
restrictions that are valid or invalid, but the Datatypes spec does
not provide any single definition for the terminology used in the call
from Structures, or for any other term for the concept.

This is an editorial change that should be made before we finish.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11867</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-09-19 16:59:37 +0000</bug_when>
    <thetext>This issue against Structures should be dealt with at the same time as 
bug 2246 against Datatypes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12833</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2006-11-05 02:01:58 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Clause 1.3.2 of Schema Component Constraint: Derivation Valid
&gt; (Restriction, Simple) in section 3.14.6 of Structures reads:
&gt; 
&gt;     1.3.2 If there is a facet of the same kind in the {facets} of the
&gt;     {base type definition} (call this BF), then the DF&apos;s {value} is a
&gt;     valid restriction of BF&apos;s {value} as defined in [XML Schema:
&gt;     Datatypes].
&gt; 
&gt; The concept of one facet value being &apos;at least as strong as&apos; another
&gt; value for the same facet is a very useful one, and it is good that
&gt; Structures appeals to it here.  The problem is that this is a throw
&gt; which the Datatypes spec does not catch very well: the notion is
&gt; reasonably well covered with various component constraints about
&gt; restrictions that are valid or invalid, but the Datatypes spec does
&gt; not provide any single definition for the terminology used in the call
&gt; from Structures, or for any other term for the concept.

See discussion, comment 5 of bug 2246.  This needs to be harmonized with 3.15.6, Schema Component Constraint: Simple Type Restriction (Facets).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13075</commentid>
    <comment_count>3</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2006-12-04 19:32:22 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; This issue against Structures should be dealt with at the same time as 
&gt; bug 2246 against Datatypes.

It&apos;s not clear (at least to me) that bug 2246 has anything to do with this one.  This does not mean that there might need to be a change to Datatypes to fix this one, of course.  Bug 2246 addresses the question of whether when deriving using a particular facet in the presence of that facet in the base type, the now-redundant base type&apos;s facet should be included in the derived datatype&apos;s {facets} set.  See bug 2246 and the fix needed for 2246 in Structures proposed in 4034.

For this bug, reference should be made specifically to the various schema component constraints specified separately within the Datatypes description of each kind of facet, rather than amorphously to an unspecified definition in the Datatypes spec.  If a Datatypes definition of &quot;valid restriction&quot; is wanted, a new bug should be entered for it.  (I don&apos;t pretend to know how that bug should be stated, or what to suggest as a fix.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13130</commentid>
    <comment_count>4</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2006-12-11 16:28:35 +0000</bug_when>
    <thetext>(In reply to comment #0 and #3)
from comment #0:
&gt; Clause 1.3.2 of Schema Component Constraint: Derivation Valid
&gt; (Restriction, Simple) in section 3.14.6 of Structures reads:
&gt; 
&gt;     1.3.2 If there is a facet of the same kind in the {facets} of the
&gt;     {base type definition} (call this BF), then the DF&apos;s {value} is a
&gt;     valid restriction of BF&apos;s {value} as defined in [XML Schema:
&gt;     Datatypes].

from comment #3:
&gt; For this bug, reference should be made specifically to the various schema
&gt; component constraints specified separately within the Datatypes description of
&gt; each kind of facet, rather than amorphously to an unspecified definition in the
&gt; Datatypes spec.  If a Datatypes definition of &quot;valid restriction&quot; is wanted, a
&gt; new bug should be entered for it. 

Perhaps a Note following the clauses of &quot;Derivation Valid (Restriction, Simple) which says:

   Note:  &quot;Valid restriction&quot; in clause 1.3.2 and 3.1.2.5 means that
   the facet in question satisfies the constraints given separately in
   the appropriate subsection of [reference to Datatypes 4.3] which
   describes that particular kind of facet.

Then no change to Datatypes is required.
   </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14285</commentid>
    <comment_count>5</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2007-03-01 01:57:32 +0000</bug_when>
    <thetext>The Working Group accepted a wording proposal resolving this issue
at its face to face meeting in New Orleans 31 January - 2 February.
Final amendments to the wording were approved 23 February.  Accordingly,
I&apos;m marking this issue resolved.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>