W3C home > Mailing lists > Public > www-dom@w3.org > October to December 1998

Re: Parsing external DTDs

From: Lars Marius Garshol <larsga@ifi.uio.no>
Date: 10 Nov 1998 11:20:53 +0100
To: "www-dom@w3.org" <www-dom@w3.org>
Message-ID: <wkaf1zalx6.fsf@ifi.uio.no>

* Mark Robinson
|   
| and the following external DTDs:
| 
|   <?xml version="1.0" encoding="UTF-8"?>
|   <!ELEMENT External1 (item, External2)>
|   <!ELEMENT item (#PCDATA)>
|   <!ENTITY % External2 SYSTEM "External2.dtd">
| 
|   ---------------------
| 
|   <?xml version="1.0" encoding="UTF-8"?>
|   <!ELEMENT External2 (item2)>
|   <!ELEMENT item2 (#PCDATA)>
| 
|   ---------------------
| 
| the MSIE5 parser gives the error "The element 'External2' is used but
| not declared in the DTD/Schema."
| 
| Am I overlooking something or is that a bug? 

It's a bug in your DTD, yes. :-) You've forgotten to actually
reference the %External2; parameter entity. Declaring it is not
enough, you need to reference it, too.

--Lars M.
Received on Tuesday, 10 November 1998 05:22:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:46 GMT