Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] What's the difference between xdt:anyAtomicType and xs:anySimpleType?

From: Frans Englich <frans.englich@--------->
To:
Date: 7/2/2005 11:29:00 PM
On Saturday 02 July 2005 23:17, Dimitre Novatchev wrote:
> On 7/3/05, Frans Englich <frans.englich@xxxxxxxxx> wrote:
> > Hi,
> >
> > I wonder, what is the difference between the xdt:anyAtomicType and
> > xs:anySimpleType? It is a type(duh) and hence can code and definitions
> > depend on it, but other than that, does it have any "effective" impact?
> >
> > Why does it exist? If it didn't exist, anySimpleType would have to derive
> > from the imaginary "itemType"; is that the reason?
>
> No. xdt:anyAtomicType is not identical (see below) to xs:anySimpleType.
>
> > Can the anyAtomicType be considered a "marker interface" for atomic
> > values, but that it in practice is an anySimpleType?
>
> Any instance/subtype of xdt:anyAtomicType is an instance/subtype of
> xs:anySimpleType but the reverse is not true.

Yes, such kind of relationships emerges as soon one have different types.

>
> > In the XML.com article titled "The XPath 2.0 Data Model"[1] there's a
> > small hint:
> >
> > "The Data Model document adds five new types to the 19 primitive types
> > defined in the Part 2 Recommendation: [...] the xdt:anyAtomicType, an
> > abstract type that plugs a newly-discovered architectural hole [...]"
> >
> > What was the architectural hole(or where can I read about it), and has it
> > any relation to my question?
>
> To represent the set of all types, whose instances are atomic (but not
> list or union) types.

Yes, good point, missed that. Except for that one(separating it from 
union/list types), does there exist any other reason to why anySimpleType 
could not be the direct base class of the atomic types?

>
>
> xdt:anyAtomicType is a true subtype of xs:anySimpleType.

What derivation/inheritage/type is not a "true subtype"?


Cheers,

		Frans


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