Am Montag, den 03.12.2007, 17:35 -0700 schrieb Gordon Haverland:

> In the past I've managed to shoehorn DocBook into doing MathML and 
> DocBook into dong SVG.  And outside of DocBook-5 based stuff, it
> still doesn't look like any of this is easy.  (By the way, when is 
> DocBook-5 making its way into Debian?)

When it will be officially released, which will be very soon.

> Anyway, I got restarted on an old project, which required MathML and SVG 
> in DocBook.  I could not make this work using the dbmathml DTD,

What exactly failed? What's the expected result? Can you provide a
demo/testcase?

I'm wondering a bit. The dbmathml DTD is part of docbook-mathml, but you
report your problem against docbook-xml.

> I had to go back to the docbookx DTD.  What works is:
> 
> <?xml version="1.0" standalone="no"?>
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
>           "http://www.oasis-open.org/docbook/xml/4.4/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;
> ]
> >
> ...
>           <mml:math>
>               <mml:mfrac>
>                 <mml:mn>1</mml:mn>
>                 <mml:mn>1</mml:mn>
>               </mml:mfrac>
>               <mml:mo>=</mml:mo>
>               <mml:mfrac>
>                 <mml:mn>2</mml:mn>
>                 <mml:mn>2</mml:mn>
>               </mml:mfrac>
>           </mml:math>
> ...
>         <mediaobject>
>           <imageobject>
>             <imagedata format="SVG" fileref="house.svg"/>
>         </imageobject>
>       </mediaobject>
> 
> I could not find a way to actually put SVG into the DocBook-XML source.  
> But perhaps a file could get added to the documentation telling people 
> how to do this magic in DocBook-4.x?

"DocBook - The definitive guide" contains some information about this
topic. There is further a docbook-apps mailing list for such topics
(mentioned in the README.Debian). What exactly do you expect from me?
Maybe you could give some more information, because atm I don't know,
how I should help here.

Regards, Daniel




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to