[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: output method html doesnt work with namespace in s
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|