[ expat-Bugs-595532 ] xmlwf -x not reading the external DTD

noreply@sourceforge.net noreply@sourceforge.net
Fri Aug 16 06:21:02 2002


Bugs item #595532, was opened at 2002-08-15 10:25
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=595532&group_id=10127

Category: None
Group: None
Status: Open
Resolution: Rejected
Priority: 5
Submitted By: Michel Rodriguez (mirod)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: xmlwf -x not reading the external DTD

Initial Comment:
xmlwf test_ext_ent.xml gives me an error on an
undefined entity despite it being defined in the
(external) DTD

>xmlwf -x test_ext_ent.xml
test_ext_ent.xml:2:5: undefined entity

--- test_ext_ent.xml ---
<?xml  version="1.0"  standalone="no"?>
<!DOCTYPE doc SYSTEM "test_ext_ent.dtd">
<doc>&ent;</doc>

--- test_ext_ent.dtd ---
<!ELEMENT doc (#PCDATA)>
<!ENTITY ent  'expanded entity'>

It has no problem if I do xmlwf -p test_ext_ent.xml

Shouldn't -x find the entity declaration in the DTD?

That's with expat 1.95.4

--
Michel

----------------------------------------------------------------------

>Comment By: Karl Waclawek (kwaclaw)
Date: 2002-08-16 09:20

Message:
Logged In: YES 
user_id=290026

Maybe, but that is a matter of specifications, not a bug.
Consider this: external entity references can be anything,
not just references to files. You could have an URL, or 
some Public Id for instance. But xmlwf only provides 
external entity reference resolution for files.