[ZPT] the defining METAL element and attributes

Guido van Rossum guido@digicool.com
Thu, 03 May 2001 08:55:25 -0500


> it seems to me that the attributes of the defining element of a METAL-macro :
> ex : <html metal:define-macro="commonPageLook"
>       xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:tal="http://xml.zope.org/namespaces/tal"
>       xmlns:metal="http://xml.zope.org/namespaces/metal">
> , is not updated in templates using the macro, the way things nested
> within are..
> - same goes for definitions of slots..
> 
> Is this a feature, or just a slip ?
> 
> 
> It would be really helpful, though , to have those elements
> replicated as well :
> 
> ( example of use : I noticed that i had left out the namespace
> references for TAL and METAL in some of my templates, - needed for
> xml-parsing , - and had to update them all by hand , because the root
> element is not updated from the macro-template.. )
> 
> :-(

This may well be a bug, and is supposed to work.  Would you mind
entering an entry in the ZPT tracker with a full example?

--Guido van Rossum (home page: http://www.python.org/~guido/)