| 1 |
<?xml version="1.0" encoding="UTF-8" ?> |
| 2 |
<!DOCTYPE xtpipes SYSTEM "xtpipes.dtd" > |
| 3 |
<xtpipes preamble="yes" signature="xhtmml.4xt (2009-01-20-21:08)"> |
| 4 |
<sax content-handler="xtpipes.util.ScriptsManager" |
| 5 |
lexical-handler="xtpipes.util.ScriptsManagerLH" > |
| 6 |
<script element="p" > |
| 7 |
<dom name="." xml="." method="p" class="tex4ht.XhtmmlUtilities" /> |
| 8 |
</script> |
| 9 |
<script element="div" > |
| 10 |
<dom name="." xml="." method="p" class="tex4ht.XhtmmlUtilities" /> |
| 11 |
</script> |
| 12 |
|
| 13 |
<script element="li" > |
| 14 |
<dom name="." xml="." method="li" class="tex4ht.XhtmmlUtilities" /> |
| 15 |
</script> |
| 16 |
|
| 17 |
<script element="table" > |
| 18 |
<dom name="." xml="." method="table" class="tex4ht.XhtmmlUtilities" /> |
| 19 |
</script> |
| 20 |
|
| 21 |
<script element="mrow" > |
| 22 |
<dom name="." xml="." method="mrow" class="tex4ht.XhtmmlUtilities" /> |
| 23 |
</script> |
| 24 |
|
| 25 |
<script element="math" > |
| 26 |
<dom name="." xml="." method="math" class="tex4ht.XhtmmlUtilities" /> |
| 27 |
<set name="math-mstyle" > |
| 28 |
<![CDATA[ |
| 29 |
<xsl:stylesheet version="1.0" |
| 30 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 31 |
xmlns:h="http://www.w3.org/1999/xhtml" |
| 32 |
xmlns:m="http://www.w3.org/1998/Math/MathML" |
| 33 |
> |
| 34 |
<xsl:output omit-xml-declaration = "yes" method="xml" /> |
| 35 |
|
| 36 |
<xsl:template match=" m:* [ |
| 37 |
not(self::m:math) |
| 38 |
and |
| 39 |
child::m:mstyle[ |
| 40 |
@mathvariant |
| 41 |
and |
| 42 |
child::text() |
| 43 |
and |
| 44 |
(count(child::m:*) = 0) |
| 45 |
] |
| 46 |
and |
| 47 |
(count(child::m:*) = 1) |
| 48 |
and |
| 49 |
not(@mathvariant) |
| 50 |
] " > |
| 51 |
<xsl:copy> |
| 52 |
<xsl:apply-templates select="@*" /> |
| 53 |
<xsl:apply-templates select="m:mstyle/@*" /> |
| 54 |
<xsl:apply-templates select="m:mstyle/text()" /> |
| 55 |
</xsl:copy> |
| 56 |
</xsl:template> |
| 57 |
|
| 58 |
<xsl:template match="*|@*|text()|comment()" > |
| 59 |
<xsl:copy> |
| 60 |
<xsl:apply-templates select="*|@*|text()|comment()" /> |
| 61 |
</xsl:copy> |
| 62 |
</xsl:template> |
| 63 |
</xsl:stylesheet> |
| 64 |
]]> |
| 65 |
|
| 66 |
</set> |
| 67 |
<xslt name="." xml="." xsl="math-mstyle" /> |
| 68 |
|
| 69 |
</script> |
| 70 |
|
| 71 |
<script element="mstyle" > |
| 72 |
<set name="mstyle" > |
| 73 |
<![CDATA[ |
| 74 |
<xsl:stylesheet version="1.0" |
| 75 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 76 |
xmlns:h="http://www.w3.org/1999/xhtml" |
| 77 |
xmlns:m="http://www.w3.org/1998/Math/MathML" |
| 78 |
> |
| 79 |
<xsl:output omit-xml-declaration = "yes" method="xml" /> |
| 80 |
|
| 81 |
<xsl:template match=" m:mstyle [ |
| 82 |
@mathvariant |
| 83 |
and |
| 84 |
child::m:*[ not(@mathvariant) ] |
| 85 |
and |
| 86 |
(count(child::m:*) = 1) |
| 87 |
] " > |
| 88 |
<xsl:element name="{name(child::m:*[1])}"> |
| 89 |
<xsl:attribute name="mathvariant" > |
| 90 |
<xsl:value-of select="@mathvariant" /> |
| 91 |
</xsl:attribute> |
| 92 |
<xsl:apply-templates select="child::m:*/@*" /> |
| 93 |
<xsl:apply-templates select=" |
| 94 |
child::m:*/* |
| 95 |
| child::m:*/text() |
| 96 |
| child::m:*/comment() |
| 97 |
" |
| 98 |
/> |
| 99 |
</xsl:element> |
| 100 |
</xsl:template> |
| 101 |
|
| 102 |
<xsl:template match="*|@*|text()|comment()" > |
| 103 |
<xsl:copy> |
| 104 |
<xsl:apply-templates select="*|@*|text()|comment()" /> |
| 105 |
</xsl:copy> |
| 106 |
</xsl:template> |
| 107 |
</xsl:stylesheet> |
| 108 |
]]> |
| 109 |
|
| 110 |
</set> |
| 111 |
<xslt name="." xml="." xsl="mstyle" /> |
| 112 |
</script> |
| 113 |
|
| 114 |
</sax> |
| 115 |
</xtpipes> |
| 116 |
|