in reply to Re: XML::LIBXML XPATH for
in thread XML::LIBXML XPATH for

that is an xpath expression --> http://www.w3.org/TR/xpath20/#id-for-expressions

Replies are listed 'Best First'.
Re^3: XML::LIBXML XPATH for
by Corion (Patriarch) on Feb 29, 2012 at 10:50 UTC

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

    XML Path Language (XPath) 1.0: http://www.w3.org/TR/xpath
      oh thanks.
      just too sad

        Take a look at my XML::Saxon::XSLT2, which provides XSLT 2.0 via Inline::Java and Saxon. It's not pretty; it's not fast; but it mostly works.

        XPath 2.0 within an XSLT transformation should work but doesn't handle XPath outside a transformation. (Patches for that would be gratefully received.)

        There is practically no software that implements xpath2. Even saxon, a java library, only supports the basic spec.

        If the query from the root post is representative, you'll probably like xsh, the xml editing shell