W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2009

RE: Reg. <all> model group extension

From: Michael Kay <mike@saxonica.com>
Date: Mon, 30 Nov 2009 14:06:16 -0000
To: "'bharath'" <bharathkr@huawei.com>, <xmlschema-dev@w3.org>
Cc: <rajithr@huawei.com>, <arathikarki@huawei.com>
Message-ID: <A7376D9E4C524CF594A541479AAF3EF8@Sealion>
It looks OK to me by visual inspection - I haven't tried running it.
 
Why do you doubt that it's OK? 

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

 
 


  _____  

From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On
Behalf Of bharath
Sent: 30 November 2009 13:55
To: xmlschema-dev@w3.org
Cc: rajithr@huawei.com; arathikarki@huawei.com
Subject: Reg. <all> model group extension


Hi All,
 
I have one doubt reg. <all> model group extension.
 
i have the following schema. 
 
<schema targetNamespace="testschema" xmlns:tns="testschema">
    <complexType name="BaseType">
        <all>
            <element name="a1" type="string"/>

            <element name="a2" type="string"/>
        </all>
    </complexType>
 
    <complexType name="DerivedType">
        <complexContent>
          <extension base="tns:BaseType">
            <all>
                <element name="a3" type="string"/>
            </all>
        <extension>
        </complexContent>
    <complexType>
 
</schema>
 
Is this extension of the <all> model group correct?? 
If not please provide me the reason. Please reply me as soon as possible.
 
 
Thanks and Regards,
Bharath.
Received on Monday, 30 November 2009 14:06:51 GMT

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