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

Re: <group> legal under <extension>?

From: Rahul Srivastava <Rahul.Srivastava@Sun.COM>
Date: Fri, 12 Oct 2001 09:31:38 +0000 (Asia/Calcutta)
Message-Id: <200110120403.f9C43UH05031@blr-root.India.Sun.COM>
To: xmlschema-dev@w3.org
> Hamish Eisler wrote...
>
> Hi everyone -
> 
> Can someone in the know tell me if the following is legal?
> 
> 	<xsd:complexType name="foo.extended.type">
> 		<xsd:complexContent>
> 			<xsd:extension base="xhtml:form.type">
> 				<xsd:group ref="foo.extension.content"/>
> 			</xsd:extension>
> 		</xsd:complexContent>	
> 	</xsd:complexType>	
> 
> Basically, can I use <group> to extend an element, instead of directly
> placing a <sequence>, <choice>, or <all> node underneath?

Yes, you can.

> 
> Seems logical, but maybe I'm missing something (or XML Spy is)...

Maybe XML Spy is missing something. :-)

-Rahul.

> 
> Thanks,
> 
> -Hamish
> 
Received on Friday, 12 October 2001 00:03:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:24 GMT