[Haskell-cafe] how to generate XHTML 1.1?
haskell at list.mightyreason.com
Fri Aug 18 07:00:44 EDT 2006
Tamas K Papp wrote:
> I would like to use Haskell to generate static HTML webpages,
> preferably using XHTML 1.1. How can I do this? I found libraries to
> generate XHTML 1.0 transitional, but not 1.1. Scheme has LAML ,
> which parses the DTD, uses S-expressions and validates the XHTML, I am
> looking for something similarly elegant (even if without the
> S-expressions, which I haven't seen in Haskell yet).
Google for "Haskell SXML" to get oleg's messages:
> Our running example, inspired by the Haskell.org web site, is:
> test_haskell =
> [title "Haskell" longdash "HaskellWiki"]
> [meta_tag [description "All about the language" br "Haskell"]])
> [h1 "Haskell"]
> [div (attr [title "titleline"])
> [[a (attr [href (FileURL "/haskellwiki/Image:Haskelllogo.jpg")])
> "Haskell" br "A <purely functional> language"]]
> [p "Haskell is a general purpose,"
> [[em [[strong "purely"]] "functional"]] "programming language"]]))
More information about the Haskell-Cafe