[xslt] libxslt bug?



I am noticing the following annoying behavior:
libxslt is giving an opening and closing tag for <br> instead of a single <br>
tag in html output mode. The browser interprets this as 2 line breaks, which is
not what I want. Any suggestions or pointers would be useful.

xsltproc example.xsl example.xml gives
----------
<html xmlns="http://www.w3.org/TR/xhtml1/strict";>
    <body>
        <br></br>
    </body>
</html>
----------
example.xml contains:
----------
<example />
----------

example.xsl contains:
----------
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
    xmlns="http://www.w3.org/TR/xhtml1/strict";>

<xsl:output encoding="utf-8" method="html" indent="yes"/>

<xsl:template match="/" xml:space="preserve"><html>
    <body>
        <br />
    </body>
</html></xsl:template>
</xsl:stylesheet>
----------

Thanks

Kyle


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]