BTW, note that if you envision putting your Content Markup on the web,
you might as well use "Parallel Markup", i.e., both Presentation Markup
*and* Content Markup, using the <semantics> tag. For example, x^2 would be:
<math display="inline"
xmlns="http://www.w3.org/1998/Math/MathML">
<semantics>
<!-- first child: Presentation Markup that you want -->
<msup>
<mi>x</mi>
<mn>2</mn>
</msup>
<!-- second child: Content Markup that you want -->
<annotation-xml encoding="MathML-Content">
<apply>
<power/>
<ci>x</ci>
<cn>2</cn>
</apply>
</annotation-xml>
</semantics>
</math>
This has a number of advantages:
- spec-compliant (it works out-of-the-box and saves you from any trick)
- self-contained (you don't have external dependencies that you also
have to keep up-to-date).
- full-control (you decide the look and can tune as you prefer)
- future-proof (it won't break due to a mixup of versions or some such,
re:dependencies).
The downside is the extra size, but MathML is already verbose anyway.
And judging from real sites that use Parallel Markup, the tradeoff seems
worth the extra, e.g., http://cnx.rice.edu/content/m10276/latest/
---
RBS
Post by f***@gmail.comAny CSS stylesheet into my xhtml I can include to provide some basic
rendering for content elements in MathML with Mozilla?
I am not working on presentation issue now so I will stick my
information with content element only. But it will be nice if I can
display those content information in the browser in some meaningful
(not necessary good looking) way ...
Frank Tang
_______________________________________________
Mozilla-mathml mailing list
http://mail.mozilla.org/listinfo/mozilla-mathml