Egon Schmid wrote:
> 
> From: "Hojtsy Gabor" <[EMAIL PROTECTED]>
> 
> > > is there any reason that we have only <?xml encoding="..."?>
> > > instead of <?xml version="1.0" encoding="..."?>
> > > as first line in files included by manual.xml?
> >
> > Yes. Encoding is needed, version is optional :)
> > http://www.w3.org/TR/2000/REC-xml-20001006#sec-TextDecl
> 
> We don´t need encodings in every file. It worked for many years
> without that encoding in EVERY file. I´m sure it is only needed in
> manual.xml or some files included.

It is needed in files which uses other encoding than utf-8. This worked
for years because you were using Jade to process documentation. Jade is
an SGML based tool which silently ignores this problem. But if you want
to process documentation with some XML based tool - for example with
XSLT processor and XSL DocBook stylesheet you need files which realy
comforms to XML.

I added encoding declaration to some files at the beginning of this
year. I modified files which used some characters from iso-latin-1
(umlauts and so on). Without it I can't process documentation with XSLT
toolchain.

                        Jirka

-----------------------------------------------------------------
  Jirka Kosek                        
  e-mail: [EMAIL PROTECTED]
  http://www.kosek.cz

Reply via email to