Menu

No xml declaration by generating xhtml

Help
Tobel
2004-12-01
2012-10-08
  • Tobel

    Tobel - 2004-12-01

    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

     
    • Michael Kay

      Michael Kay - 2004-12-01

      <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

       
    • vanfleet

      vanfleet - 2004-12-02

      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

       
    • vanfleet

      vanfleet - 2004-12-02

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

      dv