Announce: sxml-match, a pattern matcher for SXML
Jim Bender <jim-WkOkIs/[email protected]> Mon, 14 Mar 2005 01:40:19 -0600
| Newsgroups | gmane.lisp.scheme.ssax-sxml |
|---|---|
| Message-ID | <[email protected]> |
sxml-match provides pattern matching "by example" for SXML:
http://celtic.benderweb.net/sxml-match/
The following example provides a brief illustration, transforming an
music album catalog language into HTML.
(define (album->html x)
(sxml-match x
[(album (@ (title ,t)) (catalog (num ,n) (fmt ,f)) ...)
`(ul (li ,t)
(li (b ,n) (i ,f)) ...)]))
sxml-match is based directly on the pattern matcher in WebIt! 2.0, but
is standalone, and uses the standard SXML notation for attributes,
rather than WebIt!'s keywords.
A manual for sxml-match is available on the web site:
http://celtic.benderweb.net/sxml-match/manual/
The implementation is supported under PLT Scheme, (Petite) Chez Scheme
and SISC.
Jim Bender
http://celtic.benderweb.net/
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click