You might want to see the paper available at
http://wingolog.org/pub/fold-and-xml-transformation.pdf.

The source code available in this archive file is in the public domain.

Andy Wingo, 29 June 2007
