Generated: June 19, 2002, 23:24:17 Copyright © 2002 , Kurt Nørmark The local LAML software home page

Overview of SVG1.0 examples - with partial validation

The examples in this directory illustrates the SVG1.0 mirror in LAML.

The SVG1.0 mirror is based on XML-in-LAML. This means that the mirror is produced from the SVG1.0 DTD, which derives a SVG dependent Scheme file with the mirror functions of the SVG elements. It also means that the mirror depends on a generic XML-in-LAML library. In the current version, only half of the element mirror functions do content validation. All SVG attributes are checked, however.

In order to see the SVG files generated by the mirror, you must have an SVG plugin, such as Adobe's SVG Viewer.

As of now the examples are rather primitive and premature. We expect to come up with more interesting examples, which illustrate the power of mixing Scheme and SVG, at a later point in time.

The following simple examples exist in this directory:

Example LAML SVG
First Example first-example.laml first-example.svg
Second Example second-example.laml second-example.svg
Spiral Example spiral.laml spiral.svg
Hilbert Example hilbert.laml hilbert.svg

The first example was produced by parsing an svg file with the LAML procedure xml-parse. Next we procedure parse-tree-to-laml to make a LAML document. This may seem a little weird: We go from SVG over LAML to produce SVG again. Of course, the intension is to gain some flexibility by being able to use Scheme side by side with SVG. Future examples will illustrate this.

If your browser will not present files with 'laml' or 'scm' extensions you should disable any special handling of these extensions on your system. In that way they are treated as pure text files.  

 

Generated: June 19, 2002, 23:24:17