XSLT

XSL
XSL is an XML language used to specify transformations of XML files. It consists of a set of templates each of which corresponds to one case in the recursive definition of the transformation function.

XSL for OMDoc
Our XSL scripts are in [/xsl] and [/xsl2].

There are several examples that generate other formats from an OMDoc document.

Two files are of special relevance. expres.xsl extracts presentation elements from an OMDoc document and transforms them into XSL templates. exincl.xsl should be called with the parameter self=[file] where [file] is the file generated by expres.xsl. exincl.xsl creates an xsl file that includes all XSL necessary files.

Porting from 1.0 to 2.0

 * func:function -> xsl:function
 * must pass focus as argument, if function performs node selections, key, id, ...
 * func:result -> xsl:sequence
 * set:distinct -> fn:distinct-values (only for values, for nodes see example)
 * exsl:node-set no longer necessary