[
https://issues.apache.org/jira/browse/XMLBEANS-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Radu Preotiuc-Pietro resolved XMLBEANS-149.
-------------------------------------------
Resolution: Fixed
Looking at this now with new eyes after 3 1/2 years, I'd say the error message
is perfectly acceptable. The options are offered as an 'or', not as an 'and'.
> MinOccurs=0 ignored
> -------------------
>
> Key: XMLBEANS-149
> URL: https://issues.apache.org/jira/browse/XMLBEANS-149
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 1.0.4, Version 2 Beta 1
> Reporter: Harald Meyer
> Assignee: Radu Preotiuc-Pietro
> Fix For: TBD
>
>
> When compiling the BPEL schema the elements of a process that are optionaled,
> are not created as optional.
> Extract from the BPEL Schema:
> <complexType name="Process">
> <complexContent>
> <extension base="bpws:ExtensibleElements">
> <sequence>
> <element name="partnerLinks" type="bpws:PartnerLinks"
> minOccurs="0"/>
> <element name="partners" type="bpws:Partners"
> minOccurs="0"/>
> <element name="variables"
> type="bpws:Variables"
> minOccurs="0"/>
> <element name="correlationSets"
> type="bpws:CorrelationSets" minOccurs="0"/>
> <element name="faultHandlers" type="bpws:FaultHandlers"
> minOccurs="0"/>
> <element name="compensationHandler"
> type="bpws:CompensationHandler" minOccurs="0"/>
> <element name="eventHandlers"
> type="bpws:EventHandlers" minOccurs="0"/>
> <group ref="bpws:activity"/>
> </sequence>
> <attribute name="name" type="NCName"
> use="required"/>
> <attribute name="targetNamespace" type="anyURI"
> use="required"/>
> <attribute name="queryLanguage" type="anyURI"
> default="http://www.w3.org/TR/1999/REC-xpath-19991116"/>
> <attribute name="expressionLanguage" type="anyURI"
> default="http://www.w3.org/TR/1999/REC-xpath-19991116"/>
> <attribute name="suppressJoinFailure" type="bpws:Boolean"
> default="no"/>
> <attribute name="enableInstanceCompensation"
> type="bpws:Boolean" default="no"/>
> <attribute name="abstracProcess" type="bpws:Boolean"
> default="no"/>
> </extension>
> </complexContent>
> </complexType>
> An empty process (inside a process document) now yields the following
> validation error:
> Message: Expected elements '[EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/ [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/' at the end of
> the content in element [EMAIL
> PROTECTED]://schemas.xmlsoap.org/ws/2003/03/business-process/
> Location of invalid XML: <xml-fragment/>
> If necessary I can provide the generated source code and a test case.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]