Leif Halvard Silli wrote:
> E.g. a typical polyglot - UTF-8 encoded, that is - could start like
> this:
>
> ]]
> <?xml version="1.0" ?>
> <!DOCTYPE html>
> <head>
> <meta charset="UTF-8"/>
> [[
XML declaration is optional if document is encoded in UTF-8/16. So why
to use it at all -- it will just cause troubles to UAs parsing this
stuff with HTML parser.
Jirka
--
------------------------------------------------------------------
Jirka Kosek e-mail: jirka@kosek.cz 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
------------------------------------------------------------------