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 "Morten M. Christensen" <mm...@mortench.net> on 2000/09/04 17:09:00 UTC
strange bug with schemas
Hi all,
I have tried the W3C schema support in the newest Xerces java parser and
have encounted some problems, so I have subscribed to this list as
suggested in the online material, in order to post a bug report.
To execute the test save the attached files in a directory and write
"java sax.SAX2Count -v test.xml" (schemas and validation enabled).
I am using Xerces-J 1.2.0, Sun JDK1.3.0 on Windows 2K...... I get get
the unexpected errors:
[Error] test.xml:3:9: Element type "title" must be declared.
[Error] test.xml:4:16: The content of element type "description" must
match "(ti
tle)".
test.xml: 531 ms (2 elems, 1 attrs, 3 spaces, 5 chars)
For the record, XML Spy are able to validate the schema but fails to
handle the include (for which the company behind XML Spy has acknowledge
a bug).... I never got a chance to test the include with Xerces because
of the unexpected errors.
Hope this make sense!
Cheers,
Morten Christensen (mmc@mortench.net)
AArhus, Denmark