Generated: Monday, November 14, 2011, 09:25:22Copyright © 2006, Kurt NÝrmarkThe local LAML software home page

An LP/CD album example

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.

ExampleDTDSchemeLAMLHTML
The album XML DTDalbum.dtd---
The DTD parsing script--album-parser.laml-
The XML-in-LAML mirroring script--make-mirror.laml-
The auto-generated Scheme mirror of the album DTD-album-mirror.scm--
The example XML-in-LAML album document and tranformation program-music-album-transf.scmalbum-ex.lamlalbum-ex.html
The example XML-in-LAML album document and tranformation program-music-album-transf.scmshort-album-ex.lamlshort-album-ex.html

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.

Transformation example index. 

 

Generated: November 14, 2011, 09:25:22