[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: Oleg Tkachenko <olegt@xxxxxxxxxxxxx>
Date: Sun, 17 Mar 2002 14:07:02 +0200
jdom html output
David M. Karr wrote:

By setting "omit-xml-declaration" to "no", I thought that would NOT omit the
XML declaration.  That is, the XML declaration should have been there, right?
Not necessary if you are generating html.

So far, I haven't been able to get it to generate one.
oops, I didn't see the subject, you probably use jaxp and somehow override <xsl:output> instruction, which is only hint, as David pointed out.

I'm not sure exactly what you mean by "special meta tag for html (which you
suppressed ...".  Are you saying that if I used 'method="html"', it would
automatically generate a "meta" tag?
It should. See http://www.w3.org/TR/xslt.html#section-HTML-Output-Method:
"If there is a HEAD element, then the html output method should add a META element immediately after the start-tag of the HEAD element specifying the character encoding actually used."


It is not doing that, if that's what
you're saying.
Well, the same problem as with xml declaration - something overrides your <xsl:output> instruction.

Oleg> And why you don't get doctype declaration in the output I don't understand, probably it's a kind of bug.

Well, yeah, that's what I'm trying to figure out.
All these 3 problems are steming from a source you have to figure out. Can you show us your java code and environment?
--
Oleg Tkachenko
Multiconn International, Israel



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.