We can deal with non-element objects such as string and record (for attributes) by putting them between curly braces. Non-element objects are given by constants and primitive functions.
An XTiSP program
<HTML> [
<HEAD> [ <TITLE> [ {"This is a title."} ] ];
<BODY> [
{String.capitalize("powered by ")};
<A HREF='http://xtisp.psdlab.org'> [ {"XTiSP"} ];
{"."}
]
]
returns an XML
<HTML><HEAD><TITLE>This is a title.</TITLE></HEAD>
<BODY>Powered by <A HREF="http://xtisp.psdlab.org">XTiSP</A>.</BODY>
</HTML>
independently of input XML. Though discouraged, we can use some functions in Objective Caml in uncurried style, e.g., String.make(10,String.get("!",0)) It returns a string !!!!!!!!!!.
Last modified:2006/06/11 00:30:55
Keyword(s):
References:[TabTree]
Keyword(s):
References:[TabTree]