Dear Mr Shafie,

I looked around a little more. To me it looks as if the redering of the
MathML works fine with dtds if the MathML is contained in an external .mml
file and not directly in the xml file. I have attached a sample from the
Jeuclid-add-on folder. The xml file contains twice the same equation. The
first equation is referenced in an .mml file an is correctly rendered, the
second is directly embedded in the xml and is not rendered. Does this
information help you with identification of problem/solution?
 
Kindest regards
Thomas


> -----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: mathSample1.mml
Type: application/octet-stream
Size: 224 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080611/59fc08a0/attachment.dll
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MathML_Sample.xml
Type: text/xml
Size: 832 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080611/59fc08a0/attachment.xml
 

Reply via email to