Discussion:
css trick to provide basic rendering of 'content elements' ?
(too old to reply)
f***@gmail.com
2005-02-18 15:12:42 UTC
Permalink
Any 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
David Carlisle
2005-02-18 16:30:46 UTC
Permalink
Post by f***@gmail.com
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 ...
http://www.dcarlisle.demon.co.uk/operac1.xml

does exactly that although as you see by the name the css is somewhat
tuned to opera.

In mozilla you'll get better rendering by using XSL (mathml.xsl)
as in
http://www.w3.org/Math/XSL

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
Roger B. Sidje
2005-02-21 03:09:17 UTC
Permalink
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.com
Any 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
Loading...