[Zope3-dev] Re: idea: attr:foo addition to tal

Tonico Strasser contact_tonico at yahoo.de
Fri Jul 23 05:06:42 EDT 2004


Steve Alexander wrote:

> I was writing yet another tal:attributes expression, when I had the 
> following idea.
> 
> How about if there were an 'attr' namespace that the tales interpreter 
> understands that replaces attributes?
> 
> So, instead of
> 
>   <a tal:attributes="href item/url" tal:content="item/description" />
> 
> we get
> 
>   <a attr:href="item/url" tal:content="item/description" />

-1 for me.

   <a attr:xml:lang="here/lang"/>

Would this be possible? If yes, is it still valid XML?

Tonico



More information about the Zope3-dev mailing list