[ZPT] Re: METAL and "incompatible version"
Michael Haubenwallner
michael at d2m.at
Wed Oct 20 13:38:07 EDT 2004
Laurent Pointal wrote:
> Hello,
>
> Coming to Zope for a www site of a research group, I try to use ZPT and
> produce XHTML1.1 pages.
>
> While trying to put XML headers on my pages (using some hacks based on
> metal macros found on the www), I encounter the following error:
> <<
> Error Type: METALError
> Error Value: macro 'here/std_template/macros/pre' has incompatible
> version None, at line 1, column 1
>
>>>
>
> Searching google, I'm not the only one to have this problem.
> (ex. http://marc.free.net.ph/message/20030903.211218.b1b42a25.html )
> Here is the macro:
> <metal:block define-macro="pre">
> <?xml version="1.0" encoding="iso-8859-15"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
> "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
> </metal:block>
>
> Does anybody has found a solution to this error or at least an
> alternative to produce right XML documents with ad-hoc header and doctype ?
>
There might be another problem with the zpt - the macro you showed
renders ok with a plain zope2.7.2 (content-type: text/html)
Michael
--
http://zope.org/members/d2m
More information about the ZPT
mailing list