W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2007

RE: SimpleType as valid derivation of abstract type in 1.1 ?

From: Michael Kay <mike@saxonica.com>
Date: Fri, 9 Mar 2007 10:54:22 -0000
To: "'Pete Cordell'" <petexmldev@tech-know-ware.com>, "'Guillaume Lebleu'" <gl@brixlogic.com>
Cc: <xmlschema-dev@w3.org>
Message-ID: <008401c76239$4c2ca280$6401a8c0@turtle>

> 
> In your example the ObjId type is defaulted to xs:anyType; a 
> complex content type.  To make it simple content, you need to 
> do something like:

<snipped/>

I think (without checking my facts) it would also work if the base type has
an empty content model,

<xs:complexType name="obj" abstract="true">
  <xs:complexContent>
    <xs:sequence/>
  </xs:complexContent>
</xs:complexType>

Michael Kay
http://www.saxonica.com/
Received on Friday, 9 March 2007 10:54:40 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:12 UTC