[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Entities in Presentation MathML Making their Way Into SVG


Subject: [xsl] Entities in Presentation MathML Making their Way Into SVG
From: B K Partridge <derangedwombat@xxxxxxxxx>
Date: Wed, 27 Aug 2003 08:13:59 -0700 (PDT)

Greetings,

I've got a combination XHTML/Presentation MathML XML
document, that I'm pushing through Custard to get SVG
files.  The processing fails part of the way through,
but it is still managing to generate about 40 files. 
The problem is, some of the Presentation MathML in my
document is "non standard" (ie: it sort of "hackily"
represents math concepts that MathML doesn't cover)
and contains entities. For example:

Content MathMLish Block:

<our:math>
  <apply>
    <ci>tan</ci>
    <apply>
      <ci>-multi-times-in</ci>
      <cn>30</cn>
      <ci>deg</ci>
    </apply>
  </apply>
</our:math>

Corresponding Presentation MathML Block:

<mml:math mode="display"
xmlns:mml="http://www.w3.org/1998/Math/MathML">
  <mml:mrow>
    <mml:mi>tan</mml:mi>
    <mml:mo>&amp;ApplyFunction;</mml:mo>
    <mml:fenced>
      <mml:mrow>
        <mml:mn>30</mml:mn>
        <mml:mo>&amp;&middot;</mml:mo>
        <mml:mi>deg</mml:mi>
      </mml:mrow>
    </mml:fenced>
  </mml:mrow>
</mml:math>


When I run this through custard, I get a file with
some right stuff, but the entities don't resolve.  Any
suggestions how I can get this:

tan&ApplyFunction;(30 &middot; deg)

to look more like this?

tan(30*deg)

(the * should be a dot of course, but I can't do it in
email)

Many, many thanks in advance for any advice ...

Kyle



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords