[ZPT] XPath expressions in TAL

Evan Simpson evan@zope.com
Fri, 21 Sep 2001 15:51:12 -0400


Dethe Elza wrote:

> In the TAL docs there are examples of ways it would be possible to 
> extend the path expressions, one of which is XPath.  I'm very interested 
> in using XPath in ZPT, so I was wondering, a) Has anyone worked on this 
> already, or b) does anyone have suggestions where to start with this?


a) not that I know of, and b) you're probably best off looking at the 
PathExpr code in PageTemplates/Expressions.py for clues.


> I have added XPath into my local Zope using ParsedXML and 4Suite's XPath 
> implementation, but right now it's just an ExternalMethod and not very 
> flexible.  I'm looking more at using ZPT to create editing interfaces 
> for various XML languages.

Sounds neat!  How would you use XPath to do this?

Cheers,

Evan @ Zope