Do not exclude MathML content.
authorCameron McCormack <cam@mcc.id.au>
Fri, 18 May 2012 12:22:50 +1000
changeset 19 007d01c2973f
parent 18 a8dc66128dd3
child 20 e32a863f3ac3
Do not exclude MathML content.
publish.xsl
--- a/publish.xsl	Thu May 17 12:08:03 2012 +1000
+++ b/publish.xsl	Fri May 18 12:22:50 2012 +1000
@@ -4,6 +4,7 @@
 
 <xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:h="http://www.w3.org/1999/xhtml"
+                xmlns:m="http://www.w3.org/1998/Math/MathML"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 xmlns:edit="http://xmlns.grorg.org/SVGT12NG/"
                 xmlns:x="http://mcc.id.au/ns/local"
@@ -12,7 +13,7 @@
                 xmlns:idl='http://mcc.id.au/ns/idl'
                 xmlns:_xml='data:,'
                 xpath-default-namespace="http://www.w3.org/1999/xhtml"
-                exclude-result-prefixes="h edit x saxon xs idl"
+                exclude-result-prefixes="h edit x saxon xs idl m"
                 version="2.0">
 
   <xsl:output method='text'/>
@@ -1417,6 +1418,13 @@
     </xsl:for-each>
   </xsl:template>
 
+  <xsl:template match='m:*'>
+    <xsl:copy>
+      <xsl:copy-of select='@*'/>
+      <xsl:apply-templates/>
+    </xsl:copy>
+  </xsl:template>
+
   <xsl:template match='*'/>