Tidy + Doctype

Hi there,


when i convert html file into xhtml file and in the html file are the
following Doctype declaration

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

I when i am trying to parse this xhtml file in - i get this exception(I
am using JDOM as xml-parser ).Can i tell tidy to make this doctype
definition
w3c conform ?

setDocType("strict");  does nothing



org.jdom.JDOMException: Error on line 1 of document
file:/D:/download/jakartatomcat/jakarta-tomcat-3.2.1/webapps/cocoon/XMaker/index.xml:
White space is
required between the public identifier and the system identifier.
 at org.jdom.input.SAXBuilder.build(SAXBuilder.java:403)
 at org.jdom.input.SAXBuilder.build(SAXBuilder.java:464)
 at org.jdom.input.SAXBuilder.build(SAXBuilder.java:445)
Root cause: org.xml.sax.SAXParseException: White space is required
between the public identifier and the system identifier.
 at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1008)
 at
org.apache.xerces.framework.XMLDTDScanner.reportFatalXMLError(XMLDTDScanner.java:645)

 at
org.apache.xerces.framework.XMLDTDScanner.scanExternalID(XMLDTDScanner.java:1190)

 at
org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java:1098)

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

 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.jdom.input.SAXBuilder.build(SAXBuilder.java:395)
 at org.jdom.input.SAXBuilder.build(SAXBuilder.java:464)
 at org.jdom.input.SAXBuilder.build(SAXBuilder.java:445)


thx Holger

Received on Friday, 25 May 2001 09:54:58 UTC