initial version of idmap_ldap.c; lots of updates to come
[kai/samba.git] / docs / docbook / xslt / db2latex / mathml / mathml.mod.xsl
1 <?xml version='1.0'?>
2 <!DOCTYPE xsl:stylesheet
3 [
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.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $          
9  |- #############################################################################
10  |      $Author: ab $
11  |                                                                                                              
12  |   PURPOSE: MathML presentation and content markup.
13  |      Note: these elements are not part of the DocBook DTD. I have extended
14  |    the docbook DTD in order to support this tags, so that's why I have these 
15  |      templates here.
16  |   
17  |      MathML namespace used -> mml
18  + ############################################################################## -->
19
20 <xsl:stylesheet version='1.0'
21         xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
22         xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns="http://www.w3.org/1998/Math/MathML">
23
24 <xsl:strip-space elements="mml:math mml:mrow"/>
25
26
27 <xsl:template match="mml:math">
28         <xsl:text>\r\begin{displaymath}\r</xsl:text>
29         <xsl:apply-templates/>
30         <xsl:text>\r\end{displaymath}\r</xsl:text>
31 </xsl:template>
32
33 <xsl:template match="mml:math[@mode='inline']">
34         <xsl:text> \begin{math} </xsl:text>
35         <xsl:apply-templates/>
36         <xsl:text> \end{math} </xsl:text>
37 </xsl:template>
38
39 <xsl:template match="mml:math[@mode='display']">
40         <xsl:text>\r\begin{displaymath}\r</xsl:text>
41         <xsl:apply-templates/>
42         <xsl:text>\r\end{displaymath}\r</xsl:text>
43 </xsl:template>
44
45
46 <xsl:template match="p">
47         <xsl:text>\section{</xsl:text> <xsl:value-of select="normalize-space(.)"/> <xsl:text>}\r</xsl:text>
48 </xsl:template>
49
50
51 </xsl:stylesheet>