Lecture overview -- Keyboard shortcut: 'u'  Previous page: Mirroring of XHTML (3) -- Keyboard shortcut: 'p'  Next page: Mirroring of XHTML (5) -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Page 10 : 26
Document Description and Processing in Scheme
Mirroring of XHTML (4) - More of the same...

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

(body
    (let ((attributes (list 'start "3"))
          (contents   (map li (list "one" "two" "three"))))
       (ol 'id "demo" contents attributes)
    )
  )
 )
)

Passing of attribute lists and lists of textual contents.

<body>
  <ol id="demo" start="3">
    <li>one</li> 
    <li>two</li> 
    <li>three</li>
  </ol>
</body>

The XHTML counterpart.