[ZPT] DOCTYPES and metal
Tony McDonald
tony.mcdonald@ncl.ac.uk
Fri, 01 Mar 2002 12:03:50 +0000
Hi all,
Can someone tell me how you can get a DOCTYPE declaration inserted at the
top of a rendered PageTemplate using metal?
This snippet ignores the DOCTYPE in rendered pages,
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html metal:define-macro="master">
Whereas this includes the DOCTYPE, but of course, it's in the wrong place
<html metal:define-macro="master">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
Some browsers want to see the DOCTYPE first, so this leads to mis-rendered
pages.
Any ideas?
tone
--
Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/
The Medical School, Newcastle University Tel: +44 191 243 6140
A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope