CatalogParser does not recognise "DTDDECL"

Bug #131595 reported by Maarten ter Huurne
2
Affects Status Importance Assigned to Milestone
python-xml
Incomplete
Undecided
Unassigned
python-xml (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: python-xml

The xml.parsers.xmlproc.catalog.CatalogParser class does not recognize the "DTDDECL" keyword in catalog files. This is unfortunate, since the catalog files from the "w3c-dtd-xhtml" package use that keyword.

Example program:

from xml.parsers.xmlproc import catalog
xhtmlCatalog = catalog.SAX_catalog(
        '/usr/share/xml/xhtml/schema/dtd/1.0/catalog',
        catalog.CatParserFactory()
        )

Output:

$ python readcatalog.py
ERROR: Invalid or unsupported construct: DTDDECL. at
/usr/share/xml/xhtml/schema/dtd/1.0/catalog:5:8
TEXT: ' "-//W3C//'

Suggested solution:

Add "'DTDDECL': ('p', 's')" to "entry_hash" in CatalogParser's constructor.
See "_xmlplus/parsers/xmlproc/catalog.py", line 83.

Version info: python-xml 0.8.4-6ubuntu4 on feisty.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 beta or later?

Changed in python-xml:
status: New → Incomplete
Revision history for this message
Maarten ter Huurne (maarten-ter-huurne) wrote :

I don't have 0.8.10 beta or later installed and I don't really want to install from source and risk messing up my system. The bug report contains a test case that triggers the problem; if you have 0.8.10 beta or later installed please run the test program to see if the problem still occurs or not.

Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

The package version your bugging is updated in Jaunty. Please update via http://releases.ubuntu.com/9.04/ repost a detailed error report, and update the bug status. Thanks!

Changed in python-xml:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for python-xml (Ubuntu) because there has been no activity for 60 days.]

Changed in python-xml (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.