Up: Plexippus XPath API reference

Package xpattern

The XPATTERN package implements pattern matching compatible with XSLT 1.0.

About This Package

Utilities powered by pattern matchers
Compiling pattern matchers dynamically
Applying pattern matchers

Utilities powered by pattern matchers

The following convenience functions and macros use patterns. They are implemented using the lower-level functions listed below.

Determine whether node matches the pattern expression. ...

Match a node against static expressions. ...

Match a node against static expressions. ...

Compiling pattern matchers dynamically

Pattern are represented as objects:

Represents a parsed XSLT pattern.

Return the user-specified value that will be returned by pattern matchers if this pattern matches.

Return the priority of this pattern. ...

Use compute-patterns to parse a pattern expression into pattern objects:

Parse an XSLT pattern expression into one or more pattern objects. ...

make-pattern-matcher builds a matcher functions from multiple pattern objects. The matcher will find the highest-priority match among them.

Create a pattern matcher that distinguishes between multiple patterns. ...

Create a pattern matcher for a single pattern. ...

Applying pattern matchers

To invoke a matcher created by make-pattern-matcher, use matching-value or matching-values:

Apply a pattern matcher to node, and return exactly one value. ...

Apply a pattern matcher to node, and return one or more matching values. ...

Exported Symbol Index

*allow-variables-in-patterns*, variable
compute-patterns, function
make-pattern-matcher, function
make-pattern-matcher*, function
matching-value, function
matching-values, function
node-matches-p, function
parse-pattern-expression, function
pattern, class
pattern-case, macro
pattern-ecase, macro
pattern-priority, function
pattern-value, function