Public bug reported:
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.
** Affects: python-xml (upstream)
Importance: Undecided
Status: New
** Affects: python-xml (Ubuntu)
Importance: Undecided
Status: New
** Also affects: python-xml (upstream)
Importance: Undecided
Status: New
--
CatalogParser does not recognise "DTDDECL"
https://bugs.launchpad.net/bugs/131595
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs