Re: [PHPTAL] Evaluating tal:attributes Generated By PreFilters

2011-05-11 Thread Darrell Noice
And that was exactly what I needed. Thank you very much. Darrell Hamilton, Software Developer, 4over, Inc darre...@4over.com 818-246-1170 ext. 285 2011/5/11 Kornel Lesiński : > On Wed, 11 May 2011 07:42:50 +0100, Darrell Noice > wrote: > >> foreach(...) { >> ... >> $new_attrs = array(); >> $

Re: [PHPTAL] Evaluating tal:attributes Generated By PreFilters

2011-05-11 Thread Kornel Lesiński
On Wed, 11 May 2011 07:42:50 +0100, Darrell Noice wrote: foreach(...) { ... $new_attrs = array(); $new_attrs[] = new PHPTAL_Dom_Attr("variables","",implode(",",$vars),"UTF-8"); $new_attrs[] = new PHPTAL_Dom_Attr("tal:attributes","","token {$token}","UTF-8"); PHPTAL's DOM uses XML namespa

[PHPTAL] Evaluating tal:attributes Generated By PreFilters

2011-05-10 Thread Darrell Noice
Premise: I am writing a Pre Filter, using filterDOM, to locate all elements that contain an i18n:translate attribute. These elements extracted from the DOM, wrapped in an element that contains information about the translation, eg the token used to look up the translation and any i18n:name attrib