You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2007/03/14 05:42:11 UTC

[jira] Assigned: (XERCESJ-1240) A choice between an empty sequence and 1 or more non-empty particles should allow an empty sequence.

     [ https://issues.apache.org/jira/browse/XERCESJ-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich reassigned XERCESJ-1240:
---------------------------------------------

    Assignee: Michael Glavassevich

> A choice between an empty sequence and 1 or more non-empty particles should allow an empty sequence.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1240
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1240
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema Structures
>    Affects Versions: 2.9.0
>            Reporter: Michael Glavassevich
>         Assigned To: Michael Glavassevich
>            Priority: Minor
>
> Xerces currently handles one special case correctly; a choice between an empty sequence and one non-empty particle:
> <xs:choice>
>  <xs:sequence/>
>  <xs:element name="a"/>
> </xs:choice>
> but fails to produce the correct content model representation when more than one non-empty particle is specified:
> <xs:choice>
>  <xs:sequence/>
>  <xs:element name="a"/>
>  <xs:element name="b"/>
>  ...
> </xs:choice>
> If one (or more) of the choices is an empty sequence the CMBuilder needs to wrap the choice node (i.e. XSCMBinOp) in a zero-or-one (optional) node so that the content model produced will allow the empty sequence.

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