GNOME Bugzilla – Bug 55505
duplicate !DOCTYPE emitted
Last modified: 2009-08-15 18:40:50 UTC
With libxslt 0.10.0, given xo.xsl: <?xml version='1.0'?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/> <xsl:template match="/"> <o/> </xsl:template> </xsl:stylesheet> the command xsltproc xo.xsl xo.xsl produces <?xml version="1.0"?> <!DOCTYPE o PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <!DOCTYPE o PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <o/> (happens with any .xml file as input, not just xo.xsl). That should be a bug, no? Steve
*** Bug 55508 has been marked as a duplicate of this bug. ***
I think this was fixed in CVS, and indeed I can't reproduce it here with my installed version from RPMs nor with the one from CVS: orchis:~/XSLT/tests/general -> xsltproc bug-32-.xsl bug-32-.xsl <?xml version="1.0"?> <!DOCTYPE o PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <o/> orchis:~/XSLT/tests/general -> /usr/bin/xsltproc bug-32-.xsl bug-32-.xsl <?xml version="1.0"?> <!DOCTYPE o PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <o/> orchis:~/XSLT/tests/general -> Make sure you have the latest versions of libxml2 and libxslt, Daniel
This was released in 0.11.0, so I assume the bug is closed Daniel