<?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>10662</bug_id>
          
          <creation_ts>2010-09-20 15:42:54 +0000</creation_ts>
          <short_desc>Should IDREFS and ENTITIES be magic types?</short_desc>
          <delta_ts>2011-03-04 23:51:47 +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 NT</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="Michael Kay">mike</reporter>
          <assigned_to name="David Ezell">David_E3</assigned_to>
          <cc>cmsmcq</cc>
    
    <cc>sandygao</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>39117</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-09-20 15:42:54 +0000</bug_when>
    <thetext>It seems that in XSD 1.1:

* There is no magic associated with the type xs:IDREFS; it behaves exactly the same as any other type defined as a list of IDREF values

* But there is magic associated with the type xs:ENTITIES. In a user-defined type declared as a list of ENTITY values, the ENTITY values are not validated against the known set of unparsed entities; but in a value of type ENTITIES, they are.

This asymmetry seems wrong. Any type declared as a list of ENTITY should have the semantics currently associated with xs:ENTITIES.

This can be achieved by changing validation rule String Valid (3.16.4): delete rule 3.2, and add &quot;or constructed&quot; after &quot;is validly derived&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39222</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2010-09-23 17:55:55 +0000</bug_when>
    <thetext>I agree to the direction suggested in the bug report. We made the changes for ID/IDREF, but obviously missed ENTITY.

But the actual change will likely be more complex than suggested. We need to cover cases where the type is a union or a list of union and ENTITY is a member in the union. This is why we had to introduce complex words like those in 3.17.5 for ID/IDREF:

... one of the following:
1 the ·actual value· of a member of the ·eligible item set· whose [type definition] or [member type definition] is or is ·derived· from ID or IDREF;
2 an item in the ·actual value· of a member of the ·eligible item set· whose [type definition] or [member type definition] has {variety} list and either its {item type definition} or the item&apos;s corresponding entry in [member type definitions] is or is ·derived· from ID or IDREF.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44977</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2011-02-01 17:48:48 +0000</bug_when>
    <thetext>A wording proposal intended to resolve this issue is now at 

  http://www.w3.org/XML/Group/2004/06/xmlschema-1/structures.b10662.html
  (W3C member only link)

The main innovation is that it defines a class of terms (ENTITY value, ID value, etc.) which can be used to describe the relevant constraints more consistently, more briefly, and the editors hope more clearly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45181</commentid>
    <comment_count>3</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2011-02-07 15:38:36 +0000</bug_when>
    <thetext>On the telcon 2011-02-04
Amendment:  instruct the editors to make &quot;ENTITY value&quot; (etc.) point to the paragraph defining that class of terms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46367</commentid>
    <comment_count>4</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2011-03-04 22:43:35 +0000</bug_when>
    <thetext>The change mentioned in comment 2 has been integrated into the status-quo version of the spec, with the amendment mentioned in comment 3.  This issue can accordingly be marked resolved.

Michael?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>