[PLUGINS] +set de base
[lhc/web/www.git] / www / plugins / odt2spip_30 / inc / xsltml / mmltex.xsl
1 <?xml version='1.0' encoding="UTF-8"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:m="http://www.w3.org/1998/Math/MathML"
4 version='1.0'>
5
6 <xsl:output method="text" indent="no" encoding="UTF-8"/>
7
8 <!-- ====================================================================== -->
9 <!-- $id: mmltex.xsl, 2002/22/11 Exp $
10 This file is part of the XSLT MathML Library distribution.
11 See ./README or http://www.raleigh.ru/MathML/mmltex for
12 copyright and other information -->
13 <!-- ====================================================================== -->
14
15 <xsl:include href="tokens.xsl"/>
16 <xsl:include href="glayout.xsl"/>
17 <xsl:include href="scripts.xsl"/>
18 <xsl:include href="tables.xsl"/>
19 <xsl:include href="entities.xsl"/>
20 <xsl:include href="cmarkup.xsl"/>
21
22 <!-- Note: variables colora (template color) and symbola (template startspace) only for Sablotron -->
23
24 <xsl:template name="startspace">
25 <xsl:param name="symbol"/>
26 <xsl:if test="contains($symbol,' ')">
27 <xsl:variable name="symbola" select="concat(substring-before($symbol,' '),substring-after($symbol,' '))"/>
28 <xsl:call-template name="startspace">
29 <xsl:with-param name="symbol" select="$symbola"/>
30 </xsl:call-template>
31 </xsl:if>
32 <xsl:if test="not(contains($symbol,' '))">
33 <xsl:value-of select="$symbol"/>
34 </xsl:if>
35 </xsl:template>
36
37 <xsl:strip-space elements="m:*"/>
38
39 <xsl:template match="m:math">
40 <xsl:text>&#x00024;</xsl:text>
41 <xsl:apply-templates/>
42 <xsl:text>&#x00024;</xsl:text>
43 </xsl:template>
44
45 </xsl:stylesheet>