This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Bad Continuation of Multi-Byte UTF-8 Sequence
/ Jirka Kosek <jirka@kosek.cz> was heard to say:
| > / Jirka Kosek <jirka@kosek.cz> was heard to say:
| > | All other files than master should contain only encoding declaration not
| > | full XML declaration:
| > |
| > | <?xml encoding="???"?>
| >
| > I don't think that's valid XML. If you introduce an XML declaration,
| > you must specify the XML version number (and it must be 1.0).
|
| Encoding can be specified by this way for external parsed entities,
| version pseudoattribute is optional -
With respect, the version pseudoattribute is not optional. From the
XML Recommendation:
[22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)?
[23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'
The XML Declaration is optional, but if it is present, the version
pseudoattribute must be present.
| moreover some XML processors are
| unable to process external entity if it contains version information in
| its declaration.
That's a bug in the implementation.
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | All the good maxims already exist
http://www.oasis-open.org/docbook/ | in the world; we just fail to
Chair, DocBook Technical Committee | apply them.--Pascal