<<
Constructor functions
>>
We create elements using
constructor
functions.
Constructor parameters becomes child nodes.
Should use the same syntax and mechanism as for creating objects.
Should avoid noise words like
make
or
new
.
Short-hand syntax for defining new constructors functions:
(define-element html (head body)) (define-element body any) ;; if lazy
Need tool to create constuctor functions from DTD or Schema.