[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: Sat, 16 Mar 2002 12:13:08 +0200
omit declaration jdom
Hello David!
>   Warnings
> 
>       * Warning: No Character Encoding detected! To assure 
> correct validation,
>       processing, and display, it is important that the character 
> encoding is
>       properly labeled. Further explanations.
> 

If you are validating your page from the filesystem (by uploading into w3c validator) the only 2 way validator can get info about document encoding is xml declaration for xml documents (which you supressed by omit-xml-declaration="no") and special meta tag for html (which you supressed by method="xml"). That could be not a problem in real life when you load a document from web server by http protocol, which has its own facility for document encoding declaration - Content-Type http header.

btw, actually you are outputting not html but xml without xml declaration:

<xsl:output method="xml" indent="yes" encoding="utf-8"
  doctype-public="-//W3C//DTD HTML 4.01//EN"
  doctype-system="http://www.w3.org/TR/html4/strict.dtd"
  omit-xml-declaration="no" />

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

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