[XML-SIG] One-Line Enhancement to catalog.py

W. Eliot Kimber eliot@isogen.com
Wed, 11 Apr 2001 21:19:24 -0500


Hi,

In order to use the pyXML catalog stuff with SGML-specific catalogs, I
had to enable the processing of SGMLDECL entries. This required adding
this line to catalog.py:

                         "SGMLDECL": ("s")}
 
Making the new code:

class CatalogParser(AbstrCatalogParser,xmlutils.EntityParser):
    "A parser for SGML Open catalog files."

    def __init__(self,error_lang=None):
        AbstrCatalogParser.__init__(self,error_lang)
        xmlutils.EntityParser.__init__(self)

        # p=pubid (or prefix)
        # s=sysid (to be resolved)
        # o=other
        self.entry_hash={ "PUBLIC": ("p","s"), "DELEGATE": ("p","s"),
                          "CATALOG": ("s"), "DOCUMENT": ("s"),
                          "BASE": ("o"), "SYSTEM": ("o","s"), 
                          "OVERRIDE": ("o"),
                          "SGMLDECL": ("s")}
 

Can someone make this change to the main distribution for me? 

Thanks,

Eliot
-- 
. . . . . . . . . . . . . . . . . . . . . . . .

W. Eliot Kimber | Lead Brain

1016 La Posada Dr. | Suite 240 | Austin TX  78752
    T 512.656.4139 |  F 512.419.1860 | eliot@isogen.com

w w w . d a t a c h a n n e l . c o m