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

Philipp von Weitershausen philipp at weitershausen.de
Fri Jul 23 08:47:29 EDT 2004


Dmitry Vasiliev wrote:

> Philipp von Weitershausen wrote:
> 
>> Using namespaces in XHTML is a rare case; however, we don't want to 
>> limit Page Templates to non-namespaced XML templates. But since it's a 
>> rare case, it wouldn't hurt falling back to tal:attributes there.
>>
>> Or, we could have a different separate, e.g.:
>>
>> <a attr:xml#lang="here/lang" />
>>
>> Then again, I would have to read the spec to see if # or similar are 
>> allowed in attribute names...
> 
> 
> Maybe just:
> 
> <a attrs="href item/url" />

Then a page template wouldn't be valid XHTML anymore.

> So, from template developers point of view we only change 
> 'tal:attributes' to 'attrs'. :-)

Right, that's why I don't understand why this is an improvement?

> Or even:
> 
> <a href="path:item/url" />

Then a Page Template could not be viewed in a browser off of the 
filesystme... And how would you know what to process?!?

Philoipp



More information about the Zope3-dev mailing list