W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2000

Proper home namespace/resource for built-in datatypes

From: Curt Arnold <carnold@houston.rr.com>
Date: Fri, 21 Apr 2000 10:48:02 -0500
Message-ID: <004301bfaba9$132cf780$b344a018@houston.rr.com>
To: <www-xml-schema-comments@w3.org>
I know that there is some reorganization of the physical structure of the
schema for schemas intended in the near future and this though occurred to
me while working on the previously mentioned schema compilation project
(note, drop the https: from the url in the previous message).

Basically, all documents whether they are schemas or not will need to have
implied definitions of the builtin datatypes in the same manner as they have
an implied definition of xsi:type and xsi:null (especially since a built-in
datatype name could be a value for an xsi:type attribute)

Only a miniscule fraction of documents need to have knowledge of the schema
definition elements.

This seems to indicate that the definition of the built-in datatypes need to
be defined in the xsi namespace (http://www.w3.org/1999/XMLSchema-instance).

Datatypes used in the schema definition elements that are not intended as
generally available datatypes (typically commented as utility class not for
public use) should be defined in XMLSchema.xsd and would be in the
http://www.w3.org/1999/XMLSchema namespace.

When a processor is trying to resolve a type name that is not qualified, it
would first look within the current schema and if there was no match, would
then attempt to resolve within the schema instance namespace.

So, I'd suggest something like (freehanded definitions, not validated)


<schema targetNamespace="http://www.w3.org/1999/XMLSchema-instance">
    <simpleType name="urSimpleType"/>
    <simpleType name="string"/>
    <simpleType name="integer"/>
    <attribute name="type" type="QName"/>
    <attribute name="null" type="boolean"/>


<schema targetNamespace'http://www.w3.org/1999/XMLSchema">
    <import targetNamespace="http://www.w3.org/1999/XMLSchema-instance"
    <!-- import of xml namespace goes here   -->

    <!--  since this is not in the instance namespace, it will not be used
to resolve
                    unqualified names in other schemas   -->
    <simpleType name="XPathApprox"/>
    <attribute name="type" type="QName"/>
    <attribute name="null" type="boolean"/>
Received on Friday, 21 April 2000 11:58:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:47 UTC