[Home] [By Thread] [By Date] [Recent Entries]
The point in question, which I think that Jeni missed, is that the XSLT spec states that only elements with a NULL URI should be handled specially when using the HTML output method. However, some processors (such as Saxon) treat the HTML URI as equivalent to the NULL URI code, and output elements from that namespace with the special HTML forms (such as <br>). [1] Xalan does not, and therefore outputs '<br xmlns="http://www.w3.org/TR/REC-html40"></br>' as '<br xmlns="http://www.w3.org/TR/REC-html40" />'. Saxon, on other hand, outputs something like '<br>'. I am not positive that is the right namespace, but the general idea is correct. niko [1] XSLT Spec 16.2: The |html| output method should not output an element differently from the |xml| output method unless the expanded-name of the element has a null namespace URI. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



