W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2005

[Bug 2045] R-181 (Datatypes): clarify equality and identity of lists (error, corrigendum needed)

From: <bugzilla@wiggum.w3.org>
Date: Thu, 08 Sep 2005 22:20:12 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1EDUke-0004wd-6b@wiggum.w3.org>


           Summary: R-181 (Datatypes):  clarify equality and identity of
                    lists (error, corrigendum needed)
           Product: XML Schema
           Version: 1.0
          Platform: PC
               URL: http://www.w3.org/2001/05/xmlschema-rec-
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 2: Datatypes
        AssignedTo: cmsmcq@w3.org
        ReportedBy: cmsmcq@w3.org
         QAContact: www-xml-schema-comments@w3.org

[This issue was originally raised by Stefan Wachter in
November 2002.  It was booked as Rec Comment R-181 and is
now being transferred into Bugzilla.]
When a list valued element or attribute is used as a key
then the equality of the values is important. In the
following example there are 3 lists with item types "Name",
"double", "nameOrDouble":

  <simpleType name="l1">
    <list itemType="Name"/>
  <simpleType name="l2">
    <list itemType="double"/>
  <simpleType name="l3">
    <list itemType="tns:nameOrDouble"/>
  <simpleType name="nameOrDouble">
    <union memberTypes="Name double"/>
Are these lists equal?
     1. Items types of lists are different but item types of
        items are equal: 

          <element xsi:type="l1">1.0 2.0<element> 
          = <element xsi:type="l3">1.0 2.0<element>

     2. Item types of lists are different but there are no

          <element xsi:type="l1"/> 
          = <element xsi:type="l2"/>

What are the exact rules for comparing lists?

Originally raised in:

Response from Henry Thompson on 18 November 2002, agreeing
that the rules should be cleaned up.

Proposal from Ashok Malhotra, 29 November 2003:

Discussed at the 2004-02-12 telecon. Decided that we need
new draft text based on current 2E.

Discussed again at the May 2005 face to face meeting.

Action NC2005-15: Datatype editors to resolve R-181 by
defining identity and equality of lists in terms of pairwise
member identity and equality, respectively.

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.
Received on Thursday, 8 September 2005 22:20:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:03 UTC