pmathmlcss.xsl
Presentation MathML Stylesheet
This stylesheet transforms Presentation MathML to XHTML + CSS + Javascript, so rendering MathML (to somewhat variable quality) in a standard HTML browser without any extra plugin. In addition to its use as a fall back option in these client side transformations, this stylesheet could be used as a server based transformation to produce something acceptable on browsers without any XSLT or MathML support. (Currently the javascript has a Microsoft Bias, but this can hopefully be removed in future versions.)
Author:
ibirrer (modified by antonysigma :P)
Copyright:
Copyright David Carlisle 2001, 2002.
Use and distribution of this code are permitted under the terms of the W3C Software Notice and License.
CVS Id:
pmathmlcss.xsl,v 1.1 2002/03/20 12:20:57 mf Exp
Match Templates Summary
Handling of mathvariant attribute
Handling of mathvariant attribute
Handling of mathvariant attribute
Handling of mathvariant attribute
Handling of mathvariant attribute
Handling of mathvariant attribute
Handling of mathvariant attribute
Handling of mathvariant attribute
Handling of mathvariant attribute
No short description available
yellow background when moveover, restore when mouseout
Display comment in the status line when mouseover
No short description available
No short description available
No short description available
No short description available
No short description available
No short description available
No short description available
No short description available
munderover
Named Templates Summary
No short description available
Variables Detail
Dictionary
The following elements in the x: namespace form an
implementation of an "Operator Dictionary" for this MathML
Implementation. In the case of stretch operators, the element
specifies the symbol parts via the latin-1 equivalent character based
on the encoding in the symbol font. It is a clear "failure to comply
to the spec" that using latin 1 characters (or numeric character
references) in the latin 1 range access glyphs in teh symbol font via
font position, however most of these character parts are not in
Unicode (until 3.2), so there is no standard way to access these characters.
Match Templates Detail
Handling of mathvariant attribute
The choice of font families here (currently) avoids math-specific
fonts but does use several fionts coming with windows 9.x and/or
office 2000.
Attributes:
style: font-weight: bold; font-style: upright
Handling of mathvariant attribute
The choice of font families here (currently) avoids math-specific
fonts but does use several fionts coming with windows 9.x and/or
office 2000.
Attributes:
style: font-style: upright; font-weight: bold; font-style: italic;
Handling of mathvariant attribute
The choice of font families here (currently) avoids math-specific
fonts but does use several fionts coming with windows 9.x and/or
office 2000.
Attributes:
style: font-family: sans-serif; font-weight: bold;
Handling of mathvariant attribute
The choice of font families here (currently) avoids math-specific
fonts but does use several fionts coming with windows 9.x and/or
office 2000.
Attributes:
class: doublestruck
Handling of mathvariant attribute
The choice of font families here (currently) avoids math-specific
fonts but does use several fionts coming with windows 9.x and/or
office 2000.
Attributes:
style: font-family: old english text mt
class:
Handling of mathvariant attribute
The choice of font families here (currently) avoids math-specific
fonts but does use several fionts coming with windows 9.x and/or
office 2000.
Attributes:
style: font-style: italic;
Handling of mathvariant attribute
The choice of font families here (currently) avoids math-specific
fonts but does use several fionts coming with windows 9.x and/or
office 2000.
Attributes:
style: font-family: monospace;
Handling of mathvariant attribute
The choice of font families here (currently) avoids math-specific
fonts but does use several fionts coming with windows 9.x and/or
office 2000.
Attributes:
style: font-family: sans-serif;
Handling of mathvariant attribute
The choice of font families here (currently) avoids math-specific
fonts but does use several fionts coming with windows 9.x and/or
office 2000.
Attributes:
style: font-family: brush script mt italic
class:
HTML elements
XHTML elements get passed straight through, sans namespace prefix.
Head element
Template for the head element copies the original content, and in
addition adds a script element and CSS style element that implement
the core of the MathML renderer.
Unimplemented MathML elements
Unimplemented MathML elements get copied literally, in red, mainly as
a debugging aid.
No short description available
Parameters:
x -
yellow background when moveover, restore when mouseout
Display comment in the status line when mouseover
No short description available
No short description available
No short description available
No short description available
No short description available
No short description available
mglyph
Uses disable output escaping to construct a numeric
character reference. Uses IE's non conforming behaviour of using this
number to access the font encoding rather than unicode.
mi
Set default font based on string length, otherwise behaviour based
on entries in the operator dictionary if one exists, or content is
copied through to the output unchanged.
No short description available
mo
Generate a unique ID so that a script at the end of any
surrounding mrow may replace the conent by a suitably stretched
operator if need be.
No short description available
munderover
Named Templates Detail
No short description available
Parameters:
x -