W3C home > Mailing lists > Public > www-html@w3.org > October 2002

a problem with loose.dtd

From: Boell, Dieter <Dieter.Boell@ipk.fhg.de>
Date: Mon, 14 Oct 2002 10:16:44 +0200
Message-ID: <E73E81018E2329488D36EF8617695B7F10CEA3@HOBBIT.ipk_plt.ipk.fhg.de>
To: "'www-html@w3.org'" <www-html@w3.org>

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:47 GMT

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