Package: xpattern

Macro pattern-ecase

Lambda List

pattern-ecase (node &rest 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.

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.

If no clause matches, an error will be signalled.

 

See also