XSL Stylesheets for OMDoc

As OMDoc is an XML application, we can use the XSL(T) style sheet language for transforming OMDoc documents into other formats.

We have used style sheets primarily for transforming OMDoc input for presentation (for human consumption) and for machine consumption.

As mathematics heavily relies on notational conventions for symbols and expressions, these style sheets should be augmented by templates that can be generated specifically for the source document to get good results. OMDoc provides a common architecture for this, which we have used in the examples on this page.

Stylesheets for presenting OMDoc Documents to humans

(based on omdoc2share.xsl.

Stylesheets for transforming them into machine prover input

The XML source can be transformed to HTML by the command:

 saxon -o ida.html ida.xml omdoc2html.xsl

This command line produces the HTML document that you can view using Mozilla for the interactivity. Similarly, a LaTeX document can be generated using a different stylesheet:

saxon -o ida.tex ida.xml omdoc2tex.xsl

(Here are the Postscript generated from LaTeX, and the OMDoc).

© 2006 Copyrights KWARC. | XHTML 1.0 | CSS | Page generated from XML sources with the WSML package