Package: python-libxslt1 Version: 1.1.24-2 Severity: normal
When a XSLT stylesheet includes: <xsl:output omit-xml-declaration="yes"/> libxslt still includes the XML declaration :-( Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26) [GCC 4.3.2] on linux2 ... >>> import libxml2 >>> import libxslt >>> xml_document = libxml2.parseFile("traceroute.xml") >>> html_styledoc = libxml2.parseFile("snippet-traceroute2html.xsl") >>> html_style = libxslt.parseStylesheetDoc(html_styledoc) >>> html_results = html_style.applyStylesheet(xml_document, None) >>> print html_results <?xml version="1.0"?> <div xmlns="http://www.w3.org/1999/xhtml" class="traceroute-root"> ... -- System Information: Debian Release: 5.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=fr_FR (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages python-libxslt1 depends on: ii libc6 2.7-18 GNU C Library: Shared libraries ii libxslt1.1 1.1.24-2 XSLT processing library - runtime ii python 2.5.2-3 An interactive high-level object-o ii python-libxml2 2.6.32.dfsg-5 Python bindings for the GNOME XML ii python-support 0.8.4 automated rebuilding support for P python-libxslt1 recommends no packages. python-libxslt1 suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org