Lecture overview -- Keyboard shortcut: 'u'  Previous page: Character transformation -- Keyboard shortcut: 'p'  Next page: Working with higher-order functions in LAML [Section] -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Page 13 : 26
Document Description and Processing in Scheme
Summarizing the XHTML mirrors

An XHTML mirror maps each HTML element to a named function in Scheme

An XHTML mirror is automatically derived from an XML DTD

  • Properties:

    • Each mirror function accepts parameters in a flexible way

    • Generates well-formed and valid HTML documents

    • Prevents accidental emission of '<' and '>' as part of the textual contents

    • The mirror functions return abstract syntax trees which, for instance, can be rendered as 'HTML text'

    • Supports optional pretty printing of the resulting HTML code

    • Supports checking of both relative and absolute links

All this is generalized to arbitrary XML languages in LAML