Embed db2latex as interim solution before migration to dblatex
[Samba/gbeck.git] / docs / xslt / db2latex-xsl / xsl / mathml / mathml.content.constsymb.mod.xsl
blob3d3afdded867ec0202ad4d07eb2337b81c36f62d
1 <?xml version='1.0'?>
2 <!DOCTYPE xsl:stylesheet
4 <!ENTITY % mmlalias PUBLIC "MathML alias" "ent/mmlalias.ent"> %mmlalias;
5 <!ENTITY % mmlextra PUBLIC "MathML extra" "ent/mmlextra.ent"> %mmlextra;
6 ]>
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>
23 </xsl:template>
25 <!-- real numbers -->
26 <xsl:template match="mml:reals">
27 <xsl:text>\mathbb R </xsl:text>
28 </xsl:template>
30 <!-- rational numbers -->
31 <xsl:template match="mml:rationals">
32 <xsl:text>\mathbb Q </xsl:text>
33 </xsl:template>
35 <!-- natural numbers -->
36 <xsl:template match="mml:naturalnumbers">
37 <xsl:text>\mathbb N </xsl:text>
38 </xsl:template>
40 <!-- complex numbers -->
41 <xsl:template match="mml:complexes">
42 <xsl:text>\mathbb C </xsl:text>
43 </xsl:template>
45 <!-- prime numbers -->
46 <xsl:template match="mml:primes">
47 <xsl:text>\mathbb P </xsl:text>
48 <mi><xsl:text disable-output-escaping='yes'>&amp;#x1D547;</xsl:text></mi> <!-- open face P --> <!-- UNICODE char does not work -->
49 </xsl:template>
57 <!-- exponential base -->
58 <xsl:template match="mml:exponentiale">
59 <xsl:text>\textrm{e} </xsl:text>
60 </xsl:template>
62 <!-- square root of -1 -->
63 <xsl:template match="mml:imaginaryi">
64 <xsl:text>\textrm{i} </xsl:text>
65 </xsl:template>
67 <xsl:template match="mml:notanumber">
68 <xsl:text>\NaN </xsl:text>
69 </xsl:template>
71 <!-- logical constant for truth -->
72 <xsl:template match="mml:true">
73 <xsl:text>true</xsl:text>
74 </xsl:template>
76 <!-- logical constant for falsehood -->
77 <xsl:template match="mml:false">
78 <xsl:text>false</xsl:text>
79 </xsl:template>
81 <!-- empty set -->
82 <xsl:template match="mml:emptyset">
83 <xsl:text>\empty</xsl:text>
84 </xsl:template>
86 <!-- ratio of a circle's circumference to its diameter -->
87 <xsl:template match="mml:pi">
88 <xsl:text>\pi</xsl:text>
89 </xsl:template>
91 <!-- Euler's constant -->
92 <xsl:template match="mml:eulergamma">
93 <xsl:text>\Gamma</xsl:text>
94 </xsl:template>
96 <!-- Infinity -->
97 <xsl:template match="mml:infinity">
98 <xsl:text>\infty</xsl:text>
99 </xsl:template>
101 </xsl:stylesheet>