I've realized that exposing PHPTAL's DOM in prefilters wasn't the best
idea - it's too basic to be useful.
So I've added PHPTAL_PreFilter::filterElement() method, which receives
PHP5's native DOMElement to work on. This allows you to use full DOM,
XPath, XSLT etc. in prefilters.
Even if you use DOM-based prefilter, PHPTAL still uses its own parser, and
there's a lot of magic going on behind the scenes making PHPTAL's parser
build PHP5 DOM and then convert PHP5 DOM to PHPTAL DOM.
PHPTAL mailing list