[ https://issues.apache.org/jira/browse/XERCESC-1721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Boris Kolpackov closed XERCESC-1721. ------------------------------------ Resolution: Invalid The all compositor cannot be inside the sequence compositor. If you remove the <sequence> tags in the referencing type, the schema becomes valid. > Unexpected error info is reported for the group referrence(and Order > indicators "all" is used in the group definition) > ---------------------------------------------------------------------------------------------------------------------- > > Key: XERCESC-1721 > URL: https://issues.apache.org/jira/browse/XERCESC-1721 > Project: Xerces-C++ > Issue Type: Bug > Components: Validating Parser (XML Schema) > Affects Versions: 2.7.0 > Environment: Windows XP > Reporter: Bill Yan > > When a group is defined with Order indicators "all", and this group is > refered in a complexType definition, the schema file looks like this: > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > <xsd:element name="comment" type="xsd:string"/> > <xsd:group name="schemaTop3"> > <xsd:all> > <xsd:element ref="comment"/> > </xsd:all> > </xsd:group> > > <xsd:complexType name="PurchaseOrderType"> > <xsd:sequence> > <xsd:group ref="schemaTop3" minOccurs="0" maxOccurs="0"/> > </xsd:sequence> > </xsd:complexType> > </xsd:schema> > when I use XercesDOMParser::loadGrammar() to check the validity of this > schema file, the following error info is reported: > "A group whose content is 'all' must only appear as the content type of a > complex type definition. - Line 11, Col 61". > I tried to change xsd:all to xsd:sequence or xsd:choice, no error is > reported. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org