<?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>2664</bug_id>
          
          <creation_ts>2006-01-05 20:15:41 +0000</creation_ts>
          <short_desc>wd-2: &quot;fixed value constraint&quot; based on identity or equality</short_desc>
          <delta_ts>2006-01-20 22:54:54 +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.1 only</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 2000</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2004Jun/0281.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mary Holstege">holstege</reporter>
          <assigned_to name="Henry S. Thompson">ht</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>7653</commentid>
    <comment_count>0</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2006-01-05 20:15:41 +0000</bug_when>
    <thetext>raised on 25 Jun 2004 by Sandy Gao:
2.2 mentions that identity is *only* used for enumeration and identity 
constraints; and equality is *only* used in conjunction with order (presumably 
when checking the range facets).

But I suppose &quot;fixed value constraint&quot; also needs to use one of these 2 
relations. Did we make a decision?

agreed on 3 Dec 2004 (http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/
2004Dec/0002.html)

RESOLVED Close wd-2 by instructing the editors to treat fixed value constraints 
the same as enumeration with regards to identity vs equality.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7654</commentid>
    <comment_count>1</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2006-01-05 20:17:41 +0000</bug_when>
    <thetext>announced by group on 3 Dec 2004 (http://lists.w3.org/Archives/Member/w3c-xml-
schema-ig/2004Dec/0002.html)
agreement by reviewer on 3 Dec 2004 (http://lists.w3.org/Archives/Member/w3c-
xml-schema-ig/2004Dec/0002.html)

Action history
Part 2 Editors
accepted on 3 Dec 2004 (http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/
2004Dec/0002.html)


Editors to treat fixed value constraints the same as enumeration with regards to 
identity vs equality.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7657</commentid>
    <comment_count>2</comment_count>
    <who name="Noah Mendelsohn">noah_mendelsohn</who>
    <bug_when>2006-01-05 21:57:27 +0000</bug_when>
    <thetext>I remain somewhat concerned about this resolution, especially given the
possibility that we would add a PSVI property reflecting the value, as opposed
to lexical form, of a validated element or attribute.

As I understand our resolution, it says that I can have a precisionDecimal
element with a fixed=&quot;4.000&quot;, and an instance with &lt;e&gt;4.0&lt;/e&gt;, and the instance
will validate.  What will we report in the PSVI as the value?  If it&apos;s fixed at
4.000 it seems odd to report 4.0, since we said the value is fixed and 4.000 is
clearly a different value.  Similarly, it seems odd to report 4.000, since the
instance clearly contains the lexical form of 4.0.

At the very least, I think we should note the possible tie in between this issue
and our possible plans to report values in the PSVI.  

Note that no such concern seems to arise with default=&quot;4.000&quot;, which has
historically been closely tied to &quot;fixed&quot;.  Maybe or maybe not we should take
one more look at enumeration, but it certainly seems odd to have an element
that&apos;s explicitly &quot;fixed&quot; and then to report the element has legally having a
different value.

Noah</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7659</commentid>
    <comment_count>3</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2006-01-05 23:20:28 +0000</bug_when>
    <thetext>(In reply to comment #2)

&gt; As I understand our resolution, it says that I can have a precisionDecimal
&gt; element with a fixed=&quot;4.000&quot;, and an instance with &lt;e&gt;4.0&lt;/e&gt;, and the instance
&gt; will validate.  What will we report in the PSVI as the value?  If it&apos;s fixed at
&gt; 4.000 it seems odd to report 4.0, since we said the value is fixed and 4.000 is
&gt; clearly a different value.  Similarly, it seems odd to report 4.000, since the
&gt; instance clearly contains the lexical form of 4.0.

If the element type requires a fixed value of 4.000 then 4.0 had better not
validate, since they are not identical.  (We agreed to treat fixed values as
enumerations, which in turn means identity, not equality.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7685</commentid>
    <comment_count>4</comment_count>
    <who name="Noah Mendelsohn">noah_mendelsohn</who>
    <bug_when>2006-01-06 21:50:08 +0000</bug_when>
    <thetext>Dave Peterson wrote:

&gt; (We agreed to treat fixed values as
&gt; enumerations, which in turn means 
&gt; identity, not equality.)

I somehow misread this bugzilla thread as implying that we were going with
equality or at least considering going with equality, possibly for both of them.
 If not, then my comment is indeed off base.  Thanks.

Noah</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7940</commentid>
    <comment_count>5</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2006-01-20 22:54:54 +0000</bug_when>
    <thetext>Proposal approved http://lists.w3.org/Archives/Member/w3c-xml-schema-wg/2005May/
0018</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>