[Zope-dev] ZPT and strict namespace mapping

Malthe Borch mborch at gmail.com
Fri Aug 29 07:20:38 EDT 2008


2008/8/29 Andreas Jung <lists at zopyx.com>:
>
>
> --On 29. August 2008 12:31:21 +0200 Malthe Borch <mborch at gmail.com> wrote:
>
>> Trying to get a feeling here on whether we want to require proper XML
>> namespace definition (current z3c.pt behavior) or implicitly fallback to
>> the standard mappings (current zope.pagetemplate behavior).
>
> Can you elaborate this statement?

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" .

z3c.pt otoh, does not make such an assumption.

\malthe


More information about the Zope-Dev mailing list