GNOME Bugzilla – Bug 54448
HTML output mode not automatically used
Last modified: 2009-08-15 18:40:50 UTC
According to section 16 of the XSLT specification the default output mode for the following stylesheet should be HTML. <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <html></html> </xsl:template> </xsl:stylesheet> Wth libxslt 0.9.0 I get: <?xml version="1.0"?> <html/>
Okay it took a bit of time to do it properly. I missed the algorithm for detecting the default output method when reading the XSLt spec. Your testcase now generates the following which I expect is correct: orchis:~/XSLT/tests/general -> xsltproc bug-28-.xsl ../docs/bug-28-.xml <html></html> orchis:~/XSLT/tests/general -> Of course this changed a number of output in libxslt regression tests, thanks for the report, Daniel
Shipped in 0.10.0, considered closed, Daniel