[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xml-dev] xml declaration in DTDs and encodings
- To: firstname.lastname@example.org
- Subject: Re: [xml-dev] xml declaration in DTDs and encodings
- From: David Carlisle <email@example.com>
- Date: Fri, 9 Nov 2001 13:42:55 GMT
- Cc: firstname.lastname@example.org
- In-reply-to: <200111091328.NAA26680@nag.co.uk> (message from oliver sick onFri, 09 Nov 2001 14:24:39 +0100)
- References: <200111091328.NAA26680@nag.co.uk>
> Is it correct to start a DTD with the first line
> In my opinion it's not correct to use the xml-declaration,
> because a DTD is not xml
Since the largest part of the XML spec is in fact describing DTD syntax,
this isn't really true.
As in other XML entities, the text declaration is optional, if the
encoding is utf8 or utf16, but if another encoding is used then
you should use the text declaration to specify the encoding.
> On the other hand side if this declaration could not be used,
> how can I determine the character encoding of DTDs ?
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.