Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: =?ISO-8859-1?Q?Should__be_in_a_DTD??=

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 12/3/2007 5:11:00 PM

admyc wrote:

> I understand the line:
> 	<?xml version="1.0"?>
> in an XML document to be there to tell the program dealing with the
> document that it is a document written in XML and the version of XML
> it is written in is version 1.0.
> 
> When it comes to DTDs I have seen some examples where this line  ('<?
> xml version="1.0"?>'), is included in the DTD too and I can't
> understand why it is there.
> 
> In an XML document this line is there to declare it as an XML document
> but a DTD is not an XML document so I can not see why it is there.
> 
> I think that this line should not be in a DTD as I can't figure out
> what possible use it is. Can anyone either confirm that this line is
> erroneously included in some DTD examples or tell me what possible use
> it can server in one?


See <URL:http://www.w3.org/TR/REC-xml/#sec-prolog-dtd> about the "text 
declaration" that the external subset can begin with. So
<?xml version="1.0"?>
or
<?xml version="1.0" encoding="UTF-16"?>
is perfectly right at the beginning of an external subset (DTD).

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent