DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16962>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16962 Schema containing "xs:any namespace=##local" fails validation [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | Version|2.1.0 |2.2.0 ------- Additional Comments From [EMAIL PROTECTED] 2003-02-13 18:11 ------- It turns out that my little testcase was not properly written... :-( The real schema is the RelaxNG schema by OASIS/James Clark (that I am attaching now for reference). The proper testcase should have been this one: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="xxx" xmlns:x="xxx"> <xs:element name="anyName"/> <xs:complexType name="grammarType"> <xs:choice> <xs:any namespace="##other" processContents="skip"/> <xs:any namespace="##local" processContents="skip"/> </xs:choice> </xs:complexType> </xs:schema> This shows that the validator considers the intersection between ##other and ##local as being not empty. The XMLSchema spec defines ##local as being the set of unqualified elements, and ##other as being the set of all the elements that don't belong to the targetNamespace (the original spec included in this set also the unqualified elements, but the XMLSchema errata E1-11 clarified it - see http://www.w3.org/2001/05/xmlschema-errata#e1-11). So they should have no intersection, and the schema is valid. BTW, the error reported is "'##other' and '##any' violate the Unique Particle Attribution rule" and this is clearly wrong, as it should be "'##other' and '##local'". Alberto --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
