GNOME Bugzilla – Bug 68756
non-closure of empty paragraph tag <P>
Last modified: 2009-08-15 18:40:50 UTC
Perhaps this isn't a bug per se, but behaviour is different than other XSLT engines. In the below, although not required, the expected output would be: <P></P> <P>para</P> Instead libxslt returns: <P> <P>para</P> without the closure of the empty <P>. Thanks again Daniel! Jon ------------------------------- <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" indent="yes" omit-xml-declaration="yes"/> <xsl:template match="/"> <P></P> <P>para</P> </xsl:template> </xsl:stylesheet>
It's HTML specific and not a bug. The P autocloses itself according to the HTML SGML DTDs. Daniel