]> granicus.if.org Git - docbook-dsssl/commitdiff
Support MathML by passing it silently through to the FO result
authorNorman Walsh <ndw@nwalsh.com>
Sun, 12 May 2002 11:13:59 +0000 (11:13 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sun, 12 May 2002 11:13:59 +0000 (11:13 +0000)
xsl/fo/math.xsl

index fcef0882f2b1fd4e9f549d2d871b1b816d0b08d4..8f2afaf1c88f4b725b3a4edd81e3854fecfb3e48 100644 (file)
 <xsl:template match="alt">
 </xsl:template>
 
+<!-- "Support" for MathML -->
+
+<xsl:template match="mml:*" xmlns:mml="http://www.w3.org/1998/Math/MathML">
+  <xsl:copy>
+    <xsl:copy-of select="@*"/>
+    <xsl:apply-templates/>
+  </xsl:copy>
+</xsl:template>
+
 <xsl:template match="equation/mediaobject | informalequation/mediaobject">
   <xsl:if test="$passivetex.extensions = 0 or $tex.math.in.alt = ''">
     <fo:block>
   <xsl:value-of select="$result"/>
 </xsl:template>
 
-<!-- just send the MathML all the way through... -->
-<xsl:template match="mml:*">
-  <xsl:element name="{name(.)}">
-    <xsl:copy-of select="@*"/>
-    <xsl:apply-templates select="node()"/>
-  </xsl:element>
-</xsl:template>
-
 </xsl:stylesheet>