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

Re: Deriving a simple type from a complex type

From: Martin Gudgin <marting@develop.com>
Date: Mon, 19 Mar 2001 11:10:04 -0000
Message-ID: <006001c0b065$28038a40$0200a8c0@greyarea>
To: "Simon Cox" <Simon.Cox@dem.csiro.au>, "XML Schema Dev" <xmlschema-dev@w3.org>
You cannot derive a simpleType from a complexType. The base type of a simple
type can only be another simple type.

I understand what you *want* ( and believe me, many other people want it
too, but we have to stop adding features and ship something :-) ) There is
no way to do this in XML Schema 1.0. I believe it is part of the current
requirements gathering exercise for a future version.

Martin Gudgin

----- Original Message -----
From: "Simon Cox" <Simon.Cox@dem.csiro.au>
To: <xmlschema-dev@w3.org>
Sent: Monday, March 19, 2001 6:59 AM
Subject: Deriving a simple type from a complex type

> Is it possible to constrain the character content of a
> mixed complex type to be one of the built-in simple types?
> e.g.  if I have declared an anyType
>   <xsd:complexType name="FooType" mixed="true"/>
> can I then derive a type with simple content type="xsd:double"
> by restriction from this?  How?
> --
> Simon.Cox@dem.csiro.au    CSIRO Exploration & Mining
> T:08 9284 8443 F:08 9389 1906 C:0403 302 672 (Intl +61)
> http://www.ned.dem.csiro.au/research/visualisation/
Received on Monday, 19 March 2001 06:11:15 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:51 UTC