Description

Pattern matching of SXML

Author

Jim Bender, packaged for Chicken by Reed Sheridan

Version

Requires

Usage

(require-extension sxml-match)(import sxml-matcher)

Download

sxml-match.egg

Documentation

This egg provides syntax-case-like pattern matching of SXML

From the original documentation:

Compared to a standard s-expression pattern matcher, sxml-match provides the following benefits:

  • matching of SXML elements does not depend on any degree of normalization of the SXML
  • matching of SXML attributes (within an element) is under-ordered; the order of the attributes specified within the pattern need not match the ordering with the element being matched
  • all attributes specified in the pattern must be present in the element being matched; in the spirit that XML is 'extensible', the element being matched may include additional attributes not specified in the pattern.

See the original documentation for more information.

License

This egg is released under the MIT License