Package: xpath

Function compile-xpath

Lambda List

compile-xpath (xpath &optional (environment (make-dynamic-environment *dynamic-namespaces*)))

Arguments

  • xpath -- an XPath expression

Return Value

a compiled XPath expression

Details

Compiles an XPath expression

The xpath expression is compiled using current environment if it isn't compiled yet. xpath can be a string, a sexpr-based XPath epression or a compiled expression. In the latter case xpath argument value itself is returned.