OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xml-dev] xml declaration in DTDs and encodings



oliver sick wrote:

> Is it correct to start a DTD with the first line
> 
>   <?xml version="1.0" encoding="UTF-8" ?>


Yes.


> or even
>   <?xml version="1.0" ?>


No.

 
> In my opinion it's not correct to use the xml-declaration, 
> because a DTD is not xml.


At the beginning of an external entity other than the document
(main) entity, it is correct but not required to use a text
declaration.  This looks similar to an XML declaration, but with
the following differences:

	The encoding declaration part is required.

	The standalone declaration part is forbidden.

> On the other hand side if this declaration could not be used, 
> how can I determine the character encoding of DTDs ?

That is exactly why it is permitted.

-- 
Not to perambulate             || John Cowan <jcowan@reutershealth.com>
    the corridors               || http://www.reutershealth.com
during the hours of repose     || http://www.ccil.org/~cowan
    in the boots of ascension.  \\ Sign in Austrian ski-resort hotel