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

XML Schema compiler/New Issue: name for the urType

From: Curt Arnold <carnold@houston.rr.com>
Date: Sun, 30 Apr 2000 23:10:18 -0500
Message-ID: <004001bfb323$2a08a4a0$9344a018@houston.rr.com>
To: <www-xml-schema-comments@w3.org>
I've made an initial version of my schema compiler available at
http://download.sourceforge.net/XSDComp/XSDComp.zip.  Still very much a work
in process.  Basically, it is three XSLT transforms that will take an XML
Schema, resolve the imports and includes, evaluations the qname references,
and expands the equivClasses and restriction of attributes.  It detects a
lot of different type of errors, but definitely not exhaustive at this time
and does not try to expand restriction of content model or determine
acceptible values of xsi:type for a given element.

On this issue of urType, I think I would prefer an explicit declaration of
an urType and the derivation of all types in a domain from it.

<!--  circular reference could indicate a urType   -->
<complexType name="urType" base="urType">
    <any minOccurs="0" maxOccurs="unbounded"/>
    <anyAttribute use="optional"/>
<complexType>

<!--  simpleType can inherit from complexType as long as complex type has
not
             required attributes or content.  Could restrict it further to
self references.  -->
<simpleType name="urSimpleType" base="urType"/>

<!--  this could replace content="empty" and serve as the
               basis for most derivations by extension  -->
<complexType name="empty" base="urType" derivedBy="restriction">
    <any maxOccurs="0"/>
    <anyAttribute use="prohibited"/>
</complexType>

My entry for the name the ur contest is root or rootType.
Received on Monday, 1 May 2000 00:20:52 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:52 UTC