cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: Error in HTML Doctype Statement
Date Mon, 20 Nov 2000 01:55:40 GMT
This is a bug in the XHTML serializer, which is not part of the Cocoon 
source code - Cocoon only calls it.

Luke Flesch <luke.flesch@yale.edu> wrote:
>	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
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


Mime
View raw message