On Wed, Feb 18, 2004 at 09:07:43AM +0000, Dave Cross wrote:
> On Wed, Feb 18, 2004 at 10:51:57AM +1100, Bruce Britts wrote:
> > Hi,
> > 
> > I'm attempting to use the XML::XPath count() function and will 
> > get,  'XML::XPath::Node::Element=SCALAR(0x1fa205c)'  returned instead 
> > of  the expected integer using the code below;
> > 
> > [% FILTER null;
> >         USE indx = XML.XPath('statspages.xml');
> >         output = [ ];
> >         FOREACH row = indx.findnodes('/statspages/statscat/category');
> >                 num = row(count('linehead'));
> 
> That should probably be something like:
> 
>                   num = row.findvalue("count('linehead')");

In the interests of keeping the information in the mailing list archive
accurate I should point out that it should actually be:

                    num = row.findvalue('count(linehead)');

Dave...

-- 
  New .sigs
  Running in please parse

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to