Lecture overview -- Keyboard shortcut: 'u'  Previous page: Combination of mirror functions: Tables (2) -- Keyboard shortcut: 'p'  Next page: XML-in-LAML abstractions -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Page 17 : 26
Document Description and Processing in Scheme
Open table forms

In the early days of LAML I used specialized table convenience functions that abstracted away both tr and td

In that way, it was not possible to affect the tr and td attributes

 

(define row list)  (define cell list)

(write-html '(pp prolog)
 (html 
  (head 
   (title "Table Examples"))
  (body 
    (table 
	 'border "1" 
	 (map (compose tr (map td))
	       (list
		(row (cell "This" 'rowspan "2") "is" "row" "1")
		(row                            "is" "row" "2")
		(row "This"                     "is" "row" "3")
		(row (cell "This is" 'colspan "2")   "row" "4"))) ) )))

A idiomatic table presentation pattern in LAML.

/user/normark/scheme/slides/goerlitz-05/document-description-in-scheme/includes/higher-order-ex/tables-1.lamlEntire document.

Entire document.