Generated: Monday, November 14, 2011, 09:25:22 | Copyright © 2006, Kurt Nørmark |
This example illustrates the use of an LP/CD description language. The example stems from Haskell and XML: Generic Combinators or Type-Based Translation? written by Malcolm Wallace and Colin Runciman and published in International Conference on Functional Programming 1999 (ICFP'99).
Below you will find the Album DTD, the parsing and mirror construction script, the album example document, the transformation program (Scheme source), and the HTML target document, as generated by album-ex.laml via the Scheme transformation music-album-transf.scm.
|
We brought the XML example into LAML by means of a helping script that parses, LAML converts, and pretty prints the document from the XML source written by Wallace and Runciman.
For a tutorial discussion of XML-in-LAML (and all the stuff illustrated above) please have a look at the appropriate part of the LAML tutorial.
If your browser will not present files with 'laml', 'scm', or 'dtd' extensions you should disable any special handling of these extensions on your system. In that way they are treated as pure text files.
Generated: November 14, 2011, 09:25:22