summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex4ht/xttl/oo-math.4xt
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex4ht/xttl/oo-math.4xt')
-rwxr-xr-xMaster/texmf-dist/tex4ht/xttl/oo-math.4xt78
1 files changed, 78 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex4ht/xttl/oo-math.4xt b/Master/texmf-dist/tex4ht/xttl/oo-math.4xt
new file mode 100755
index 00000000000..18fcf35521e
--- /dev/null
+++ b/Master/texmf-dist/tex4ht/xttl/oo-math.4xt
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE xtpipes SYSTEM "xtpipes.dtd" >
+<xtpipes preamble="yes" signature="oo-math.4xt (2006-12-04-16:41)">
+ <sax content-handler="xtpipes.lib.ScriptsManager,OomFilter"
+ lexical-handler="xtpipes.lib.ScriptsManagerLH" >
+ <script element="math:mtable" >
+ <dom name="." xml="." method="mtable" class="OoUtilities" />
+<set name="rmXmlDecl" >
+ <![CDATA[
+ <xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:math="http://www.w3.org/1998/Math/MathML"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ >
+ <xsl:output omit-xml-declaration = "yes" />
+
+ <xsl:template match="*|@*|text()|comment()" >
+ <xsl:copy>
+ <xsl:apply-templates select="*|@*|text()|comment()" />
+ </xsl:copy>
+ </xsl:template>
+ </xsl:stylesheet>
+]]>
+
+</set>
+<xslt name="." xml="." xsl="rmXmlDecl" />
+
+
+ </script>
+ <script element="math:math" >
+ <set name="math:mo" >
+ <![CDATA[
+ <xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:math="http://www.w3.org/1998/Math/MathML"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ >
+ <xsl:output omit-xml-declaration = "yes" />
+
+ <xsl:template match=" math:mo[
+ (preceding-sibling::math:mn or preceding-sibling::math:mi)
+ and not(following-sibling::*)
+]" >
+ <math:mtext>
+ <xsl:apply-templates select="*|@*|text()" />
+ </math:mtext>
+</xsl:template>
+<xsl:template match=" math:mo[
+ not(preceding-sibling::* or following-sibling::*)
+]" >
+ <math:mtext>
+ <xsl:apply-templates select="*|@*|text()" />
+ </math:mtext>
+</xsl:template>
+<xsl:template match=" math:mo[
+ (.='{') or (.='}')
+]" >
+ <math:mtext>
+ <xsl:apply-templates select="*|@*|text()" />
+ </math:mtext>
+</xsl:template>
+
+ <xsl:template match="*|@*|text()|comment()" >
+ <xsl:copy>
+ <xsl:apply-templates select="*|@*|text()|comment()" />
+ </xsl:copy>
+ </xsl:template>
+ </xsl:stylesheet>
+]]>
+
+</set>
+<xslt name="." xml="." xsl="math:mo" />
+
+
+ </script>
+ </sax>
+</xtpipes>
+