On 25.10.2012 18:22, Bob Stayton wrote:
> Regarding the XML declaration, though, I was a little confused by your
> mail. You said:
>
> "In order to get encoding right
> XML declaration should be there but <meta> tag with encoding should be
> there.
>
> XML declaration can be easily omitted by omit-xml-declaration on
> xsl:output."
>
> Should the XML declaration be there or not?
It shouldn't be there, sorry I was typing slowly then thinking.
Ideally XHTML output generated by stylesheets should conform to HTML
Polyglot rules:
http://www.w3.org/TR/html-polyglot/
This will make sure that content is parsed correctly even when send with
wrong MIME type (which is quite often).
Jirka
--
------------------------------------------------------------------
Jirka Kosek e-mail: http://xmlguru.cz
------------------------------------------------------------------
Professional XML consulting and training services
DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------