Re: Parsing external DTDs

* 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 UTC