[xml/sgml-pkgs] Bug#520995: Files to reproduce the bug and a workaround
Stephane Bortzmeyer
bortzmeyer at nic.fr
Wed Mar 25 15:38:31 UTC 2009
The two attached files allow to reproduce the bug easily. The XSLT
stylesheet no-decl.xsl works fine with xsltproc and Sablotron (no XML
declaration is produced), while it fails with test-nodecl.py.
A workaround I use is to use the "children" attribute:
html_results = html_style.applyStylesheet(xml_document, None)
# html_results contain the erroneous XML declaration
html_results_ok = html_results.children
# html_results_ok does NOT contain the erroneous XML declaration
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no-decl.xsl
Type: application/xml
Size: 290 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20090325/e91adaed/attachment.xsl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-nodecl.py
Type: text/x-python
Size: 398 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20090325/e91adaed/attachment.py
More information about the debian-xml-sgml-pkgs
mailing list