Commit 44e7f328 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 f0fb20f2
......@@ -41,4 +41,10 @@ The good old XML bibliography example.
Syntactic sugar for projection.
</example>
<example code="xtransform" title="Tree transformations">
How to perform XSLT-like transformations.
</example>
</examples>
(* 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