Package: xpath

Macro with-plx-extensions

Lambda List

with-plx-extensions (&body body)

Details

Binds plx prefix to Plexippus XPath extensions namespace.

The following functions are currently available:

plx:matches(string, pattern, flags?)
Returns true if string is matched by regular expression pattern, false otherwise. Optional flags specify modifiers (i, m, s). CL-PPCRE is used as regular expression engine.

plx:replace(string, pattern, replacement, flags?)
Returns string with all matches of regular expression pattern replaced with replacement. Optional flags specify modifiers (i, m, s).

plx:current()
Returns a node-set consisting of one node which was specifed as context node for expression evaluation. Analagous to current() function of XSLT.

plx:generate-id(node-set?)
Returns an alphanumeric string that uniquely identifies the first node of the node-set (or context node if node-set isn't specified) within its document. Analagous to generate-id() of XSLT.
 

See also