summaryrefslogtreecommitdiff
path: root/docs-xml/xslt/db2latex-xsl/xsl/mathml/mathml.mod.xsl
diff options
context:
space:
mode:
authorGerald W. Carter <jerry@samba.org>2008-04-22 10:09:40 -0500
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:47:48 -0500
commit8f8a9f01909ba29e2b781310baeeaaddc3f15f0d (patch)
tree90c6b720ad3a7bc815245c0ef28820424f89d658 /docs-xml/xslt/db2latex-xsl/xsl/mathml/mathml.mod.xsl
parent197238246389c40edc60c6630d18d6913086e630 (diff)
downloadsamba-8f8a9f01909ba29e2b781310baeeaaddc3f15f0d.tar.gz
samba-8f8a9f01909ba29e2b781310baeeaaddc3f15f0d.tar.bz2
samba-8f8a9f01909ba29e2b781310baeeaaddc3f15f0d.zip
Moving docs tree to docs-xml to make room for generated docs in the release tarball.
(This used to be commit 9f672c26d63955f613088489c6efbdc08b5b2d14)
Diffstat (limited to 'docs-xml/xslt/db2latex-xsl/xsl/mathml/mathml.mod.xsl')
-rw-r--r--docs-xml/xslt/db2latex-xsl/xsl/mathml/mathml.mod.xsl48
1 files changed, 48 insertions, 0 deletions
diff --git a/docs-xml/xslt/db2latex-xsl/xsl/mathml/mathml.mod.xsl b/docs-xml/xslt/db2latex-xsl/xsl/mathml/mathml.mod.xsl
new file mode 100644
index 0000000000..32262afab4
--- /dev/null
+++ b/docs-xml/xslt/db2latex-xsl/xsl/mathml/mathml.mod.xsl
@@ -0,0 +1,48 @@
+<?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.mod.xsl,v 1.4 2004/01/18 10:39:23 j-devenish Exp $
+ |- #############################################################################
+ | $Author: j-devenish $
+ |
+ | PURPOSE: MathML presentation and content markup.
+ | Note: these elements are not part of the DocBook DTD. I have extended
+ | the docbook DTD in order to support this tags, so that's why I have these
+ | templates here.
+ |
+ | 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">
+
+ <xsl:strip-space elements="mml:math mml:mrow"/>
+
+ <xsl:template match="mml:math">
+ <xsl:text>\begin{displaymath}</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>\end{displaymath}%&#10;</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="mml:math[@mode='inline']">
+ <xsl:text>\begin{math}</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>\end{math}</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="mml:math[@mode='display']">
+ <xsl:text>\begin{displaymath}</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>\end{displaymath}%&#10;</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="p">
+ <xsl:text>\section{</xsl:text> <xsl:value-of select="normalize-space(.)"/> <xsl:text>}&#10;</xsl:text>
+ </xsl:template>
+
+</xsl:stylesheet>