[opencms-dev] Where to put a statement issueing the DOCTYPE?

Jonathan Woods jonathan.woods at scintillance.com
Fri Sep 29 12:17:06 CEST 2006


Don't forget you don't need to enclose the DOCTYPE declaration in <% %>
tags... just like any content (e.g. <title>bla</title>) you can use it in
the clear:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>...</head>
	<body>...</body>
</html>

Jon

-----Original Message-----
From: Christoph P. Kukulies [mailto:kuku at physik.rwth-aachen.de] 
Sent: 29 September 2006 10:52
To: Jonathan Woods
Cc: 'The OpenCms mailing list'
Subject: Re: [opencms-dev] Where to put a statement issueing the DOCTYPE?

On Fri, Sep 29, 2006 at 10:20:00AM +0100, Jonathan Woods wrote:
> I just use inline content :-).  There may be a convenience JSP tag, 
> but I don't recall one, nor do I think it would save time/help much.  
> There are so many possibilities, in theory changing faster than the 
> JSP spec or the OpenCms taglib, and you've still got to choose the 
> right doctype for your circumstance.

Yes, thanks, you are right. Used <%="<!DOCTYPE ....."%> and my page now
appears quite garbled by in the browser - now, that I have defined a DOCTYPE
:-)

--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de






More information about the opencms-dev mailing list