XML Schema compiler/New Issue: name for the urType

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