Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Yet another crimson DTD bug

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Wolfgang Hoschek <whoschek AT lbl.gov>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] Yet another crimson DTD bug
  • Date: Thu, 7 Apr 2005 13:35:45 -0700

Resubmitting this mail without file attachments because it bounced due to that... I copied Elliotte on the original mail so at least he should have the files and be able to reproduce this.

There is yet another crimson DTD bug (not present in xerces-2.6.2).
The necessary files are attached below. To reproduce, put them into the same directory and run the DTDBugTest I sent previously.

[BTW, a few more bugs can be found by running DTDBugTest over all SVG documents found in samples/spec of the Jakarta Apache Batik download].

[hoschek /Users/hoschek/unix/devel/nux] fire-java nux.xom.tests.DTDBugTest test3.xhtml
done parsing
Exception in thread "main" nu.xom.IllegalDataException: Malformed internal DTD subset: Illegal type (starts with "p") for attribute "xml:space".
at nu.xom.Verifier.checkInternalDTDSubset(Unknown Source)
at nu.xom.DocType.setInternalDTDSubset(Unknown Source)
at nux.xom.tests.DTDBugTest.main(DTDBugTest.java:19)
Caused by: org.xml.sax.SAXParseException: Illegal type (starts with "p") for attribute "xml:space".
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3376)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3370)
at org.apache.crimson.parser.Parser2.maybeAttlistDecl(Parser2.java:2371)
at org.apache.crimson.parser.Parser2.maybeMarkupDecl(Parser2.java:1390)
at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1324)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:656)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
... 3 more
[hoschek /Users/hoschek/unix/devel/nux]





Archive powered by MHonArc 2.6.24.

Top of Page