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]
Other format: [Raw text]

Re: MathML


On Sun, 24 Feb 2002, Steffen Maier wrote:

>I suppose the error message comes from parsing your docbook document so I
>think the undeclared namespace comes from using the wrong DTD. Did you
>use:
>
><!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook MathML Module V1.0//EN"
>  "http://www.docbook.org/xml/mathml/1.0/dbmathml.dtd";>

Hello,

I'm relatively new to docbook and XML. I manage to generate pdf file for
my article.xml file. I use openjade 1.3, OpenSP 1.3.4, docbook-dsssl-1.76.

I want to include math equation in my article. I changed doctype as you
suggested above. I had to change the file (1.0/dbmathml.dtd) itself by
exchanging URL references to local references (I've got URL not supported
error).

I did not manage to get equation below rendered in my text :
	<informalequation>
	<mml:math>
	  <mml:apply>
	    <mml:plus/>
	    <mml:cn>12345</mml:cn>
	    <mml:ci> x </mml:ci>
	    <mml:ci> y </mml:ci>
	  </mml:apply>
	</mml:math>
	</informalequation>

I just got 12345 x  y.

I've got also many warnings (?) like this one:
openjade:/imec/users/username/mathml/2.0/dtd/isomfrk.ent:28:30:E: "1D51E"
is not a character number in the document character set

Any idea how to get rid of these warnings and how to get sign plus
rendered?

thanks,
Radek

P.S. I also got one error below. I have lived with this one for a while,
but any suggestions, why do I get it, will be appreciated.

openjade:../docbook-dsssl-1.76/print/../lib/dblib.dsl:948:17:E: argument
out of range

>
>to activate the mathml-driver instead of using plain docbook DTD? See the
>comment at the beginning of mathml.dtd for further details.
>
>Furhtermore it seems to me as if MathML support in the modular xsl
>stylesheets is not fully implemented, at least for (x)html output format.
>A quick glance at the new db-xsl-1.49 showed no corresponding
>xsl:template. So you might need to add/replace something like the
>following to your stylesheet driver file:
>
><?xml version="1.0" encoding="iso-8859-1"?>
><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0";
>                xmlns:mml="http://www.w3.org/1998/Math/MathML";
>                exclude-result-prefixes="doc mml"
>                version='1.0'>
>
> <xsl:import
>href="whereever/your/stylesheets/are/located/html/docbook.xsl"/>
>
> <!-- MathML support can be so easy ;-) ... -->
> <xsl:template match="mml:math">
>   <xsl:copy-of select="."/>
> </xsl:template>
> <!-- end of MathML support. -->
>
></xsl:stylesheet>
>
>
>HTH,
>Steffen.
>
>--
>  http://w3studi.informatik.uni-stuttgart.de/~maiersn/
>mailto:Steffen.Maier@studserv.uni-stuttgart.de
>
>

----------------------------------------------
 Radoslaw Szymanek, Lic, MSc	             |
 Dept. of Computer Science (DataVetenskap)   |
 Lund University                             |
 Box 118, 221 00 LUND, SWEDEN                |
 tel. (work)  +46 46 22 24141                |
 tel. (mobil-Sweden) +46 70 5693756          |
 fax. +46 46 13 10 21                        |
 http://www.cs.lth.se/home/Radoslaw_Szymanek |
----------------------------------------------
Always look on the bright side of life.	     |
----------------------------------------------



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