vlad_tepesch has asked for the wisdom of the Perl Monks concerning the following question:

i try to use a 'for'-expression in a findvalue-xpath expression but i get an error:
XPath error : Invalid expression for $x in //type/@name return (concat('Hallo', $a)) ^
any ideas from the wise monks of perl wisdom?

Replies are listed 'Best First'.
Re: XML::LIBXML XPATH for
by moritz (Cardinal) on Feb 29, 2012 at 10:37 UTC

    Is this supposed to be Perl code? It doesn't look like it. It also doesn't look like XPath -- maybe it's XSLT? If so, you need an XSLT processor, not just an XPath engine.

        XML::LibXML is based on libxml, which only supports XPath 1.0:

        XML Path Language (XPath) 1.0: http://www.w3.org/TR/xpath