1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5
This file is part of db2mm, see db2mm.xslt for details
7
Copyright 2005, 2006 by Jeff Schering (jeffschering@gmail.com)
8
Copyright 2006 by Mikko Virkkilä (mvirkkil@cc.hut.fi)
10
This program is free software; you can redistribute it and/or modify
11
it under the terms of the GNU General Public License as published by
12
the Free Software Foundation; either version 2 of the License, or
13
(at your option) any later version.
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License for more details.
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software
22
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
32
<xsl:template match="note|tip|warning|caution|important">
33
<xsl:text>[[Admonition("</xsl:text>
34
<xsl:value-of select="local-name()"/><xsl:text>"</xsl:text>
35
<xsl:apply-templates select="title"/>
36
<xsl:apply-templates select="para"/>
37
<xsl:text>)]]</xsl:text>
40
<xsl:template match="caution/title|important/title|note/title|tip/title|warning/title">
41
<xsl:text>, title="</xsl:text>
42
<xsl:value-of select="text()"/>
43
<xsl:text>"</xsl:text>
47
<xsl:template match="caution/para|important/para|note/para|tip/para|warning/para">
48
<xsl:text>, text="</xsl:text>
49
<xsl:call-template name="inlinetext"/>
50
<xsl:text>"</xsl:text>