Problem with loose.dtd

Hello all!

In a XSLT-Stylecheet I would like to transmit the contents of a HTML file to
an other one.
I do it with <xsl:copy select="document(location_of_HTML)/html/body/*"/>.
The "source"-HTML has following doctype
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
 
I use Xalan/Xerces or Saxon to transformation.
Both ones give an error message (here from Saxon):

<!-- quotation of error text -->

Error on line 31 column 3 of
http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd:
Error report by XML parser: unexpected character after NDATA (found "-")
(expected ">")
Recoverable error
unexpected character after NDATA (found "-") (expected ">")

<!-- END quotation of error text -->

What can/must I do?

Much thanks in advance
  Dieter

Received on Tuesday, 29 October 2002 18:35:51 UTC