After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 54448 - HTML output mode not automatically used
HTML output mode not automatically used
Status: VERIFIED FIXED
Product: libxslt
Classification: Platform
Component: general
unspecified
Other Solaris
: Normal normal
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2001-05-10 14:57 UTC by jonasw
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jonasw 2001-05-10 14:57:59 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/>
Comment 1 Daniel Veillard 2001-05-12 12:10:07 UTC
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
Comment 2 Daniel Veillard 2001-05-23 14:22:10 UTC
Shipped in 0.10.0, considered closed,

Daniel