Better access to APIs in paths (was Re: [Zope3-dev] needing viewsclues - template/title troubles)

Gary Poster gary@modernsongs.com
Mon, 24 Feb 2003 10:53:21 -0500


I like this a lot.

Gary

Shane Hathaway wrote:
> Shane Hathaway wrote:
> 
>> I want to spell it like this:
>>
>> <html tal:namespaces="dc http://purl.org/dc/elements/1.1/;
>>                       zope http://namespaces.zope.org/zope">
>> <head>...</head>
>> <body>
>> <p>The title of this document is
>> <span tal:content="here/dc:title">Some Title</span>.</p>
>> <p>Its path in Zope is
>> <span tal:content="here/zope:path">Some Path</span>.</p>
>> </body>
>> </html>
> 
> 
> Oops, of course I meant to use "context" instead of "here".
> 
> I also want to clarify that in this syntax, you're not allowed to use a 
>  namespace qualifier for the first name in the path.  The first name 
> must be a local or global variable (just like today).  So 
> "dc:context/title" is not allowed, but something like 
> "context/zope:services/events/dc:title" is allowed and probably common.
> 
> Shane
> 
> 
> _______________________________________________
> Zope3-dev mailing list
> Zope3-dev@zope.org
> http://mail.zope.org/mailman/listinfo/zope3-dev
> 
>