W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2011

Re: Choice between complextContent and complexType

From: Michael Kay <mike@saxonica.com>
Date: Thu, 16 Jun 2011 08:32:41 +0100
Message-ID: <4DF9B199.2020706@saxonica.com>
To: xmlschema-dev@w3.org
On 16/06/2011 02:37, Karl Stubsjoen wrote:
> I have an element "description", who should either extend the
> complexType "formInputTypes" or contain a sequence of "column"
> elements.  Is this possible?
>
Can you modify formInputTypes so that its content model is extracted 
into a named model group? If you can, then it's easy to define a new 
type using xs:choice that has this model group as one of its branches.

(I wish it were possible to refer to the content model of a complex type 
without having to do this, but unfortunately it isn't)

Michael Kay
Saxonica
Received on Thursday, 16 June 2011 07:33:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 16 June 2011 07:33:19 GMT