Package: xpath

Function evaluate-compiled

Lambda List

evaluate-compiled (compiled-xpath context &optional unordered-p)

Arguments

  • compiled-xpath -- a compiled XPath expression
  • context -- an XPath context
  • unordered-p -- specify true to get unordered node-set

Return Value

the result of evaluating compiled-xpath within the context

Details

Evaluates a compiled XPath expression returned by compile-xpath

The context can be obtained using make-context. As an alternative, a node can be specifed.

If unordered-p is false (default) and value being returned is a node-set, it will be sorted using sort-node-set so its nodes will be in document order. If unordered-p is true, the order of the nodes is unspecified. Unordered mode can be significantly faster in some cases (and never slower).
 

See also