On Sat, Nov 7, 2009 at 1:05 PM, Harm <
harm...@gmail.com> wrote:
>
> I'm exceptionally new to XML and XPath and I'm really enjoying
> Nokogiri so far. Today I wanted to do something more advanced and I
> tried the function 'starts_with' as defined in the XPath 2.0
> specifcication. That resulted in a RuntimeError:
> RuntimeError: xmlXPathCompOpEval: function starts_with not found
starts-with() is actually an XPath 1.0 function. It looks like you're
using an underscore instead of a dash:
http://www.w3.org/TR/xpath#function-starts-with
> To what extend does Nokogiri support XPath 1|2.0?
We leverage the XPath implementation inside libxml2. libxml2 supports
XPath 1.0.
Hope that helps!
--
Aaron Patterson
http://tenderlovemaking.com/