blob: 18fcf35521ebb9f3eaee1986d0649a7845138273 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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>
|