This blog post is
14 years old! Most likely, its content is outdated.
Especially if it's technical.
For the record, this is how to include a "DOCTYPE declaration"n:http://www.seoconsultants.com/w3c/doctype.asp in Zope when you use "PageTemplates with METAL"n:http://dev.zope.org/Wikis/DevSite/Projects/ZPT/METAL%20Specification%201.0.
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.
- Previous:
- Dan Heller's Photos of Italy
08 February 2004
- Next:
- Breaking usability principles for usability
10 February 2004
- Related by Keyword:
- Orphaned Land - Jewish Muslim Metal
08 December 2009
- Kalle Kappner - Opeth and Pain of Salvation piano tribute
19 August 2008
- Interview with Varg Vikernes
01 July 2008
- Tip: Printer friendly pages with Page Templates in Zope
24 March 2008
- More crappy album covers
06 August 2006
- Related by Text:
- Be very careful with your add_header in Nginx! You might make your site insecure
11 February 2018
- jQuery and Highslide JS
08 January 2008
- I'm back! Peterbe.com has been renewed
05 June 2005
- Anti-McCain propaganda videos
12 August 2008
- I'm Prolog
01 May 2007
<metal:block define-macro="foobar"
><?xml version="1.0" encoding="utf-8"?>
...etc
instead -- no newline between the end of metal:block and the beginning of the xml processing directive.