[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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>
RE: [xmlschema-dev] <none>
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

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.