Guile Present

(present svg)

Overview

Routines to transform SXML documents from the presentation vocabulary into SVG.

The code in this file was originally presented in Andy Wingo's 2007 paper, Applications of fold to XML transformation.

Usage

presentation->svg presentation
[Function]

Convert an SXML document in the presentation vocabulary to a multi-layered SVG.

The result will still be a document in SXML format, so if you want to write it to disk, use sxml->xml. See (sxml simple), for more information.

The resulting SVG will be written with annotations readable by Inkscape, a vector graphics editor, which help to make the SVG easily editable. If your toolchain does not understand namespaces, you might want to filter out elements that start with sodipodi:, xmlns:, and inkscape:.