W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2016

Re: Why does xml.xsd have a DOCTYPE declaration?

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Tue, 26 Apr 2016 17:32:00 +0100
To: "Costello\, Roger L." <costello@mitre.org>
Cc: "xmlschema-dev\@w3.org" <xmlschema-dev@w3.org>
Message-ID: <f5bh9eo1gcf.fsf@troutbeck.inf.ed.ac.uk>
Costello, Roger L. writes:

> xml.xsd is at this URL:
>
> http://www.w3.org/2001/03/xml.xsd
>
> Notice that it has a DOCTYPE declaration:
>
> <!DOCTYPE schema SYSTEM "XMLSchema.dtd" PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN">

I see 

<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "XMLSchema.dtd" >

> Why?

Why not?  The document is in fact valid per that DTD, and there are
tools, including the one I use all the time, which can exploit the
DOCTYPE in useful ways.

> Are there any plans to remove it?

Not that I know of -- see previous question.

ht
-- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]
Received on Tuesday, 26 April 2016 16:32:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:16:10 UTC