|
To: Xerces dev. team
--------------------
When validating, the ContentSpecNode is
expanded, by calling the corresponding getContentModel(). Is it possible
to have two ContentSpecNodes (with
corresponding getter methods). One
original and one (for validation purposes) expanded.
BTW
There is a bug. When expanding the content
model, set properly min and max occurs properties.
For example the following choice
content model was expanded as:
<xs:choice minOccurs="2"
maxOccurs="5">
<xs:element
a...> <xs:element b...> (a|b),(a|b),(a|b)?,(a|b)?,(a|b)?
It's ok, but for the first two I
got
getMinOccurs() == 2
getMaxOccurs() == 5 instead of min=1, max=1
--------------------------------
So, to make things clearer it would be
usefull to have access to the following content models
1. Expanded
(a|b),(a|b),(a|b)?,(a|b)?,(a|b)?
2. Original
(a|b){2,5}
|
