Slide 5 : 18
LAML mirror rules
The LAML parameter passing rules provide a fitting between Lisp and XML
LAML parameter passing rules
A symbol followed by a string represents an XML attribute.
(a
'href "http://www.alu.org"
"Association of Lisp Users")
Other strings, calls of mirror functions and
char-ref
forms represent element contents.
(p
"Some"
(em "emphasized")
'id "p1"
(char-ref "quot")
_
"text"
_
(char-ref "quot")
)
Element content items are implicitly separated by white space, unless suppressed by a distinguished value.
(p "This" "is" "a" "paragraph"
_
".")
Lists of attributes and element content items are recursively unfolded and spliced together with the surrounding parameters.
(ol (li "One")
(map li '("Two" "Three"))
(list 'start "10")
)
All examples in one document.
HTML Rendering.
The mirror examples
Use of Scheme as an authoring format is aided by
tool support
in the editor (Emacs)