This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: JDK14/JDOM: generating a DOCTYPE decl. in output?


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]