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 | $Id: mathml.content.constsymb.mod.xsl,v 1.2 2004/01/18 10:40:17 j-devenish Exp $
9 |- #############################################################################
10 | $Author: j-devenish $
12 | PURPOSE: MathML content markup, constants and symbols, 4.4.12.
13 | MathML namespace used -> mml
14 + ############################################################################## -->
16 <xsl:stylesheet version='1.0'
17 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns="http://www.w3.org/1998/Math/MathML">
20 <!-- integer numbers -->
21 <xsl:template match="mml:integers">
22 <xsl:text>\mathbb Z </xsl:text>
26 <xsl:template match="mml:reals">
27 <xsl:text>\mathbb R </xsl:text>
30 <!-- rational numbers -->
31 <xsl:template match="mml:rationals">
32 <xsl:text>\mathbb Q </xsl:text>
35 <!-- natural numbers -->
36 <xsl:template match="mml:naturalnumbers">
37 <xsl:text>\mathbb N </xsl:text>
40 <!-- complex numbers -->
41 <xsl:template match="mml:complexes">
42 <xsl:text>\mathbb C </xsl:text>
45 <!-- prime numbers -->
46 <xsl:template match="mml:primes">
47 <xsl:text>\mathbb P </xsl:text>
48 <mi><xsl:text disable-output-escaping='yes'>&#x1D547;</xsl:text></mi> <!-- open face P --> <!-- UNICODE char does not work -->
57 <!-- exponential base -->
58 <xsl:template match="mml:exponentiale">
59 <xsl:text>\textrm{e} </xsl:text>
62 <!-- square root of -1 -->
63 <xsl:template match="mml:imaginaryi">
64 <xsl:text>\textrm{i} </xsl:text>
67 <xsl:template match="mml:notanumber">
68 <xsl:text>\NaN </xsl:text>
71 <!-- logical constant for truth -->
72 <xsl:template match="mml:true">
73 <xsl:text>true</xsl:text>
76 <!-- logical constant for falsehood -->
77 <xsl:template match="mml:false">
78 <xsl:text>false</xsl:text>
82 <xsl:template match="mml:emptyset">
83 <xsl:text>\empty</xsl:text>
86 <!-- ratio of a circle's circumference to its diameter -->
87 <xsl:template match="mml:pi">
88 <xsl:text>\pi</xsl:text>
91 <!-- Euler's constant -->
92 <xsl:template match="mml:eulergamma">
93 <xsl:text>\Gamma</xsl:text>
97 <xsl:template match="mml:infinity">
98 <xsl:text>\infty</xsl:text>