[XML-SIG] 2 Qs: encoding & entities with xmlproc

Lars Marius Garshol larsga@ifi.uio.no
21 Jun 1999 10:50:59 +0200


* Dan Libby
| 
| Yeah, but how?  I tried the following with xmlproc:
| 
| <?xml version="1.0"?>
| <!DOCTYPE test SYSTEM "http://myhost/ver-1.0.dtd" [
| <!ENTITY % otherdtd SYSTEM "http://myhost/other.dtd">
| %otherdtd;
| ]>
| 
| This always gives me the error:
| Illegal construct at 5:3

This works perfectly for me with the following two files:

<!DOCTYPE test [
  <!ENTITY % ext SYSTEM "test2.dtd">
  %ext;
]>

<root>
</root>
 
and in test2.dtd:

<!ELEMENT root (#PCDATA)>



This works for me with both the xmlproc in my CVS tree and the one in
the XML-SIG CVS tree (which is 0.61), with both validating and
non-validating parsing.  Which version do you have?  (Give me the CVS
ID tag in dtdparser.py to be 100% sure that it's right.)

--Lars M.