Project

Profile

Help

No xml declaration by generating xhtml

Added by Anonymous almost 20 years ago

Legacy ID: #2877571 Legacy Poster: Tobel (tobel)

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


Replies (3)

Please register to reply

RE: No xml declaration by generating xhtml - Added by Anonymous almost 20 years ago

Legacy ID: #2877604 Legacy Poster: Michael Kay (mhkay)

<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

RE: No xml declaration by generating xhtml - Added by Anonymous almost 20 years ago

Legacy ID: #2878025 Legacy Poster: vanfleet (vanfleet)

That was exactly what I was looking for, I didn’t realize that <xsl:result-document> would allow the “encoding” attribute. I appreciate your help. Thanks, David Vanfleet

RE: No xml declaration by generating xhtml - Added by Anonymous almost 20 years ago

Legacy ID: #2878030 Legacy Poster: vanfleet (vanfleet)

Sorry, I posted that last comment to the wrong thread. It's been a long day!! dv

    (1-3/3)

    Please register to reply