Re: Deriving a simple type from a complex type

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
DevelopMentor

----- 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