Universal MathML Stylesheet

I would like to get your comments on the following idea
to extend the universal MathML stylesheet:

Extending the modes:
 -Native rendering (Mozilla,..)
 -TechExplorer rendering
 -MathPlayer rendering
 -CSS rendering

by a additional mode where images are used.
in that case the stylesheet would replace any math node, that
has an  "altimg" attribute  with an <img> element.

Example:          

    <math xmlns="http://www.w3.org/1998/Math/MathML"
          altimg="images/MathML_01.jpg" 
          height="36" 
          baseline="21" 
          display="block">
      <mi>Y</mi>
      <mo>=</mo>
      <mi>X</mi>
    </math>            
    
    will be replaced by:


    <img src="images/MathML_01.jpg" style="border:0;vertical-align:-17px"  alt="MathML_01"/>
    

(Calculating the value for "vertical-align" (relative vertical shift) out of "height" and "baseline" 
is needed for aligning the math image with the text base line)
  

Thanks



Bernhard Keil
mailto:Bernhard.Keil@soft4science.com

-------------------------------------------------------------
soft4science             Bernhard Keil
Nibelungenstr. 4        80639 Munich       Germany
+49 89 / 95 411 088  http://www.soft4science.com  
+49 173 / 72 53 669  http://www.MathML.net



-----Original Message-----
From: www-math-request@w3.org [mailto:www-math-request@w3.org]On Behalf
Of Tim Bagot
Sent: Thursday, May 15, 2003 9:33 AM
To: www-math@w3.org
Cc: Geoff Leach
Subject: Re: Embedding mathml by reference



At 2003-05-15T15:00+1000, Geoff Leach wrote:-

> I'm looking at preparing documents using MathML+SVG+XHTML (and also
> using DocBook and translating). SVG can be embedded in XHTML documents
> either inline or by reference (using the img element). But from what I
> can see MathML can only be inline embedded in XHTML.

There's no reason MathML can't be referenced by an object element, apart
from the lack of a MIME type more appropriate than application/xml.


Tim Bagot

Received on Tuesday, 20 May 2003 04:03:25 UTC