Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: xml schema question >Thread Next - Looking for advice on empty tag usage Problem with sequence inside a groupTo: <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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
