[Zope-dev] ZPT and strict namespace mapping

Dieter Maurer dieter at handshake.de
Sat Aug 30 02:14:22 EDT 2008


Malthe Borch wrote at 2008-8-29 13:20 +0200:
> ...
>Right, so this is basically a question of whether the following
>template is legal or not:
>
><div tal:replace="string:hello world!" />
>
>In ZPT it would be, because it automatically assumes this namespace declaration:
>
> xmlns="http://www.w3.org/1999/xhtml"
> xmlns:tal="http://xml.zope. org/namespaces/tal"
> xmlns:metal="http://xml.zope.org/namespaces/metal" .

This is correct for HTML PageTemplates; XML PageTemplates, too, require
the namespace declarations -- at least this has been the case
for the former Zope 2 version of "PageTemplate" (I do not yet
know most details about the newer Zope 3 "PageTemplate").



-- 
Dieter


More information about the Zope-Dev mailing list