W3C home > Mailing lists > Public > www-math@w3.org > March 2003

Extending ctop.xsl and pmathmlcss.xsl

From: Reece Dunn <msclrhd@hotmail.com>
Date: Tue, 25 Mar 2003 12:10:32 +0000
To: www-math@w3.org
Message-ID: <F40dz3QfyMZhrOTvmRa0000a1fa@hotmail.com>
I have been working on improving the work that David Carlisle has done for a 
while now. A part of that has been shown in the "Adding unicode mappings to 
any document" thread. I have also changed the way that some of the ctop.xsl 
elements are rendreed.

The most noticable changes are in when handling presentation markup. The 
scheme currently implemented is to convert the markup into an intermediary 
form, splitting the style attribute into several attributes, e.g.
   style = "font-family: Verdena; font-size: 10pt;"
is converted to
   font-family = "Verdena" font-size = "10pt"

This then makes it easier to inherit these attributes, thus getting around 
the problem that in IE6 the table/tr/td element does not inherit from the 
surrounding object (don't know if this is a bug or not, but my method is 
necessary to ensure that styling is inherited properly in MathML markup).

All references to entities is in unicode form, using the unicode mappings to 
get the right display, or whatever mechanism is used.

There are many more improvements, like the use of pure XSLT+CSS+HTML: I do 
not use JavaScript or generate-id in the implementation that I am using and 
still get decent results.

My version is not without its bugs: I need to fix the mglyph element; the 
stretched operators are not fully joined (does anyone know how to fix 
this?). I am working on fixing these, working on improving the documentation 
and the differences between mine and the David Carlisle implementation, and 
pulling the different files back into 4 files (for content markup, 
presentation markup, the intermediary markup and one that will pull all that 

I also aim to reduce the number of places where I use Microsoft-specific 
features/bugs, documenting them where I can.


It's fast, it's easy and it's free. Get MSN Messenger today! 

Received on Tuesday, 25 March 2003 07:10:40 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:27:33 UTC