- From: Costello, Roger L. <costello@mitre.org>
- Date: Tue, 26 Apr 2016 16:52:02 +0000
- To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Thanks Henry. Interestingly, when I view XMLSchema.dtd using Internet Explorer, I see this: <!DOCTYPE schema SYSTEM "XMLSchema.dtd" PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN"> Whereas when I "view source" I see this: <!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "XMLSchema.dtd" > When I call Xerces from a Java program to validate xml.xsd I get this error message: org.xml.sax.SAXParseException; systemId:file ... In fact, Xerces complains with any schema file containing the above DOCTYPE. Anyone have an idea on what's causing this? /Roger -----Original Message----- From: Henry S. Thompson [mailto:ht@inf.ed.ac.uk] Sent: Tuesday, April 26, 2016 12:32 PM To: Costello, Roger L. <costello@mitre.org> Cc: xmlschema-dev@w3.org Subject: Re: Why does xml.xsd have a DOCTYPE declaration? 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:52:35 UTC