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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

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


Subject: Re: [docbook-apps] db5: 1] Admon graphics in fo output + 2] MathML


Hi Bruno,
1] Can you provide an error message regarding the admon graphics?
Can you peek inside your FO file to see what attributes the 
fo:external-graphic element in an admon has?  Does the path shown there 
lead to the image file on your system (relative to the FO file)?

Regarding RNG validation, the howto.xml file is valid with respect to 
DocBook 5b9, according to Oxygen's RNG validation.   I have not been able 
to validate the howto.xml file with xmllint.  It reports errors that are 
not there in the file or the schema.

2]  It looks like you expect FOP to natively process MathML, but I don't 
think it has that capability.  Most people convert their MathML to a vector 
graphic like SVG and use a mediaobject to reference it.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Bruno GUEGAN" <bruno_guegan@yahoo.fr>
To: "DocBook Apps Mailing List" <docbook-apps@lists.oasis-open.org>
Sent: Saturday, November 18, 2006 2:01 AM
Subject: [docbook-apps] db5: 1] Admon graphics in fo output + 2] MathML


Hello,

1] Admon graphics in fo output (no solutions in docbook-xsl-1.71.1 OR
docbook5ns-xsl-1.71.0) :
db5: Admon graphics FAILED, thanks a lot for your answers but it's don't 
work
(full path or good path before doing a fo file) ...

So, i test with the file : howto.xml (docbook-5.0b9/docs/howto.xml), but it 
y
already of the errors of validation :
xmllint --noout --relaxng ../libs/docbook-5.0b9/custom_rng.rng howto.xml

howto.xml:8: element article: Relax-NG validity error : Expecting element 
set,
got article
howto.xml:9: element info: Relax-NG validity error : Expecting an element
abstract, got nothing
howto.xml:31: element note: Relax-NG validity error : Did not expect 
element
note there
howto.xml:32: element para: Relax-NG validity error : Element article has
extra content: para
howto.xml:8: element article: Relax-NG validity error : Did not expect 
element
article there
howto.xml fails to validate

=> howto.xml line 8 :
version="5.0" xml:lang="fr" >

I wonder whether there is not a bond with the admon ?
Have you an idea ?


2] MathML, fop 0.92 :
ant all
[echo] Jimi Support NOT Present
     [echo] JAI Support PRESENT
     [echo] JCE Support PRESENT
     [echo] JUnit Support PRESENT
     [echo] XMLUnit Support PRESENT

=> When i use it :
18 nov. 2006 13:54:56 org.apache.fop.fo.ElementMappingRegistry findFOMaker
ATTENTION: Unknown formatting object 
http://www.w3.org/1998/Math/MathML^math
18 nov. 2006 13:54:56 org.apache.fop.fo.ElementMappingRegistry findFOMaker
ATTENTION: Unknown formatting object 
http://www.w3.org/1998/Math/MathML^mrow
18 nov. 2006 13:54:56 org.apache.fop.fo.ElementMappingRegistry findFOMaker

In my xml docbook file :
<?xml version="1.0" encoding="utf-8"?>  <!-- -*- nxml -*- -->
<!DOCTYPE article [
<!ENTITY version "5.0b8">
]>
<article xmlns="http://docbook.org/ns/docbook";
         xmlns:xl="http://www.w3.org/1999/xlink";
         xmlns:mml="http://www.w3.org/1998/Math/MathML";
version="5.0" xml:lang="fr" >
....
....
....

<para>
<informalequation>
    <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML";>
    <mml:mrow>
      <mml:mi>A</mml:mi>
      <mml:mo>=</mml:mo>
      <mml:mfenced open="[" close="]">
        <mml:mtable><!-- table or matrix -->
          <mml:mtr> <!-- row in a table  -->
             <mml:mtd><mml:mi>x</mml:mi></mml:mtd><!-- table -->
             <mml:mtd><mml:mi>y</mml:mi></mml:mtd><!-- entry -->
          </mml:mtr>
          <mml:mtr>
             <mml:mtd><mml:mi>z</mml:mi></mml:mtd>
             <mml:mtd><mml:mi>w</mml:mi></mml:mtd>
          </mml:mtr>
        </mml:mtable>
      </mml:mfenced>
     </mml:mrow>
    <mml:mtext>.</mml:mtext>
    </mml:math>
</informalequation>
</para>

=> In my pdf output : no the mathematical equation
Have you an idea ?

Best regards,
Bruno

PS :
My config :
----------------
XML_CATALOG_FILES="/etc/xml/catalog ../libs/docbook-5.0b9/catalog.xml 
../libs/docbook5ns-xsl-1.71.0/catalog.xml"
I use : fop (SVN Trunk)

xsltproc -V
Using libxml 20626-CVS2819, libxslt 10117-CVS1065 and libexslt 813-CVS1065
xsltproc was compiled against libxml 20626, libxslt 10117 and libexslt 813
libxslt 10117 was compiled against libxml 20626
libexslt 813 was compiled against libxml 20626

-- 
Ainsi toute connaissance humaine commence avec des intuitions, passe de là 
aux
concepts et s'achève avec les idées.
Emmanuel Kant

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org






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