OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[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 

org.apache.xalan.xslt.Process -IN mathmlexample.xml -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
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" .. 
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...)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC