1 Feb 16:58
Re: exslt functions in xpath expressions
Dirk Rothe <d.rothe <at> semantics.de>
2010-02-01 15:58:08 GMT
2010-02-01 15:58:08 GMT
done: https://bugs.launchpad.net/lxml/+bug/515553 On Sat, 30 Jan 2010 17:10:25 +0100, Stefan Behnel <stefan_ml <at> behnel.de> wrote: > > Dirk Rothe, 30.01.2010 16:14: >> In [9]: print tree.xpath("/a[@b=str:split('12 34')]", namespaces={'str': >> "http://exslt.org/strings"}) >> [...] >> XPathEvalError: Unregistered function > > You're right, they are currently only available to XSLT. It seems that at > least the date, math, sets and string functions can be enabled in plain > XPath, but only from libxslt 1.1.25 onwards. That version was released on > 2009-09-17, so it's fairly recent. > > http://xmlsoft.org/XSLT/EXSLT/html/libexslt-exslt.html > > Could you file a feature request for this in the bug tracker? I should be > able to add support in lxml 2.3. > > Stefan
RSS Feed