Lecture overview -- Keyboard shortcut: 'u'  Previous page: The HTML mirrors in LAML -- Keyboard shortcut: 'p'  Next page: Mirroring of HTML (2) -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Lecture 7 - Page 10 : 24
Functional Programming in Scheme
Mirroring of HTML (1)

(f 'a1 "v1" 'a2 "v2" "Some text." "More text")

A HTML mirror expression with attribute names (symbols), attribute values (strings following symbols) and content strings.

<f a1="v1" a2="v2"> Some text. More text</f>

The rendering of the value of the HTML mirror expression.

The mirror function f distinguishes between attribute names, attribute values, explicit white space,character references,and content strings via the runtime types of the parameters together with their mutual position in the parameter list.