On 04/29/2011 03:12 PM, Philippe Nobili wrote: > > This is more a question than a bug report since we already discussed > this matter together a couple of years ago, so there is nothing new here. > > Below our problem: > > Some XXE add-ons, noticeably the MathML support, requires an X11 > connection to work. This is of course OK for interactive sessions. > > But for our batch documentation generation system (we use convertdoc as > a batch conversion utility) which is designed to run nightly, it is a > real issue, since the compilation machines may have no X11 connection at > all, or even when they have, there is no active connections when cron > programs run. > > Is there some plan (or is it at all possible ?) to fix this issue in the > incriminated XXE add-ons in the future ? (needless to say, we cannot > just remove the add-on, since we have *a lot* of MathML in our technical > documentation). >
--> The add-on called "MathML support" allows to use XMLmind XML Editor to interactively create MathML equations. It can be used to convert MathML to graphic formats such as PNG. However, because the add-on called "JEuclid image toolkit plug-in" is better at this, it's not "MathML support" which is used for this task, it's "JEuclid image toolkit plug-in". More information here: http://www.xmlmind.com/xmleditor/addons_doc.html#mathml_config Therefore the answers to your questions are: * It does not make sense to modify the add-on called "MathML support" in order to make it work on headless machines, because this add-on is meant to be an interactive one. (Moreover it's almost certainly technically impossible to make the add-on called "MathML support" support headless machines.) * You don't need the "MathML support" add-on when converting a DocBook document containing MathML to other formats. You can safely uninstall it on your compilation machines. * You just need to have the following add-ons: - Apache FOP 1.x XSL-FO processor plug-in (for PDF) - XMLmind FO Converter XSL-FO processor plug-in (for RTF, OpenOffice, etc) - Apache Batik image toolkit plug-in - JEuclid image toolkit plug-in In our experience, all the add-ons other than "JEuclid image toolkit plug-in" run fine on headless machines (e.g. www.xmlmind.com). I don't know if it's the case for "JEuclid image toolkit plug-in", because we haven't tested that. You should give it a try. --> The workarounds for your problem do not necessarily involve convertdoc, XMLmind XML Editor and its add-ons. Two ideas (not tested by us): - Running convertdoc with -Djava.awt.headless=true See http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/ - Running Xvfb on your compilation machines. See http://en.wikipedia.org/wiki/Xvfb -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

