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

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

Subject: Re: JDK14/JDOM: generating a DOCTYPE decl. in output?
From: dmkarr@xxxxxxxxxxxxx (David M. Karr)
Date: 16 Mar 2002 13:41:52 -0800
html doctype jdom
>>>>> "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

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.