This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: JDK14/JDOM: generating a DOCTYPE decl. in output?
- From: dmkarr at earthlink dot net (David M. Karr)
- To: xsl-list at lists dot mulberrytech dot com
- Date: 16 Mar 2002 13:41:52 -0800
- Subject: Re: [xsl] JDK14/JDOM: generating a DOCTYPE decl. in output?
- References: <86n0x9cpm3.fsf@earthlink.net><200203161027.KAA00457@penguin.nag.co.uk>
- Reply-to: xsl-list at lists dot mulberrytech dot com
>>>>> "David" == David Carlisle <davidc@nag.co.uk> 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@earthlink.net
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list