[plt-scheme] (html-tag () ... )

From: David B. Tucker (dbtucker at cs.brown.edu)
Date: Thu Jul 3 14:59:15 EDT 2003

The () are for attributes; for example, the XML node:

  <font size="7" color="red">Hamlet</font>

would be represented as the following x-expression:

  (font ([size "7"] [color "red"]) "Hamlet")

Dave

On Thu, Jul 03, 2003 at 02:50:25PM -0400, Geoffrey Knauth wrote:
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> I was working though the Help Desk, Brief Tour of DrScheme v. 204, XML 
> Boxes examples.  (Those {XML,Scheme,Scheme Splice} Boxes are pretty 
> slick.)  When I see something like this:
> 
> (ul () (li () (em () "Hamlet")) (li () (em () "othello")) (li () (em () 
> "Macbeth")))
> 
> I'm left curious, what all the () are for?  What magic takes their 
> place when they are not () ?
> 
> A short answer is fine.
> 
> Geoffrey
> --
> Geoffrey S. Knauth | http://knauth.org/gsk


Posted on the users mailing list.