]> granicus.if.org Git - docbook-dsssl/commitdiff
MathML must be surrounded by fo:instream-foreign-object
authorJirka Kosek <jirka@kosek.cz>
Wed, 7 Mar 2007 20:30:30 +0000 (20:30 +0000)
committerJirka Kosek <jirka@kosek.cz>
Wed, 7 Mar 2007 20:30:30 +0000 (20:30 +0000)
xsl/fo/math.xsl

index 2045323821e6dd8ccfc23d58f4221cb9c0fd29d0..43c23feff1ed04643968fdbc01b3543dca4ff8bf 100644 (file)
 
 <!-- "Support" for MathML -->
 
+<xsl:template match="mml:math" xmlns:mml="http://www.w3.org/1998/Math/MathML">
+  <fo:instream-foreign-object>
+    <xsl:copy>
+      <xsl:copy-of select="@*"/>
+      <xsl:apply-templates/>
+    </xsl:copy>
+  </fo:instream-foreign-object>
+</xsl:template>
+
 <xsl:template match="mml:*" xmlns:mml="http://www.w3.org/1998/Math/MathML">
   <xsl:copy>
     <xsl:copy-of select="@*"/>