DOCTYPE in PageTemplates with METAL


9th of February 2004

For the record, this is how to include a DOCTYPE declaration in Zope when you use PageTemplates with METAL.

In your standard template object (e.g. StandardLook.zpt):

 <metal:block define-macro="standard">
 <?xml version="1.0"?>
  <metal:block define-slot="doctype">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  </metal:block>
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 ...
 </html>
 </metal:block>

This site is not XHTML valid (yet), but W3C has the validator to use.



Comment

Show all 1 comments
 
Name:
Email:
hide my email address.

Your email address will be encoded to prevent email-extraction spiders from reading it so you won't get spammed if you decide to show your email address.