[ZPT] Re: DOCTYPES and metal

Peter Thoenen pthoenen@uwm.edu
Tue, 14 May 2002 13:27:14 -0500


Hello, was pointed to this thread in the archives and having an issue 
with implementing it.

If i add to the main_template:

<metal:block define-macro="pre">
   <?xml version="1.0" encoding="UTF-8" ?>
   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
</metal:block>
<html metal:define-macro="master"  <snip rest of code>
</html>

and then add to index_html:

<metal:block use-macro="here/main_template/macros/pre"></metal:block>
<html metal:use-macro="here/main_template/macros/master">
<snip rest of code>
</html>

I lose my css.  The <?xml and <!DOCTYPE now show up like I wanted, but 
all my css pulled from the zpt_stylesheet no longer works.  If I removed 
the <metal:block ..."pre">, the css goes back to working correcting.

Any ideas?

Peter




On 1/3/02 2:38 pm, "Evan Simpson" <evan@zope.com> wrote:

 > Tony McDonald wrote:
 >> <!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">
 > > You *could* do something like this:
 > > <metal:block define-macro="pre">
 > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 > "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
 > </metal:block>
 > <html metal:define-macro="master">
 > > ...and use both macros.  Its annoying, and there is a better 
solution in
 > the works, but I don't know when it will be ready.
 >
That works fine Evan, thanks for the tip.

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


-- 
========================================
Peter Thoenen - System Administrator
UW-Milwaukee - Career Dev Center
vox:414.229.4486 - fax:414.229.5347
email:pthoenen@uwm.edu || eol1@yahoo.com
========================================