[XML-SIG] Another patch for saxlib/xmlproc
Thu, 22 Oct 1998 18:55:26 -0700
This is a multipart MIME message.
Content-Type: text/plain; charset=us-ascii
I was having another problem with saxlib/xmlproc: The DOCTYPE declaration of a
parsed document was not being passed along to the registered entity resolver.
This is the behavior of JP Clark's XP, and makes sense, as it would be the
only applicable event interface for processing the DOCTYPE declaration. After
some work, I've come up with a patch that fixes this for me, until Lars is
Here it is in case anyone else has had the same problem.
Consulting Member, FourThought LLC
Content-Type: text/plain; name="entity_resolve_doctype.diff"; charset=us-ascii
Content-Disposition: attachment; filename="entity_resolve_doctype.diff"
*** drv_xmlproc.py Thu Oct 22 18:37:09 1998
--- uche/drv_xmlproc.py Thu Oct 22 18:43:34 1998
*** 108,113 ****
--- 108,118 ----
+ #Make sure that the DOCTYPE declaration is passed along to be=0D
+ #handled by the entity resolver=0D
+ def handle_doctype(self, name, pubid, sysid):=0D
+ self.ent_handler.resolveEntity(name, pubid,sysid)=0D
# --- EXPERIMENTAL PYTHON SAX EXTENSIONS:=0D