XML interpolation has two forms for each of the words <XML and [XML: a fry-like form and a locals form. To splice locals in, use the syntax <-variable->. To splice something in from the stack, in the style of fry, use the syntax <->. An XML interpolation form may only use one of these styles.
These forms can be used where a tag might go, as in [XML <foo><-></foo> XML] or where an attribute might go, as in [XML <foo bar=<->/> XML]. When an attribute is spliced in, it is not included if the value is f and if the value is not a string, the value is put through present. Here is an example of the fry style of XML interpolation:
USING: splitting xml.writer xml.syntax ;
"one two three" " " split
[ [XML <item><-></item> XML] ] map
<XML <doc><-></doc> XML> pprint-xml <?xml version="1.0" encoding="UTF-8"?>