[Zope-dev] ZPT and strict namespace mapping

Andreas Jung lists at zopyx.com
Fri Aug 29 07:34:25 EDT 2008



--On 29. August 2008 13:20:38 +0200 Malthe Borch <mborch at gmail.com> wrote:

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

For convenience: z3c.pt should/could make such an assumption :-)

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20080829/10215c78/attachment.bin 


More information about the Zope-Dev mailing list