[EMAIL PROTECTED] wrote:
I'm having some really strange problems with the transformation of XHTML. It seems something's going wrong with the DOCTYPE definition (because it works without).
...
If I load it (FileGenerator) and directly serialize (xml) it, the output is:
...
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";<!--
================== Imported Names ====================================-->

Seems the XML comments from the DTD in the input got into the SAX stream. This is, well, some sort of unintended consequence of trying to be nice.

So, how can I go around this?

The easiest way is to use an XSLT which filters out comments. At least comments outside the document element. Too bad if you have some there you want to keep. Try <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> <xsl:template match="/"> <xsl:copy-of select="."/> </xsl:template> </xsl:stylesheet>

You might want to report the behaviour as FileGenerator bug.

J.Pietschmann


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to