W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2008

RE: [xmlschema-dev] <none>

From: Michael Kay <mike@saxonica.com>
Date: Fri, 5 Dec 2008 09:05:47 -0000
To: <bharathkr@huawei.com>, <xmlschema-dev@w3.org>
Message-ID: <967854967F4C4491A5E3E1A3CC1303D1@Sealion>
With this kind of question, it's a good idea to quote the error message, so
we can judge whether it makes sense against the spec.
 
Saxon reckons this one is invalid:
 
Error at xsd:all on line 5 column 52 of test.xsd:
  Cannot specify 'maxOccurs' on an 'all' compositor within a group
Error at xsd:all on line 5 column 52 of test.xsd:
  Cannot specify 'minOccurs' on an 'all' compositor within a group
Error at xsd:all on line 5 column 52 of test.xsd:
  The value "0" is not valid for the @maxOccurs attribute of <xsd:all>. Must
be 1
Schema processing failed: 3 errors were found while processing the schema
 
Michael Kay
http://www.saxonica.com/


  _____  

From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On
Behalf Of bharath
Sent: 05 December 2008 07:26
To: xmlschema-dev@w3.org
Subject: [xmlschema-dev] <none>



Hi..

 

For the following schema, altova is giving error but LIBXML is not giving
any error. Please reply me whether the following is a valid schema or
invalid schema.

 

 

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

       <xsd:group name="group">

              <xsd:all minOccurs="0" maxOccurs="0">

                     <xsd:element name="e1"/>

              </xsd:all>

       </xsd:group>

</xsd:schema>

 

Thanks and Regards,

Bharath.

 

****************************************************************************
****************************
 This e-mail and 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!

 
Received on Friday, 5 December 2008 09:06:27 GMT

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