2 <!DOCTYPE xsl:stylesheet
4 <!ENTITY % mmlalias PUBLIC "MathML alias" "ent/mmlalias.ent"> %mmlalias;
5 <!ENTITY % mmlextra PUBLIC "MathML extra" "ent/mmlextra.ent"> %mmlextra;
7 <!--#############################################################################
8 |- #############################################################################
10 | PURPOSE: MathML content markup, constants and symbols, 4.4.12.
11 | MathML namespace used -> mml
12 + ############################################################################## -->
14 <xsl:stylesheet version='1.0'
15 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
16 xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns="http://www.w3.org/1998/Math/MathML">
18 <!-- integer numbers -->
19 <xsl:template match="mml:integers">
20 <xsl:text>\bbold Z </xsl:text>
24 <xsl:template match="mml:reals">
25 <xsl:text>\bbold R </xsl:text>
28 <!-- rational numbers -->
29 <xsl:template match="mml:rationals">
30 <xsl:text>\bbold Q </xsl:text>
33 <!-- natural numbers -->
34 <xsl:template match="mml:naturalnumbers">
35 <xsl:text>\bbold N </xsl:text>
38 <!-- complex numbers -->
39 <xsl:template match="mml:complexes">
40 <xsl:text>\bbold C </xsl:text>
43 <!-- prime numbers -->
44 <xsl:template match="mml:primes">
45 <xsl:text>\bbold P </xsl:text>
46 <mi><xsl:text disable-output-escaping='yes'>&#x1D547;</xsl:text></mi> <!-- open face P --> <!-- UNICODE char does not work -->
55 <!-- exponential base -->
56 <xsl:template match="mml:exponentiale">
57 <xsl:text>\textrm{e} </xsl:text>
60 <!-- square root of -1 -->
61 <xsl:template match="mml:imaginaryi">
62 <xsl:text>\textrm{i} </xsl:text>
65 <xsl:template match="mml:notanumber">
66 <xsl:text>\NaN </xsl:text>
69 <!-- logical constant for truth -->
70 <xsl:template match="mml:true">
71 <xsl:text>true</xsl:text>
74 <!-- logical constant for falsehood -->
75 <xsl:template match="mml:false">
76 <xsl:text>false</xsl:text>
80 <xsl:template match="mml:emptyset">
81 <xsl:text>\empty</xsl:text>
84 <!-- ratio of a circle's circumference to its diameter -->
85 <xsl:template match="mml:pi">
86 <xsl:text>\pi</xsl:text>
89 <!-- Euler's constant -->
90 <xsl:template match="mml:eulergamma">
91 <xsl:text>\Gamma</xsl:text>
95 <xsl:template match="mml:infinity">
96 <xsl:text>\infty</xsl:text>