You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2003/09/30 13:13:19 UTC
DO NOT REPLY [Bug 21677] -
XML schema validation
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
Joerg-Cyril.Hoehle@t-systems.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From Joerg-Cyril.Hoehle@t-systems.com 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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org