Skip to main content



      Home
Home » Archived » 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 11:33 Go to next message
Eclipse UserFriend
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 13:53 Go to previous message
Eclipse UserFriend
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: Sat Aug 30 23:37:43 EDT 2025

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

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

Back to the top