Package: xpattern

Macro pattern-case

Lambda List

pattern-case (node &body clauses)

Arguments

  • node -- any node implementing the XPath protocol
  • clauses -- cases of the form (expression &rest body)

Return Value

The value returned by the matching clause body, or nil.

Details

Match a node against static expressions.

Evaluates node, and matches them against the specified XSLT patterns. The first matching pattern will be chosen, i.e. earlier clauses have higher priority that later clauses.

Expressions are compiled using the dynamic environment.

As a special case, the last expression can be t, in which case it matches unconditionally.

 

See also