Re: Reg. <all> model group extension

I don't believe you are allowed to extend xs:all in XSD 1.0.  This has been 
relaxed in the upcoming 1.1.

That said, even by Daniel Veillard's own admission, the XML schema 
processing in libxml2 is patchy, so it's worth trying on another schema 
processor.

HTH,

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info
----- Original Message ----- 
From: "bharath" <bharathkr@huawei.com>
To: "'Michael Kay'" <mike@saxonica.com>; <xmlschema-dev@w3.org>
Cc: <rajithr@huawei.com>; <arathikarki@huawei.com>
Sent: Monday, November 30, 2009 2:26 PM
Subject: RE: Reg. <all> model group extension


> Hi..
> I am getting error in libxml2 as well as altova spy saying that
>
> "An all modelgroup is neither allowed in complexType definition
> "tns:BaseType" nor in its extension tns: DerivedType". "
>
> Can you please lookinto this schema whether it is valid or not.
>
>
> Thanks and Regards,
> Bharath.
>
>
> htipl
> HUAWEI TECHNOLOGIES CO.,LTD.  huawei_logo
> <file:///C:/Documents%20and%20Settings/b72392/Application%20Data/Microsoft/S
> ignatures/outlook_huawei_logo_en.jpg>
>
>
> Address: Huawei Industrial Base
> Bantian Longgang
> Shenzhen 518129, P.R.China
> www.huawei.com
> ----------------------------------------------------------------------------
> ---------------------------------------------------------
> This e-mail and its attachments contain confidential information from
> HUAWEI, which
> is intended only for the person or entity whose address is listed above. 
> Any
> use of the
> information contained herein in any way (including, but not limited to,
> total or partial
> disclosure, reproduction, or dissemination) by persons other than the
> intended
> recipient(s) is prohibited. If you receive this e-mail in error, please
> notify the sender by
> phone or email immediately and delete it!
>
>
>
>  _____
>
> From: Michael Kay [mailto:mike@saxonica.com]
> Sent: Monday, November 30, 2009 7:36 PM
> To: 'bharath'; xmlschema-dev@w3.org
> Cc: rajithr@huawei.com; arathikarki@huawei.com
> Subject: RE: Reg. <all> model group extension
>
>
> 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:41:47 UTC