[
https://issues.apache.org/jira/browse/XERCESJ-1422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12836211#action_12836211
]
Michael Glavassevich commented on XERCESJ-1422:
-----------------------------------------------
Mukul,
The message looks good:
cos-all-limited.2: The {max occurs} of an element in an 'all' model group must
be 0 or 1. The value 'unbounded' for element 'foo' is invalid.
I made one minor update, using a constant instead of '-1'. If the internal
value for unbounded ever changes in the future we won't have to update this
code.
> improvement to error message for error code, cos-all-limited.2
> --------------------------------------------------------------
>
> Key: XERCESJ-1422
> URL: https://issues.apache.org/jira/browse/XERCESJ-1422
> Project: Xerces2-J
> Issue Type: Improvement
> Components: XML Schema 1.0 Structures
> Affects Versions: 2.9.1
> Reporter: Mukul Gandhi
> Assignee: Mukul Gandhi
> Priority: Minor
> Fix For: 2.10.0
>
>
> In XSD 1.0 mode, within an xs:all model group, the value of maxOccurs could
> be either 0 or 1. If in a XSD 1.0 schema, the value of maxOccurs is specified
> as "unbounded", the Xerces-J error message currently displays the value as
> "-1" (which is Xerces-J's internal value for maxOccurs="unbounded").
> I've written a small fix, which displays the string "unbounded" in the error
> message, if an element declaration in xs:all instruction specifies the value
> of maxOccurs as, "unbounded".
> I'll shortly be making a commit to this.
--
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]