[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl output defaults - html

Subject: Re: xsl output defaults - html
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 18 Apr 2013 09:28:41 +0100
Re:  xsl output defaults - html
On 18/04/2013 06:48, Ihe Onwuka wrote:
Just been burnt by the fact that XSLT defaults to html output and
therefore does not emit well formed xml (e.g does not close img tags
 even if you tell it to) upon seeing a root element of html - EVEN if
 that root element is not in the html/xhtml namespace.

This rule has been in place since XSLT 1. Note you only get the html output method if the top level element is in _no_ namespace. If it is in the xhtml namespace then yiou get the xhtml method (or the xml method if xslt 1 compatibility is in force).

If producing html it is important not to use /> when generating html as
(prior to HTML5)
is a syntax error in html.


Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.