Subject: Re: [xsl] JDK14/JDOM: generating a DOCTYPE decl. in output? From: dmkarr@xxxxxxxxxxxxx (David M. Karr) Date: 16 Mar 2002 13:41:52 -0800 |
>>>>> "David" == David Carlisle <davidc@xxxxxxxxx> writes: David> If you are generating HTML 4, you don't want to force the xml output David> method David> <xsl:output method="xml" indent="yes" encoding="utf-8" David> doctype-public="-//W3C//DTD HTML 4.01//EN" David> doctype-system="http://www.w3.org/TR/html4/strict.dtd" David> omit-xml-declaration="no" /> David> otherwise there will be no way to get HTML syntax for empty elements, David> script elements etc. David> If you change that to method="html" (which would be the default anyway) David> the output will use HTML syntax and also automatically add a David> specification of the encoding used into the head element. I tried changing the output method from "xml" to "html", and it caused absolutely no difference in the output. -- =================================================================== David M. Karr ; Java/J2EE/XML/Unix/C++ dmkarr@xxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] JDK14/JDOM: generating a , David Carlisle | Thread | Re: [xsl] JDK14/JDOM: generating a , David Carlisle |
Re: [xsl] JDK14/JDOM: generating a , David M. Karr | Date | Re: [xsl] JDK14/JDOM: generating a , Daniel Veillard |
Month |