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

Re: XHTML html validation

Subject: Re: XHTML html validation
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Thu, 15 Feb 2007 14:56:55 +0000
Re:  XHTML html validation
On 2/15/07, John Steel <john.steel@xxxxxxxxxxxxxxx> wrote:
I'm trying to convert a site which currently is XHTML valid to use xslt
and remain so.
When I run the old handmade jsp pages through http://validator.w3.org/
is the , which begin

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

it validates. My stylesheet contains this

 <xsl:output method="html"
  doctype-public='-//W3C//DTD XHTML 1.0 Transitional//EN"

Which sticks this at the top of the doc

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Notice the case of the html entry. This throws up the w3c error

/Line 1 column 120/: DTD did not contain element declaration for
document type name.


Do I really need to make that read "html" and if so how please?

Which processor are you using?

Also, do you really want the "html" output method if your target is
xhtml - shouldn't you be using the "xml" output method in 1.0, and
"xhtml" in 2.0?  Otherwise <br/> will be <br> etc

Current Thread


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