An example with property lists that represent HTML attributes in LAML. | Lecture 3 - slide 17 : 42 Program 1 |
1> (define a-clause (a 'id "myid" 'class "myclass" 'href "http://www.cs.auc.dk")) 2> a-clause (ast "a" () (id "myid" class "myclass" href "http://www.cs.auc.dk" shape "rect") double xhtml10-strict) 3> (render a-clause) "<a id = \"myid\" class = \"myclass\" href = \"http://www.cs.auc.dk\"></a>" 4> (define attr-list (ast-attributes a-clause)) 5> attr-list (id "myid" class "myclass" href "http://www.cs.auc.dk" shape "rect") 6> (find-href-attribute attr-list) "http://www.cs.auc.dk" >