Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


'Re: "Re: Comparison of values of anySimpleType"'

From: Kasimier Buchcik <kbuchcik@---------.-->
To: <noah_mendelsohn@--.---.--->
Date: 11/1/2004 4:29:00 PM
Hi,

Ahh, thanks for the hint; I did poke in XML Schema Part 2, and was too 
blind to see this obvious statement in XML Schema Part 1.

Hmm, observing the changed behaviour in Xerces-J 2.6.2 - it seems to 
dislike comparison with 'anySimpleType' now: does the XS world tend to 
move to disallow comparison with 'anySimpleType' here?

If using IDCs: is the simple/complex ur-type assumed for nodes, for 
which no declarations exist, if processed by skip/lax wildcards? Or are 
IDC fields restricted to resolve to declared (or xsi:type) nodes only?


Thanks & regards,

Kasimier


noah_mendelsohn@u... wrote:
> From our brand, spanking new XML Schema 1.0 Second Edition Recommendation 
> [1]:
> "The mapping from lexical space to value space is unspecified for items 
> whose type definition is the =B7simple ur-type definition=B7. Accordingly =
this=
 
> specification does not constrain processors' behaviour in areas where this=
 
> mapping is implicated, for example checking such items against 
> enumerations, constructing default attributes or elements whose declared 
> type definition is the =B7simple ur-type definition=B7, checking identity 
> constraints involving such items.
> 
> Note: The Working Group expects to return to this area in a future version=
 
> of this specification."
> Key/keyref are what the Recommendation calls Identity Constraints.  So, 
> this is a rare case where processors implementing different validation 
> rules are all conforming.
> 
> Noah
> [1] 
> http://www.w3.org/TR/2004/PER-xmlschema-1-20040318/#Type_Definition_Summar=
y
> 
> --------------------------------------
> Noah Mendelsohn 
> IBM Corporation
> One Rogers Street
> Cambridge, MA 02142
> 1-617-693-4036
> --------------------------------------
> 
> 
> 
> 
> 
> 
> 
> 
> Kasimier Buchcik <kbuchcik@4...>
> Sent by: xmlschema-dev-request@w...
> 10/20/04 07:45 AM
> 
>  
>         To:     <xmlschema-dev@w...>
>         cc:     (bcc: Noah Mendelsohn/Cambridge/IBM)
>         Subject:        Comparison of values of anySimpleType
> 
> 
> 
> Hi,
> 
> I have trouble understanding how 'anySimpleType' is handled if comparing 
> values. Xerces and XSV seem to differ here.
> 
> Identity-constraint example:
> (using Xerces-J 2.5.1, XSV 2.5-2, MSXML 4.0)
> 
> <sequence>
>    <element name="b" type="anySimpleType"/>
>    <element name="c" type="float"/>
> </sequence>
> 
> <b>1.0</b>
> <c>1.0</c>
> 
> with the value of 'c' being a keyref to the key value of 'b'.
> 
> Results: XSV and MSXML do not find the referenced key, Xerces does.
> 
> if both types are 'float':
> 
> Results: All tree validators find the referenced key.
> 
> I cannot find a hint for 'anySimpleType' being not comparable with the
> primitive types. The PER for datatypes says:
> 
> "anySimpleType is considered to have an unconstrained lexical space and 
> a =B7value space=B7 consisting of the union of the =B7value space=B7s of a=
ll the 
> =B7primitive=B7 datatypes and the set of all lists of all members of the 
> =B7value space=B7s of all the =B7primitive=B7 datatypes."
> 
> Further "4.2.1 equal" says:
> 
> "if a datatype T' is =B7derived=B7 by =B7restriction=B7 from an atomic dat=
atype 
> T then the =B7value space=B7 of T' is a subset of the =B7value space=B7 of=
 T. 
> Values in the =B7value space=B7s of T and T' can be compared according to 
> the above rules "
> 
> Can someone explain?
> 
> Greetings,
> 
> Kasimier
> 


From nobody@w... Mon Nov 01 15:31:06 2004
Received: from wiggum.w3.org ([128.30.52.23])
	by frink.w3.org with esmtp (Exim 4.34)
	id 1COe9C-0008Vj-3


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent