<?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>4517</bug_id>
          
          <creation_ts>2007-05-02 01:52:34 +0000</creation_ts>
          <short_desc>Why forbid value constraints on ID types?</short_desc>
          <delta_ts>2008-03-08 15:47:01 +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>Macintosh</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <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>14970</commentid>
    <comment_count>0</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2007-05-02 01:52:34 +0000</bug_when>
    <thetext>Clause 3 of Schema Component Constraint: Attribute Declaration 
Properties Correct reads:

    3 If the {type definition} is or is constructed from ID, 
      then there is no {value constraint}.

Similarly, clause 5 of Schema Component Constraint: Element Declaration 
Properties Correct reads: 

    5 If the {type definition} or {type definition}&apos;s 
      {content type}&apos;s {simple type definition} is or is 
      constructed from ID, then there is no {value constraint}.

These are, I think, holdovers from the past: they reconstruct constraints
originally formulated for SGML DTDs and carried over for compatibility
reasons to XML 1.0 and 1.1 DTDs.  But they violate the principle of
orthogonality: why should value constraints be allowed for some types
but forbidden for others?

The spec becomes simpler and the design cleaner if these ad hoc
rules are dropped.  The WG&apos;s decision on bug 4348 reflects the view
that compatibility with the ID-related constraints of SGML and
XML DTDs no longer needs to be a high-priority goal.  I believe we
should remove these unhelpful constraints.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15268</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2007-06-01 15:58:55 +0000</bug_when>
    <thetext>Discussed at 2005-06-01 telecon. The WG adopted the suggested change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15468</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2007-06-18 14:15:59 +0000</bug_when>
    <thetext>The proposal adopted by the Working Group has now been integrated into
the status quo documents on the server; accordingly, I&apos;m changing the
status to &apos;RESOLVED&apos;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>