summaryrefslogtreecommitdiff
path: root/stylesheets/db2html-admon.xsl
blob: f2b2b8b5942a7aa0c1314cd1a91f346ac8677c8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version='1.0'?><!-- -*- Mode: fundamental; tab-width: 3 -*- -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">

<xsl:template match="caution | important | note | tip | warning">
	<div class="admonition"><div class="{name(.)}">
		<xsl:call-template name="anchor"/>
		<xsl:choose>
			<xsl:when test="$text_only">
				<xsl:call-template name="node.heading"/>
				<xsl:apply-templates select="*[name(.) != 'title']"/>
			</xsl:when>
			<xsl:otherwise>
				<table style="border: none;">
					<tr>
						<td rowspan="2" align="center" valign="top">
							<img>
								<xsl:attribute name="src">
									<xsl:value-of select="$admon_graphics_path"/>
									<xsl:value-of select="name(.)"/>
									<xsl:value-of select="$admon_graphics_extension"/>
								</xsl:attribute>
							</img>
						</td>
						<th align="left" valign="top">
							<xsl:call-template name="node.heading"/>
						</th>
					</tr>
					<tr>
						<td align="left" valign="top">
							<xsl:apply-templates select="*[name(.) != 'title']"/>
						</td>
					</tr>
				</table>
			</xsl:otherwise>
		</xsl:choose>
	</div></div>
</xsl:template>

</xsl:stylesheet>