[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: re: DOCBOOK: MathML support
> XSLT stylesheet pass MathML code directly to generated HTML or FO > result. .. and FO processor which supports MathML (e.g. PassiveTeX) you will get > equations shown in browser and printed on paper. I've tried Xalan-J: >java -cp lib/java/bsf-2.0.1.jar:~/lib/java/bsfengines.jar:~/lib/java/xerces-1.3.0.jar:~/lib/java/xalan-1.2.2.jar org.apache.xalan.xslt.Process -IN mathmlexample.xml -XSL /usr/lib/sgml/stylesheet/xsl/docbook/nwalsh/xhtml/docbook.xsl ========= Parsing file:/usr/lib/sgml/stylesheet/xsl/docbook/nwalsh/xhtml/docbook.xsl ========== Parse of file:/usr/lib/sgml/stylesheet/xsl/docbook/nwalsh/xhtml/docbook.xsl took 165653 milliseconds========= Parsing file:/home/egonw/data/Universiteit/stage/verslag/mathmlexample.xml ========== Parser error: The namespace prefix "mml" was not declared. Parser error: The namespace prefix "mml" was not declared. Parser error: The namespace prefix "mml" was not declared. Parse of file:/home/egonw/data/Universiteit/stage/verslag/mathmlexample.xml took 46808 milliseconds ============================= Transforming... No template matches mml:math. No template matches mml:apply. No template matches mml:divide. <?xml version="1.0" encoding="ISO-8859-1"?> <html><head><title>Book Title</title><meta content="DocBook XSL Stylesheets V1.29" name="generator"/></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div id="N12a6" class="book"><div class="titlepage"><div> <h1 class="title"><a name="N12a6"/>Book Title</h1></div><hr/></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt>1. <a href="#N12ab">Chapter Title</a></dt></dl></div><div class="chapter" id="N12ab"><div class="titlepage"><div><h2 class="title" .. ... ... </html> transform took 8454 milliseconds XSLProcessor: done In other words... no success: <font color="red"><mml:math></font> There seem to be two problems. 1. The example from Norman's website is not valid (The namespace prefix "mml" was not declared.) 2. i am not using the correct XSLT stylesheets (1.29 = current stable) Is this the correct way to process DocBook XML with MathML fragments? Could someone give me a working setup? (I plan to write up the conclusions, and make it an article onL inuxFocus...) Egon
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC