[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] Mathml and xslt
Well, the first paragraph states clearly: "The DocBook XSL stylesheets cannot format MathML content, but it will pass the markup through so that a downstream processor can format it. For XSL-FO output, the Antenna House XSL Formatter with the optional MathML module can handle MathML markup." Including MathML in a document and processing it with the DocBook XSL stylesheets is not sufficient. There needs to be a step in the toolchain that can format the MathML markup. Converting to an image is a preprocessor method, and using Antenna House's XSL Formatter with the optional MathML module is a postprocessor method. I wish it was easier. Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Mansour" <mansour77@yahoo.com> To: "Bob Stayton" <bobs@sagehill.net> Cc: <docbook@lists.oasis-open.org> Sent: Thursday, December 20, 2007 7:46 PM Subject: Re: [docbook] Mathml and xslt > Bob, thank you for replying. > I don't think this will help. I can not convert the math to image and > include it. I have tried the code on the page you gave to me and put it in > this file: > <?xml version="1.0" encoding="utf-8"?> > <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" > > "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" > [ > <!ENTITY % MATHML.prefixed "INCLUDE"> > <!ENTITY % MATHML.prefix "mml"> > <!ENTITY % equation.content "(alt?, (graphic+|mediaobject+|mml:math))"> > <!ENTITY % inlineequation.content > "(alt?, (inlinegraphic+|inlinemediaobject+|mml:math))"> > <!ENTITY % mathml PUBLIC "-//W3C//DTD MathML 2.0//EN" > "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd"> > %mathml; > ]> > <book> > <chapter> > <para> Testing MathML > <equation> > <title>My MathML example</title> > <mml:math> > <mml:mrow> > <mml:mo>∑</mml:mo> > <mml:mn>4</mml:mn> > <mml:mo>+</mml:mo> > <mml:mi>x</mml:mi> > </mml:mrow> > </mml:math> > </equation> > </para> > > </chapter> > > </book> > > > > Still the pdf I am getting has no math. > > > > > Bob Stayton wrote: >> If you are using DocBook XSL to produce your output, you might start with >> this section in my book about MathML: >> >> http://www.sagehill.net/docbookxsl/MathML.html >> >> Bob Stayton >> Sagehill Enterprises >> bobs@sagehill.net >> >> >> ----- Original Message ----- From: "Mansour" <mansour77@yahoo.com> >> To: <docbook@lists.oasis-open.org> >> Sent: Sunday, December 16, 2007 11:19 PM >> Subject: [docbook] Mathml and xslt >> >> >>> I am using xalan and I need to use mathml in my document. It modular >>> document that consist of few other chunks. I am not able to successfully >>> produce the pdf output. When I try I get the document but the equation >>> is not there. >>> How can I get this equation to appear? >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org >>> For additional commands, e-mail: docbook-help@lists.oasis-open.org >>> >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org >> For additional commands, e-mail: docbook-help@lists.oasis-open.org >> >> > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]