xpath: expression type?
Chris Withers <[email protected]> Wed, 05 Oct 2005 11:53:49 +0100
| Newsgroups | gmane.comp.web.zope.page-templates |
|---|---|
| Message-ID | <[email protected]> |
Hi Paul,
Just rad your excellent blog post at:
http://radio.weblogs.com/0116506/2005/10/05.html#a351
...and it made me wonder: what if ZPT had an xpath: expression type?
Your examples could become:
<li tal:repeat="i xpath:item/title/text()"
tal:content="i">Item ID</li>
<li tal:repeat="i xpath:item[@paid]/title/text()"
tal:content="i">Item ID</li>
I don't reckon this is gonna be that hard to implement...
comments anyone?
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk