OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: DOCBOOK-APPS: MathPlayer customization layer



Hi all,

I needed a way to display MathML in as much IE versions as possible 
(actually in htmlhelp, but that uses the IE rendering engine) so I wrote 
a customization layer to add support for MathPlayer 
(http://www.dessci.com/en/products/mathplayer/) (BTW, I know about 
MathML stylesheets and how I should make things cross browser and all). 
Anyway, I thought I'd send it here, in case it's of any use for anyone. 
It has a hardcoded relative path, someone who would want to use this 
should change it. I hope I did things the right way, it's my first time.


cheers,

roel


=====================================================================

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0"
                 xmlns:m="http://www.w3.org/1998/Math/MathML";>

<xsl:import href="../docbook/docbook-xsl-1.58.1/htmlhelp/htmlhelp.xsl"/>

<xsl:template name="chunk-element-content">
   <xsl:param name="prev"/>
   <xsl:param name="next"/>
   <xsl:param name="nav.context"/>
   <xsl:param name="content">
     <xsl:apply-imports/>
   </xsl:param>

   <html xmlns:m="http://www.w3.org/1998/Math/MathML";>
   <html>
     <xsl:call-template name="html.head">
       <xsl:with-param name="prev" select="$prev"/>
       <xsl:with-param name="next" select="$next"/>
     </xsl:call-template>

     <body>
       <xsl:call-template name="body.attributes"/>
       <xsl:call-template name="user.header.navigation"/>

       <xsl:call-template name="header.navigation">
         <xsl:with-param name="prev" select="$prev"/>
         <xsl:with-param name="next" select="$next"/>
         <xsl:with-param name="nav.context" select="$nav.context"/>
       </xsl:call-template>

       <xsl:call-template name="user.header.content"/>

       <xsl:copy-of select="$content"/>

       <xsl:call-template name="user.footer.content"/>

       <xsl:call-template name="footer.navigation">
         <xsl:with-param name="prev" select="$prev"/>
         <xsl:with-param name="next" select="$next"/>
         <xsl:with-param name="nav.context" select="$nav.context"/>
       </xsl:call-template>

       <xsl:call-template name="user.footer.navigation"/>
     </body>
   </html>
</xsl:template>

<xsl:template name="user.head.content">
   <object id="MathPlayer" 
classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987"></object>
   <xsl:processing-instruction name="import">
     <xsl:text>namespace="m" implementation="#MathPlayer"</xsl:text>
   </xsl:processing-instruction>
</xsl:template>

</xsl:stylesheet>





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC