|
next
|
 Subject: Tags not getting closed when generating HTML from XSLT Author: (Deleted User) Date: 27 Sep 2005 03:01 PM
|
Hi Shane,
your stylesheet is missing the xsl:output instruction, so it is assumed to generate an HTML page (because the root node is <html>).
According to the XSLT specs, "the html output method should not output an end-tag for empty elements. For HTML 4.0, the empty elements are area, base, basefont, br, col, frame, hr, img, input, isindex, link, meta and param. For example, an element written as <br/> or <br></br> in the stylesheet should be output as <br>."
If you want the XSLT to generate well-formed XML you should add the instruction <xsl:output method="xml"/> right after the <xsl:stylesheet> instruction.
Hope this helps,
Alberto
|
|
|
|