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=21677>. 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=21677 XML schema validation [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2003-09-30 11:13 ------- Hi, I'm not in the development team and just about to submit a bug report myself, but I'll still go ahead and close this bug-report. The reason is that this Schema is invalid. Please read more about the unique particle attribution and other constraints in the XML Schema recommendation. A valid schema is equivalent to an automata without backtracking. As I now understand it, the parser must be able to know, as soon as it encounters an element, which branch of the tree (or automata) to choose. This is not the case with the<date> element, because the parser cannot know whether it has to choose the first or the second <xs:choice> branch. Try validating your schema: java -classpath xercesImpl.jar:xml-apis.jar:. xni.XMLGrammarBuilder -f -a V0.xsd [Error] V0.xsd#:3:19: cos-nonambig: "":date and "":date (or elements from their substitution group) violate "Unique Particle Attribution". During validation a gainst this schema, ambiguity would be created for those two particles. BTW, I found http://apps.gotdotnet.com/xmltools/xsdvalidator/Default.aspx very helpful at validating my own schemata. Too sad that this bogus schema got standardized. Tell the authors about their bugs. Regards, Jörg Höhl --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
