This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2664 - wd-2: "fixed value constraint" based on identity or equality
Summary: wd-2: "fixed value constraint" based on identity or equality
Status: RESOLVED FIXED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Datatypes: XSD Part 2 (show other bugs)
Version: 1.1 only
Hardware: PC Windows 2000
: P2 normal
Target Milestone: ---
Assignee: Henry S. Thompson
QA Contact: XML Schema comments list
URL: http://lists.w3.org/Archives/Member/w...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-05 20:15 UTC by Mary Holstege
Modified: 2006-01-20 22:54 UTC (History)
0 users

See Also:


Attachments

Description Mary Holstege 2006-01-05 20:15:41 UTC
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 "fixed value constraint" 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.
Comment 1 Mary Holstege 2006-01-05 20:17:41 UTC
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.
Comment 2 Noah Mendelsohn 2006-01-05 21:57:27 UTC
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="4.000", and an instance with <e>4.0</e>, and the instance
will validate.  What will we report in the PSVI as the value?  If it'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="4.000", which has
historically been closely tied to "fixed".  Maybe or maybe not we should take
one more look at enumeration, but it certainly seems odd to have an element
that's explicitly "fixed" and then to report the element has legally having a
different value.

Noah
Comment 3 Dave Peterson 2006-01-05 23:20:28 UTC
(In reply to comment #2)

> As I understand our resolution, it says that I can have a precisionDecimal
> element with a fixed="4.000", and an instance with <e>4.0</e>, and the instance
> will validate.  What will we report in the PSVI as the value?  If it'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.

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.)
Comment 4 Noah Mendelsohn 2006-01-06 21:50:08 UTC
Dave Peterson wrote:

> (We agreed to treat fixed values as
> enumerations, which in turn means 
> 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
Comment 5 Mary Holstege 2006-01-20 22:54:54 UTC
Proposal approved http://lists.w3.org/Archives/Member/w3c-xml-schema-wg/2005May/
0018