<?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>2048</bug_id>
          
          <creation_ts>2005-09-08 22:42:18 +0000</creation_ts>
          <short_desc>R-182:  clarify equality and identity of union values</short_desc>
          <delta_ts>2007-03-29 18:48: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>Datatypes: XSD Part 2</component>
          <version>1.0 only</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://www.w3.org/2001/05/xmlschema-rec-comments.html#pfiUnionEquality</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>needsDrafting</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>2423</blocked>
          <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>5904</commentid>
    <comment_count>0</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2005-09-08 22:42:18 +0000</bug_when>
    <thetext>[This was originally raised by Stefan Wachter and booked as
Rec comment R-182.  It&apos;s now being transferred to Bugzilla.}

A similar question (to that of R-181, see bug 2044)
concerning equality arises with union types. Having the two
union types:

  &lt;simpleType name=&quot;u1&quot;&gt;
    &lt;union memberTypes=&quot;string&quot;/&gt;
  &lt;simpleType&gt;

  &lt;simpleType name=&quot;u2&quot;&gt;
    &lt;union memberTypes=&quot;string&quot;/&gt;
  &lt;simpleType&gt;

are these two elements equal?

  &lt;element xsi:type=&quot;u1&quot;&gt;abc&lt;element&gt; 
  = &lt;element xsi:type=&quot;u2&quot;&gt;abc&lt;element&gt;

See: 
http://lists.w3.org/Archives/Public/xmlschema-dev/2002Nov/0081.html

Response from Henry:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002OctDec/0052.html

The Working Group discussed this issue at the May 2005 face
to face meeting and instructed the editors to prepare
wording proposals.  [The minutes do not explicitly say, but
the editors&apos; recollection is, that the agreement was that
two unions may have overlapping value spaces, and that
equality of values is based on the identity of the value
(viewed as a member of a primitive datatype&apos;s value space),
not on the additional identity or structural similarity of
the datatypes whose value spaces it may be a member of.  In
other words, the two values in the example offered by Stefan
Wachter are identical.]

Note that we need both a 1.0 corrigendum and a wording
proposal for 1.1.  Because identity and equality are
distinct relations in 1.1 but not in 1.0, the wording
proposals will not necessarily be the same.  This
record is for the 1.0 corrigendum.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6689</commentid>
    <comment_count>1</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2005-10-14 00:42:28 +0000</bug_when>
    <thetext>(In reply to comment #0)

&gt; Response from Henry:
&gt; http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002OctDec/0052.html
&gt; 
&gt; The Working Group discussed this issue at the May 2005 face
&gt; to face meeting and instructed the editors to prepare
&gt; wording proposals.  [The minutes do not explicitly say, but
&gt; the editors&apos; recollection is, that the agreement was that
&gt; two unions may have overlapping value spaces, and that
&gt; equality of values is based on the identity of the value
&gt; (viewed as a member of a primitive datatype&apos;s value space),
&gt; not on the additional identity or structural similarity of
&gt; the datatypes whose value spaces it may be a member of.  In
&gt; other words, the two values in the example offered by Stefan
&gt; Wachter are identical.]
&gt; 
&gt; Note that we need both a 1.0 corrigendum and a wording
&gt; proposal for 1.1.  Because identity and equality are
&gt; distinct relations in 1.1 but not in 1.0, the wording
&gt; proposals will not necessarily be the same.  This
&gt; record is for the 1.0 corrigendum.

That is also my understanding of identity and equality for 1.1:  IF
the two values are in the same primitive datatype&apos;s value space,
and are equal/identical, then in all derivations and unions they
are also equal/identical.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6697</commentid>
    <comment_count>2</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-10-14 16:36:18 +0000</bug_when>
    <thetext>Discussed at 2005-10-14 telecon.

Resolution: classified as &quot;clarification with corrigendum&quot;. Instruct the editor 
to draft wording proposal along the following lines:

&quot;The identity/equality of values in derived and union datatypes is based on 
their identity/equality in the primitive datatypes in whose value space they 
occur.  The identity/equality of lists is determined item-by-item:  all 
corresponding items must be identical/equal.&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>