1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?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">
-
-
- <xsl:param name="admon.graphics" select="1"/>
-
- <xsl:param name="admon.graphics.path">../images/</xsl:param>
-
- <xsl:param name="admon.graphics.extension" select="'.png'"/>
-
- {docbook-xsl}
- <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>
- <xsl:variable name="alt">
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="$admon.type"/>
- </xsl:call-template>
- </xsl:variable>
- <div class="admon {name(.)}">
- <img alt="[{$alt}]">
- <xsl:attribute name="src">
- <xsl:call-template name="admon.graphic"/>
- </xsl:attribute>
- </img>
- <h3>
- <xsl:apply-templates select="." mode="object.title.markup"/>
- </h3>
- <xsl:apply-templates/>
- </div>
- </xsl:template>
- </xsl:stylesheet>
|