At present however Saxon doesn't let you omit the XML declaration unless the encoding is UTF8 or UTF16, on the basis that the result would not be well-formed XML. The spec has gone the other way on this but Saxon hasn't caught up.
Michael Kay
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
Is there a flag or an other possibility that saxon does not write
<?xml version="1.0" encoding="utf-8" ?>
at the beginning of the file when generating XHTML Files?
Greetings,
Tobias Dreyschultze, Germany
<xsl:output omit-xml-declaration="yes">
At present however Saxon doesn't let you omit the XML declaration unless the encoding is UTF8 or UTF16, on the basis that the result would not be well-formed XML. The spec has gone the other way on this but Saxon hasn't caught up.
Michael Kay
That was exactly what I was looking for, I didnt realize that <xsl:result-document> would allow the encoding attribute. I appreciate your help.
Thanks,
David Vanfleet
Sorry, I posted that last comment to the wrong thread. It's been a long day!!
dv