diff options
author | Alexander Bokovoy <ab@samba.org> | 2003-04-30 21:39:49 +0000 |
---|---|---|
committer | Alexander Bokovoy <ab@samba.org> | 2003-04-30 21:39:49 +0000 |
commit | bd30b6066f1a28663b28466a67064149b6e060a4 (patch) | |
tree | dc4478c5aafd9078f380e5e2ea11926519905fb0 /docs/docbook/xslt/db2latex/mathml/mathml.content.constsymb.mod.xsl | |
parent | 049791de5b6e43e827e2be01a65958389d9c76e2 (diff) | |
download | samba-bd30b6066f1a28663b28466a67064149b6e060a4.tar.gz samba-bd30b6066f1a28663b28466a67064149b6e060a4.tar.bz2 samba-bd30b6066f1a28663b28466a67064149b6e060a4.zip |
Docbook XML conversion: XSLT and build infrastructure
(This used to be commit f4f6e0b29e744077dfb836745716a659a49d7529)
Diffstat (limited to 'docs/docbook/xslt/db2latex/mathml/mathml.content.constsymb.mod.xsl')
-rw-r--r-- | docs/docbook/xslt/db2latex/mathml/mathml.content.constsymb.mod.xsl | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/docs/docbook/xslt/db2latex/mathml/mathml.content.constsymb.mod.xsl b/docs/docbook/xslt/db2latex/mathml/mathml.content.constsymb.mod.xsl new file mode 100644 index 0000000000..1317c483a7 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/mathml.content.constsymb.mod.xsl @@ -0,0 +1,101 @@ +<?xml version='1.0'?> +<!DOCTYPE xsl:stylesheet +[ + <!ENTITY % mmlalias PUBLIC "MathML alias" "ent/mmlalias.ent"> %mmlalias; + <!ENTITY % mmlextra PUBLIC "MathML extra" "ent/mmlextra.ent"> %mmlextra; +]> +<!--############################################################################# + | $Id: mathml.content.constsymb.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + |- ############################################################################# + | $Author: ab $ + | + | PURPOSE: MathML content markup, constants and symbols, 4.4.12. + | MathML namespace used -> mml + + ############################################################################## --> + +<xsl:stylesheet version='1.0' + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns="http://www.w3.org/1998/Math/MathML"> + +<!-- integer numbers --> +<xsl:template match="mml:integers"> + <xsl:text>\bbold Z </xsl:text> +</xsl:template> + +<!-- real numbers --> +<xsl:template match="mml:reals"> + <xsl:text>\bbold R </xsl:text> +</xsl:template> + +<!-- rational numbers --> +<xsl:template match="mml:rationals"> + <xsl:text>\bbold Q </xsl:text> +</xsl:template> + +<!-- natural numbers --> +<xsl:template match="mml:naturalnumbers"> + <xsl:text>\bbold N </xsl:text> +</xsl:template> + +<!-- complex numbers --> +<xsl:template match="mml:complexes"> + <xsl:text>\bbold C </xsl:text> +</xsl:template> + +<!-- prime numbers --> +<xsl:template match="mml:primes"> + <xsl:text>\bbold P </xsl:text> + <mi><xsl:text disable-output-escaping='yes'>&#x1D547;</xsl:text></mi> <!-- open face P --> <!-- UNICODE char does not work --> +</xsl:template> + + + + + + + +<!-- exponential base --> +<xsl:template match="mml:exponentiale"> + <xsl:text>\textrm{e} </xsl:text> +</xsl:template> + +<!-- square root of -1 --> +<xsl:template match="mml:imaginaryi"> + <xsl:text>\textrm{i} </xsl:text> +</xsl:template> + +<xsl:template match="mml:notanumber"> + <xsl:text>\NaN </xsl:text> +</xsl:template> + +<!-- logical constant for truth --> +<xsl:template match="mml:true"> + <xsl:text>true</xsl:text> +</xsl:template> + +<!-- logical constant for falsehood --> +<xsl:template match="mml:false"> + <xsl:text>false</xsl:text> +</xsl:template> + +<!-- empty set --> +<xsl:template match="mml:emptyset"> + <xsl:text>\empty</xsl:text> +</xsl:template> + +<!-- ratio of a circle's circumference to its diameter --> +<xsl:template match="mml:pi"> + <xsl:text>\pi</xsl:text> +</xsl:template> + +<!-- Euler's constant --> +<xsl:template match="mml:eulergamma"> + <xsl:text>\Gamma</xsl:text> +</xsl:template> + +<!-- Infinity --> +<xsl:template match="mml:infinity"> + <xsl:text>\infty</xsl:text> +</xsl:template> + +</xsl:stylesheet> |