Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » The {max occurs} of an element in an 'all' model group must be 0 or 1(Eclispe and XMLSpy don't agree)
The {max occurs} of an element in an 'all' model group must be 0 or 1 [message #1814762] Tue, 17 September 2019 15:33 Go to next message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 1
Registered: September 2019
Junior Member
Eclipse and XMLSpy don't agree. XMLSpy says this is not an error. Eclipse claims it is an error. Which is correct?
Eclipse XML Editors and Tools 3.14.0.v201905291408 org.eclipse.wst.xml_ui.feature.feature.group Eclipse Web Tools Platform

The full eclipse error is below.
cos-all-limited.2: The {max occurs} of an element in an 'all' model group must be 0 or 1. The value '-1 ' for element 'ConfigEngine_Action' is invalid.

The XSD snippet is below
					<xs:element name="Before_Cell_Stop_OS_Command_Line_Sequence">
						<xs:complexType>
							<xs:all>cos-all-limited.2: The {max occurs} of an element in an 'all' model group must be 0 or 1. The value '-1 ' for element 'ConfigEngine_Action' is invalid.

					<xs:element name="Before_Cell_Stop_OS_Command_Line_Sequence">
						<xs:complexType>
							<xs:all>
								<xs:element ref="OS_Command_String" minOccurs="0" maxOccurs="unbounded"/>
								<xs:element ref="XMLAccess_Action_Alias" minOccurs="0" maxOccurs="unbounded"/>
								<xs:element ref="ConfigEngine_Action" minOccurs="0" maxOccurs="unbounded"/>
							</xs:all>
							<xs:attribute name="Perform"/>
						</xs:complexType>
					</xs:element>




Re: The {max occurs} of an element in an 'all' model group must be 0 or 1 [message #1814867 is a reply to message #1814762] Fri, 20 September 2019 17:53 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31248
Registered: July 2009
Senior Member
Reading this:

https://www.w3.org/TR/xmlschema-1/#cos-all-limited

Specifically "2 The {max occurs} of all the particles in the {particles} of the group must be 0 or 1.", I would say that maxOccurs being unbounded is not valid for any element in the <all> group.
Previous Topic:Creating new xml schema file example ?
Next Topic:XML
Goto Forum:
  


Current Time: Fri Jul 10 17:31:59 GMT 2020

Powered by FUDForum. Page generated in 0.02286 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top