[Catalyst] SubRequest and template recursion

Adeola Awoyemi adeola at digitalcraftsmen.net
Tue May 22 16:05:33 GMT 2007


On 22 May 2007, at 15:57, Dave Howorth wrote:

> Adeola Awoyemi wrote:
>> Thanks. That seemed to work :)
>>
>> Now I'm getting "File not found error" with XML::XPath not lining the
>> fact that I'm passing it a string rather than a file :(
>
>> From TFM:
>
> new()
>
> This constructor follows the often seen named parameter method call.
> Parameters you can use are: filename, parser, xml, ioref and context.
> The filename parameter specifies an XML file to parse.
> The xml parameter specifies a string to parse
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Dave,

In my Template I already have that:

     [%
         USE doc = XML.XPath( xml => source_string );

         node = doc.findnodes('/rss');
         adaptation.print(node);
     -%]

I also tried using 'text' as in Template::Plugin::XML::XPath docs,  
with no luck.

Adeola.




More information about the Catalyst mailing list