PS: Is Docbook 5 not conforming to a dtd? In Docbook 5 the MathML is properly rendered. Or does Docbook conform to a schema? I cannot recognize this in the header of docbook5-sample.xml
> -----Urspr?ngliche Nachricht----- > Von: Hussein Shafie [mailto:hussein at xmlmind.com] > Gesendet: Dienstag, 10. Juni 2008 18:44 > An: Thomas Dumm > Cc: xmleditor-support at xmlmind.com > Betreff: Re: AW: [XXE] Question conerning MathML & Jeuclid > > Thomas Dumm wrote: > > Dreas Mr. Shafie, > > > > Thank you! I did not succeed completely: > > > > 1) I see the message "MathML Here!" when using your first > suggestion. > > So the code in the css-file is read/active. > > 2) I see an icon "unknwn document format" instead of the > equation when > > using your secong suggestion. (see screenshots) > > > > Does this mean anything to you? It looks as if the JEuclid > package is > > not recognized when the MathML code is met by the processor? > > > > Well, after reading the code of the JEuclid add-on (which, > like JEuclid, is Open Source: the .java source file + > build.xml are both included in jeuclid_imagetoolkit.zip), I > found this code: > > --- > private static final Name MATH = > Name.get(Namespace.MATHML, "math"); > > ... > > public ImageRenderer getImageRenderer(Element element) { > if (element.getName() != MATH) > return null; > > return new MathMLImageRenderer(/*isODF*/ false); > } > --- > > In practice, this means that for JEuclid to be used, your > document must embed a > {http://www.w3.org/1998/Math/MathML}math element. > Unfortunately, using XXE v3.8, your document looks as if it > embedded a {}m:math element (because XXE v3.8 is not > namespace-aware for documents conforming to DTDs). > > Solving this problem would require modifying the JEuclid > add-on (not JEuclid itself, just the add-on which is a very > thin layer: ~300lines). > -------------- next part -------------- A non-text attachment was scrubbed... Name: noteworthy_elements.xml Type: text/xml Size: 44473 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080610/e454575e/attachment.xml -------------- next part -------------- A non-text attachment was scrubbed... Name: docbook5-sample.xml Type: text/xml Size: 3565 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080610/e454575e/attachment-0001.xml