W3C home > Mailing lists > Public > www-html-editor@w3.org > October to December 2000

SAX parse error using downloaded DTDs

From: Mark Beecroft <mark@beeks.freeserve.co.uk>
Date: Thu, 09 Nov 2000 23:52:00 +0000
Message-ID: <3A0B38A0.FD91CA68@beeks.freeserve.co.uk>
To: www-html-editor@w3.org, mark@beeks.freeserve.co.uk
Hi,

I have been using the DTDs downloaded from
http://www.w3.org/TR/2000/REC-xhtml1-20000126. I have also been using
the DOM XML parser (version id: DOMParser.java,v 1.27 2000/09/01
18:10:19 lehors Exp) of IBMs Xerces package in the XML4J-3_1_0 download.
The problem is that a SAXParseException is thrown as below:

org.xml.sax.SAXParseException: The attribute type is required in the
declaration of attribute "events" for element "html".
 at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1008)
 at
org.apache.xerces.framework.XMLDTDScanner.reportFatalXMLError(XMLDTDScanner.java:673)

 at
org.apache.xerces.framework.XMLDTDScanner.abortMarkup(XMLDTDScanner.java:711)

 at
org.apache.xerces.framework.XMLDTDScanner.scanAttlistDecl(XMLDTDScanner.java:2127)

 at
org.apache.xerces.framework.XMLDTDScanner.scanDecls(XMLDTDScanner.java:1439)

 at
org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentScanner.java:2179)

 at
org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.java:2133)

 at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:775)

 at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:380)

 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:939)
 at MenuHTMLBuilder$1.parse(MenuHTMLBuilder.java:53)
 at MenuHTMLBuilder.init(MenuHTMLBuilder.java:79)
 at PageStateMachine.process(PageStateMachine.java:59)
 at MainJDBCServlet.service(MainJDBCServlet.java:75)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
 at
sun.servlet.http.HttpServerHandler.sendResponse(HttpServerHandler.java:165)

 at
sun.servlet.http.HttpServerHandler.handleConnection(HttpServerHandler.java:121)

 at sun.servlet.http.HttpServerHandler.run(HttpServerHandler.java:90)
 at java.lang.Thread.run(Thread.java:475)


Further exception output shows the problems is located at
file:///home/mark/Development/WebSite/templates/xhtml1/DTD/xhtml1-frameset.dtd

at line 265 column 3.

Why is this exception occuring? Do I have a wrong version of the DTDs?

Thanks in advance for your time,
Mark Beecroft
Received on Thursday, 9 November 2000 17:56:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:50 GMT