Lecture overview -- Keyboard shortcut: 'u'  Previous page: Program subsumption -- Keyboard shortcut: 'p'  Next page: Data structures and paradigmatic concerns -- Keyboard shortcut: 'n'  Alphabetic index  Help page about these notes  Course home    Slide 12 : 15

Content, attributes, and validation

Avoid lexical representation of white space in string constants

Pass each XML attribute as a keyword parameter

Treat XML validation problems as syntax errors or type errors in the program

White space suppress markers:   
   (author "Kurt Normark")
   (title "The Duality of" (em "XML Markup") "and"
          (em "Programming Notation") _ "."))

Semi constant strings:
  (author [Kurt Normark] )
  (title [The Duality of ,(em [XML Markup]) and
         ,(em [Programming Notation]).] ))

Attributes as keyword parameters:
  "This is a"
  (a  'href  "http://www.w3c.org"  'target  "main"  "link")
  "to the W3C site.")
In LAML the context free composition of the XML document is validated by finite state automata, which are derived from the XML DTD