This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

re: 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">&lt;mml:math&gt;</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

------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-request@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]