[ 
https://issues.apache.org/jira/browse/WSCOMMONS-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487647
 ] 

Barney Wrightson commented on WSCOMMONS-73:
-------------------------------------------

Probably in the XmlSchema parser, as the other bug I refer to was 
identified as such.



IMPORTANT: This email remains the property of the Australian Defence 
Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 
1914.  If you have received this email in error, you are requested to contact 
the sender and delete the email.




> unbounded maxOccurs is ignored for groups and sequences
> -------------------------------------------------------
>
>                 Key: WSCOMMONS-73
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-73
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: XmlSchema
>         Environment: Windows XP
>            Reporter: Barney Wrightson
>
> Similar to the bug with choice elements as reported in 
> https://issues.apache.org/jira/browse/AXIS2-998 sequences and groups with 
> maxOccurs set to unbounded only accept a single instance of the elements 
> inside the tags.
> eg for input like:
> <test>
>  <choice1>1</choice1>
>  <choice2>string</choice2>
>  <choice1>2</choice1>
> </test>
>  where test is defined as one of the 3 complex types below, only the code 
> generated for the UnboundedChoice type accepts this input as valid. I believe 
> all three should be equivalent.
> <xsd:group name="choiceGrp">
>   <xsd:choice>
>    <xsd:element name="choice1" type="xsd:int">
>    <xsd:element name="choice2" type="xsd:string">
>   </xsd:choice>
> </xsd:group>
> <xsd:complexType name="UnboundedChoice">
>  <xsd:sequence>
>   <!-- ok after fix for AXIS2-998 -->
>   <xsd:choice minOccurs=0 maxOccurs="unbounded">
>    <xsd:element name="choice1" type="xsd:int">
>    <xsd:element name="choice2" type="xsd:string">
>   </xsd:choice>
>  </xsd:sequence>
> </xsd:complexType>
> <xsd:complexType name="UnboundedGroup">
>   <!-- unbounded ignored-->
>   <xsd:sequence>
>   <xsd:group ref="choiceGroup" minOccurs=0 maxOccurs="unbounded" />
>  </xsd:sequence>
> </xsd:complexType>
> <xsd:complexType name="UnboundedSequence">
>   <!-- unbounded ignored-->
>  <xsd:sequence minOccurs=0 maxOccurs="unbounded">
>   <xsd:group ref="choiceGroup" />
>  </xsd:sequence>
> </xsd:complexType>

-- 
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]

Reply via email to