[
https://jira.jboss.org/jira/browse/JBXB-242?page=com.atlassian.jira.plugi...
]
Alexey Loubyansky commented on JBXB-242:
----------------------------------------
On behalf of Jason.
Jason T. Greene - 17/Mar/10 07:53 PM
I mentioned this earlier on the forums, but I thought I should add this in case it helps.
Aside from the current schema 1.0 method of using an unbounded xs:choice, the current
working draft of schema 1.1 supports true unordered sequences by removing the
maxOccurs="1" restriction on xs:all.
The new model definition for ALL is here:
http://www.w3.org/TR/xmlschema11-1/#all-mg
binding repeatable elements into model group all should fail
------------------------------------------------------------
Key: JBXB-242
URL:
https://jira.jboss.org/jira/browse/JBXB-242
Project: JBoss XML Binding (JBossXB)
Issue Type: Bug
Affects Versions: JBossXB-2.0.2.Beta5
Reporter: Alexey Loubyansky
Assignee: Alexey Loubyansky
Fix For: JBossXB-2.0.2.GA
AllBinding currently silently accepts repeatable elements which it shouldn't
according to the spec.
Schema Component Constraint: All Group Limited
When a model group has {compositor} all, then all of the following must
be true:
1 It appears only as the value of one or both of the following
properties:
1.1 the {model group} property of a model group definition.
1.2 the {term} property of a particle with {max occurs}=1which is part
of a pair which constitutes the {content type} of a complex type
definition.
2 The {max occurs} of all the particles in the {particles} of the group
must be 0 or 1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira