Is Neil's xexp format different that the one being used in racket due to the attribute list beginning with an '@'?
(write-html '((html (head (title "My Title")) (body (@ (bgcolor "white")) (h1 "My Heading") (p "This is a paragraph.") (p "This is another paragraph.")))) ( current-output-port)) Here is an example xexp from some guys homework assignment ( http://web.cs.wpi.edu/~cs1102/a12/Assignments/Hwk7/html.html) (form ((action "http://localhost:8088/hello")) "What is your first name?" (input ((type "text") (name "firstName"))) (input ((type "submit") (value "Click Here")))) Here is the syntax for an xexp from xexp? in the reference: xexpr = string | (list <http://pkg-build.racket-lang.org/doc/reference/pairs.html#%28def._%28%28quote._~23~25kernel%29._list%29%29> symbol (list <http://pkg-build.racket-lang.org/doc/reference/pairs.html#%28def._%28%28quote._~23~25kernel%29._list%29%29> (list <http://pkg-build.racket-lang.org/doc/reference/pairs.html#%28def._%28%28quote._~23~25kernel%29._list%29%29> symbol string) ...) xexpr ...) | (cons <http://pkg-build.racket-lang.org/doc/reference/pairs.html#%28def._%28%28quote._~23~25kernel%29._cons%29%29> symbol (list <http://pkg-build.racket-lang.org/doc/reference/pairs.html#%28def._%28%28quote._~23~25kernel%29._list%29%29> xexpr ...)) | symbol | valid-char? <http://pkg-build.racket-lang.org/doc/xml/index.html#%28def._%28%28lib._xml%2Fmain..rkt%29._valid-char~3f%29%29> | cdata | misc And in this latter syntax, how is the attribute list distinguished from a list of embedded xexps? Is it due to the nesting in the attribute list? Another question, the racket manuals show xexp->string being used to generate html. Neil has a separate write-html function. Why the divergence? Thanks in advance! -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.