You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2007/11/01 18:00:51 UTC

[jira] Created: (WSCOMMONS-274) minOccurs="0" on embedded sequence is lost....

minOccurs="0" on embedded sequence is lost....
----------------------------------------------

                 Key: WSCOMMONS-274
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-274
             Project: WS-Commons
          Issue Type: Bug
          Components: XmlSchema
         Environment: XmlSchema 1.3.2
            Reporter: Daniel Kulp


In an XSD, if I have:
    <complexType name="FooStruct">
        <sequence>
            <element name="varInteger" type="int"/>
            <sequence minOccurs="0">
                <element name="varInt" type="xsd:int"/>
                <element name="varFloat" type="xsd:float"/>
            </sequence>
        </sequence>
    </complexType>
If I then load the XSD into XmlSchema, then have XmlSchema write out to a new file, I get:

    <complexType name="FooStruct">
        <sequence>
            <element name="varInteger" type="int"/>
            <sequence>
                <element name="varInt" type="xsd:int"/>
                <element name="varFloat" type="xsd:float"/>
            </sequence>
        </sequence>
    </complexType>

The minOccurs="0" is lost.



-- 
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Resolved: (WSCOMMONS-274) minOccurs="0" on embedded sequence is lost....

Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSCOMMONS-274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ajith Harshana Ranabahu resolved WSCOMMONS-274.
-----------------------------------------------

    Resolution: Fixed
      Assignee: Ajith Harshana Ranabahu

Fixed. The error was in the serializer

> minOccurs="0" on embedded sequence is lost....
> ----------------------------------------------
>
>                 Key: WSCOMMONS-274
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-274
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: XmlSchema
>         Environment: XmlSchema 1.3.2
>            Reporter: Daniel Kulp
>            Assignee: Ajith Harshana Ranabahu
>
> In an XSD, if I have:
>     <complexType name="FooStruct">
>         <sequence>
>             <element name="varInteger" type="int"/>
>             <sequence minOccurs="0">
>                 <element name="varInt" type="xsd:int"/>
>                 <element name="varFloat" type="xsd:float"/>
>             </sequence>
>         </sequence>
>     </complexType>
> If I then load the XSD into XmlSchema, then have XmlSchema write out to a new file, I get:
>     <complexType name="FooStruct">
>         <sequence>
>             <element name="varInteger" type="int"/>
>             <sequence>
>                 <element name="varInt" type="xsd:int"/>
>                 <element name="varFloat" type="xsd:float"/>
>             </sequence>
>         </sequence>
>     </complexType>
> The minOccurs="0" is lost.

-- 
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org