Since
Let's take a first example. Suppose we evaluated some OCaml code with the following rule:
Now we can get the contents of x
as a string
to include in our document using the new rule:
The
The <code>
is the contents of the <format>
is %s
by default.
Another format can be used by setting the format
attribute
like in the following example:
Note that the parentheses around the expression in the
Of course more compilated format and ocaml expressions can be used:
The result of
is rewritten
Let's define a list:
The defer_
attribute to compute the contents of the node first:
This gives the following table:
As shown above, the parsed XML is then rewritten during the rest of the
evaluation process.
The current value of foo
is
The session
attribute is honored:
See