Lecture overview -- Keyboard shortcut: 'u'  Previous page: Mirroring of HTML (2) -- Keyboard shortcut: 'p'  Next page: Mirroring of HTML (4) -- 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 12 : 24
Functional Programming in Scheme
LAML
Mirroring of HTML (3)

List of contents and lists of attributes are processed recursively and spliced together with their context

  (body

    (ul 
      (map li (list "one" "two" "three"))
    )

    
    (let ((attributes
           (list 'start "3" 'css:list-style-type "lower-roman"))
          (contents (map li (list "one" "two" "three"))))
       (ol 'id "demo" contents attributes)))    

An HTML mirror expression in which lists are passed as parameters to the HTML mirror functions.

<body>
    <ul><li>one</li> <li>two</li> <li>three</li></ul>
       
    <ol style="list-style-type: lower-roman;" id="demo" start="3">
        <li>one</li>
        <li>two</li>
        <li>three</li>
    </ol>
</body>

The rendering of the value of the HTML mirror expression.