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 "Michael Roberts (JIRA)" <ji...@apache.org> on 2008/03/12 21:18:46 UTC

[jira] Created: (WSCOMMONS-309) serialization of xs:any not correct for minOccurs=0 or maxOccurs=0

serialization of xs:any not correct for minOccurs=0 or maxOccurs=0
------------------------------------------------------------------

                 Key: WSCOMMONS-309
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-309
             Project: WS-Commons
          Issue Type: Bug
          Components: XmlSchema
            Reporter: Michael Roberts


The code in serializeAny (or anyplace else in XmlSchemaSerializer) that deals with maxOccurs and minOccurs does not account for a maxOccurs value of 0 or a minOccurs value of zero which are both valid.  For an example (taken from XML Schema for Dublin Core):


  <xs:any processContents="lax" minOccurs="0" maxOccurs="0"/>

XmlSchema 1.3.2 will serialize to this:

  <xs:any processContents="lax"/>




-- 
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-309) serialization of xs:any not correct for minOccurs=0 or maxOccurs=0

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

Ajith Harshana Ranabahu resolved WSCOMMONS-309.
-----------------------------------------------

    Resolution: Fixed
      Assignee: Ajith Harshana Ranabahu

Fixed and added a test case

> serialization of xs:any not correct for minOccurs=0 or maxOccurs=0
> ------------------------------------------------------------------
>
>                 Key: WSCOMMONS-309
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-309
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: XmlSchema
>            Reporter: Michael Roberts
>            Assignee: Ajith Harshana Ranabahu
>
> The code in serializeAny (or anyplace else in XmlSchemaSerializer) that deals with maxOccurs and minOccurs does not account for a maxOccurs value of 0 or a minOccurs value of zero which are both valid.  For an example (taken from XML Schema for Dublin Core):
>   <xs:any processContents="lax" minOccurs="0" maxOccurs="0"/>
> XmlSchema 1.3.2 will serialize to this:
>   <xs:any processContents="lax"/>

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