cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luke Flesch <luke.fle...@yale.edu>
Subject Error in HTML Doctype Statement
Date Mon, 20 Nov 2000 00:58:27 GMT
	I've been using Cocoon and the W3C Validation Service in an
attempt to create a valid XHTML document.  I have managed to get Cocoon to
output Transitional XHTML that is valid with but one error (in the first
line):

The invalid statement is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
		"DTD/xhtml1-transitional.dtd">

The valid statement would read:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
		"DTD/xhtml1-transitional.dtd">

The word 'html' must not be capitalized.  As far as I can tell, I cannot
modify this text using the cocoon.properties file.  
	Interestingly, I checked whether a Strict HTML document can use
the lower-case form.  According to the validator, it can.  You can check
that the following is a valid document:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN" 
		"http://www.w3.org/TR/REC-html40/strict.dtd" >
<html>
<head>
<title>Blah</title>
</head>
<body>
	<p>
	Results Page
	</p>
</body>
</html>

As a side note, Saxon gets this right and outputs 'html'.  
	Thus, I believe the problem can be fixed simply by changing the
hard-coded Cocoon default from 'HTML' to 'html'.  
	If I have overlooked some critical piece, I apologize.  I am very
new to Cocoon and the XML language family.  

-Luke Flesch


Mime
View raw message