DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=27828>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=27828 incorrect validation of substitution groups with restriction ------- Additional Comments From [EMAIL PROTECTED] 2004-03-22 23:10 ------- These are two separate issues (though both are found in XSContraints.java) The first (corresponding to your deriv_1-n_simple.xsd testcase) is the result of the parser setting the min- and maxOccurs values on the derived choice particle to the values of the element particle and vice-versa. [1] The second (deriv-3seq-plus.xsd) takes place because the substitution group handler is set to null after it is used once for a particle. This happens in order to prevent endless recursion with substitution groups, but unfortunately prevents element declarations which are the substitution group affiliations of other element declarations from being compared with themselves in restrictions, resulting in an error. The patch should fix both bugs. The substitution group handlers will not be set to null. Instead, particles will be checked first in particleValidRestriction to see if they are the same. [1] [1] http://www.w3.org/TR/xmlschema-1/#cos-particle-restrict --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
