[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] include MathML files with the help of XSL
Content of the transformation XSL file: (PDF_MathML.xsl)
And then a bunch of MathML files not found:
Ideas appreciated
Here is the result of "dynamically include MathML files with the help of XSLT when generating HTML files":
Test setup:
- DocBook v4.4 files with equation, inlineequation and informalequation tags, where every equatin has an id
- MathML files has the same name as the equations id's
- DocBook XSLT files v1.77.1 (http://sourceforge.net/projects/docbook/files/docbook-xsl/1.77.1/docbook-xsl-1.77.1.zip/download)
Content of the transformation XSL file:
<?xml version="1.0" encoding="utf-8"?><xsl:import href="">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8" indent="yes" />
I used Saxon 6.5.5 (http://sourceforge.net/projects/saxon/files/saxon6/6.5.5/saxon6-5-5.zip/download) as an XSLT 1.0 processor. (XSLT 2.0 processors gave errors with DocBook v1.77.1)
The following command was used:
java -jar saxon.jar -o output.html DSP_DocBook_v44_v0.45.xml HTML5_MathML.xsl
The resulting html file contains the MathML equations and in FireFox they look great.
This solution is not perfect (lacks differrences of equation types), but it works and is a good starting point for further development.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]