Commit 3b59a402 authored by Pietro Abate's avatar Pietro Abate
Browse files

[r2003-06-30 12:51:11 by cvscast] Beppe: started xtransform example

Original author: cvscast
Date: 2003-06-30 12:51:11+00:00
parent 5ac7fba3
......@@ -41,4 +41,10 @@ The good old XML bibliography example.
Syntactic sugar for projection.
<example code="xtransform" title="Tree transformations">
How to perform XSLT-like transformations.
(* xtransform matches the patterns against the root element of each
XML tree and, if it fails, it recursively applies itself to the
sequence of sons of the root.
It can be used to put in boldface all the links of an XHTML
document as follows
let bold(x:[Xhtml]):[Xhtml]=xtransform x with <a (y)>t -> [ <a(y)>[<b>t] ]
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment