Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Problem with sequence inside a group

From: "Simon Kampa" <simon.kampa@------.--.-->
To: <xmlschema-dev@--.--->
Date: 7/23/2004 5:27:00 PM
Hi,

Xerces 2.5.2 complains at my schema when a sequence (dir=
ectly under a
group declaration) has cardinality values (see Listing 1). =
To me this
appears to be a bug within the schema parser. What do =
you lot think?

As a work-around, I simply added a choice around the s=
equence (Listing
2) and it works.

Regards,
Simon

Listing 1:
=09<xs:group name="MenuGroup">
=09=09<xs:sequence minOccurs="0" maxOccurs="unbounded">
=09=09=09<xs:element ref="Menu" minOccurs="0"
maxOccurs="unbounded"/>
=09=09=09<xs:element ref="Separator" minOccurs="0"
maxOccurs="unbounded"/>
=09=09=09<xs:element ref="Action" minOccurs="0"
maxOccurs="unbounded"/>
=09=09</xs:sequence>
=09</xs:group>


Listing 2:
=09<xs:group name="MenuGroup">
=09=09<xs:choice>
=09=09<xs:sequence minOccurs="0" maxOccurs="unbounded">
=09=09=09<xs:element ref="Menu" minOccurs="0"
maxOccurs="unbounded"/>
=09=09=09<xs:element ref="Separator" minOccurs="0"
maxOccurs="unbounded"/>
=09=09=09<xs:element ref="Action" minOccurs="0"
maxOccurs="unbounded"/>
=09=09</xs:sequence>
=09=09</xs:choice>
=09</xs:group>




----------------------------------------
Simon Kampa
Consultant
STASYS Limited, 
The Granary, 1 Waverley Lane, 
Farnham, Surrey, UK, GU9 8BB

email: simon.kampa@s...
Tel: +44 (0)1252 732584
STASYS web site: http://www.stasys.co.uk 

________________________________________________________________________
This email and any files transmitted with it are intende=
d solely for the use of the individual or entity to =
whom they are addressed. They may contain sensitive and/or=
 in confidence information that is covered by legal, pro=
fessional or other privilege. No mistake in transmission i=
s intended to waive or compromise any such privilege. If=
 you have received this email in error please notify t=
he sender at once.

This email has been scanned for viruses on behalf of S=
TASYS Limited by
the MessageLabs Email Security System.
________________________________________________________________________

From jeni@j...  Fri Jul 23 11:42:44 2004
Return-Path: <jeni@j...>
X-Original-To: xml


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent