[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] MathML and DocBook problems
Ron, I am not sure you can order the statements in your DTD that way (no, I don't know why). The following post may be of use to you: http://lists.oasis-open.org/archives/docbook-apps/200603/msg00043.html I don't know how to make a MML+XI+DB DTD work beyond DocBook version V4.3. If you get that working, please let me (or the entire list?) know. Also, I would be interested in hearing how your XEP pdf writing experience turns out (and if it's not too much information to ask - how much it cost). Disclaimer: I don't use oxygen - I use nxml mode for emacs. What tool are you using to write math? I have done some math stuff here (unfinished): http://chris.chiasson.name/Engineering_Optimization/ Sorry if I asked for more information than I gave. Feel free to ignore the requests. Good luck, On 3/18/06, Ron Catterall <ron@catterall.net> wrote: > Hi > > Can anyone help me get MML working? Below is a simple example. > > And a question, will XEP 4.5 format MML in PDF output? > > I have followed the recipe in Bob's book, pp.327-329, but when I try > to validate, all I get is a set of errors like: > "Element type "mml:math must be declared" (one for each of the MML entities.) > This messages are all associated with the file Mich3.xml. > It looks to me like I might need something else in xinclude.mod > > Many thanks > > Ron > > file mml_example.xml > ====================== > <?xml version="1.0" encoding="UTF-8" ?> > <!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" > "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" > [ > <!ENTITY % local_adds SYSTEM > "/Library/WebServer/Documents/_XML/_DocBook/local_adds.dtd" > > %local_adds; > ]> > <appendix id="DT_App_FIT" lang="EN"> > <title> Fit of Growth Functions to Success Rate Data</title> > <xi:include href="Mich3.xml" xmlns:xi="http://www.w3.org/2001/XInclude" /> > </appendix> > > file local_adds.dtd > =================== > <!ENTITY % xinclude SYSTEM > "/Applications/Utilities/oxygen/7.1/oxygen/frameworks/docbook/dtd/xinclude.mod" > > %xinclude; > <!ENTITY % MATHML.prefixed "INCLUDE"> > <!ENTITY % MATHML.prefix "mml"> > <!ENTITY % equation.content "(alt?, (graphic+|mediaobject+|mml:math))"> > <!ENTITY % inlineequation.content "(alt?, > (graphic+|inlinemediaobject+|mml:math|xi:include))"> > <!ENTITY % mathml PUBLIC "-//W3C//DTD MathML 2.0//EN" > "http://www.w3.org/TR/MathML2/dtd/mathml2.dtd"> > %mathml; > > file xinclude.mod > ================= > <!ELEMENT xi:include (xi:fallback?) > > <!ATTLIST xi:include > xmlns:xi CDATA #FIXED "http://www.w3.org/2001/XInclude" > href CDATA #REQUIRED > parse (xml|text) "xml" > xpointer CDATA #IMPLIED > encoding CDATA #IMPLIED > accept CDATA #IMPLIED > accept-charset CDATA #IMPLIED > accept-language CDATA #IMPLIED > > <!ELEMENT xi:fallback ANY > > <!ATTLIST xi:fallback > xmlns:xi CDATA #FIXED "http://www.w3.org/2001/XInclude" > > <!ENTITY % local.preface.class "| xi:include" > > <!ENTITY % local.part.class "| xi:include" > > <!ENTITY % local.chapter.class "| xi:include" > > <!ENTITY % local.divcomponent.mix "| xi:include" > > <!ENTITY % local.para.char.mix "| xi:include" > > <!ENTITY % local.info.class "| xi:include" > > <!ENTITY % local.common.attrib "xml:base CDATA #IMPLIED > xmlns:xi CDATA #FIXED > 'http://www.w3.org/2001/XInclude'" > > > file Mich3.xml > ============== > <?xml version="1.0" encoding="UTF-8" ?> > <!DOCTYPE mml:math PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" > "http://www.w3.org/TR/MathML/dtd/mathml2.dtd" > [ > <!ENTITY % MATHML.prefixed "INCLUDE"> > <!ENTITY % MATHML.prefix "mml"> > ]> > <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="mymath" > display="block"> > <mml:semantics> > > <mml:mrow> > <mml:mi>y</mml:mi><mml:mo>=</mml:mo> > > <mml:mfrac> > > <mml:mrow> > <mml:msub> > <mml:mi>W</mml:mi> > <mml:mi>f</mml:mi> > </mml:msub> > <mml:msup> > <mml:mi>x</mml:mi> > <mml:mi>c</mml:mi> > </mml:msup> > </mml:mrow> > > <mml:mrow> > <mml:mo stretchy='false'>(</mml:mo> > <mml:msup> > <mml:mi>K</mml:mi> > <mml:mi>c</mml:mi> > </mml:msup> > <mml:mo>+</mml:mo> > <mml:msup> > <mml:mi>x</mml:mi> > <mml:mi>c</mml:mi> > </mml:msup> > <mml:mo stretchy='false'>)</mml:mo> > </mml:mrow> > > </mml:mfrac> > > </mml:mrow> > > </mml:semantics> > </mml:math> > > -- > Ron Catterall, Phd, DSc email: ron@catterall.net > Prolongacion de Hidalgo 140 http://catterall.net/ > San Felipe del Agua tel: +52 951 520 1821 > Oaxaca 68020 Mexico fax: +1 530 348 8309 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > -- http://chris.chiasson.name/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]