OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] XQuery and DTD/Schema?

[ Lists Home | Date Index | Thread Index ]

At 10:17 PM 7/3/2002 +0100, Michael Kay wrote:
> > - XQuery is semantically wired into the XSD basic type system, with
> >    the exception that the Duration type is underspecified so they use
> >    a custom restriction of it
>Well, the functions and operators are wired into it, and there are
>literals built in for four of the data types (decimal, integer, double,
>and string). The functions are just a library, not really a core part of
>the language. The operators probably could be abstracted away from the
>data types if we really wanted to do so. As it is, most of the Schema
>datatypes (e.g. the gRegorian family) have no intrinsic support in the
>language: one could define a core set of types that is substantially
>smaller than the set of Schema primitive types.

XQuery needs to know about integers, floats, strings, etc. The built-in 
types of XML Schema are used not only by XML Schema, but also by many 
RELAX-NG applications, RDF, the SQL/XML mappings being defined by the 
ANSI/ISO SQLX committee, etc. When these data types are so widely accepted, 
it just makes sense to support them.



News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS