2004-05-08 15:19:53 +01:00
|
|
|
<?xml version='1.0' encoding='ISO-8859-1'?>
|
|
|
|
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
version="1.0">
|
|
|
|
|
2004-05-19 21:16:58 +01:00
|
|
|
<!-- Use graphics in admonitions -->
|
2004-05-08 15:19:53 +01:00
|
|
|
<xsl:param name="admon.graphics" select="1"/>
|
|
|
|
<xsl:param name="admon.graphics.path">../images/</xsl:param>
|
|
|
|
<xsl:param name="admon.graphics.extension" select="'.png'"/>
|
|
|
|
|
2004-05-19 21:16:58 +01:00
|
|
|
<!-- Changing the output tagging -->
|
2004-05-08 15:19:53 +01:00
|
|
|
<xsl:template name="graphical.admonition">
|
|
|
|
<xsl:variable name="admon.type">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="local-name(.)='note'">Note</xsl:when>
|
|
|
|
<xsl:when test="local-name(.)='warning'">Warning</xsl:when>
|
|
|
|
<xsl:when test="local-name(.)='caution'">Caution</xsl:when>
|
|
|
|
<xsl:when test="local-name(.)='tip'">Tip</xsl:when>
|
|
|
|
<xsl:when test="local-name(.)='important'">Important</xsl:when>
|
|
|
|
<xsl:otherwise>Note</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:variable>
|
2004-12-19 21:17:48 +00:00
|
|
|
<xsl:variable name="alt">
|
|
|
|
<xsl:call-template name="gentext">
|
|
|
|
<xsl:with-param name="key" select="$admon.type"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:variable>
|
2004-05-26 21:22:29 +01:00
|
|
|
<div class="{name(.)}">
|
2004-05-19 21:16:58 +01:00
|
|
|
<div class ="admonhead">
|
2004-12-19 21:17:48 +00:00
|
|
|
<img alt="[{$alt}]">
|
2004-05-08 15:19:53 +01:00
|
|
|
<xsl:attribute name="src">
|
|
|
|
<xsl:call-template name="admon.graphic"/>
|
|
|
|
</xsl:attribute>
|
|
|
|
</img>
|
2004-05-26 21:22:29 +01:00
|
|
|
<h3 class="admontitle">
|
2004-12-19 21:17:48 +00:00
|
|
|
<xsl:apply-templates select="." mode="object.title.markup"/>
|
2004-05-08 15:19:53 +01:00
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div class="admonbody">
|
2004-05-19 21:16:58 +01:00
|
|
|
<xsl:apply-templates/>
|
2004-05-08 15:19:53 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|