6.0
Rev | Line | |
---|
[ded6ddd] | 1 | <?xml version='1.0' encoding='ISO-8859-1'?>
|
---|
| 2 |
|
---|
| 3 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
| 4 | xmlns="http://www.w3.org/1999/xhtml"
|
---|
| 5 | version="1.0">
|
---|
| 6 |
|
---|
[a9e89d0] | 7 | <!-- Use graphics in admonitions -->
|
---|
[ded6ddd] | 8 | <xsl:param name="admon.graphics" select="1"/>
|
---|
| 9 | <xsl:param name="admon.graphics.path">../images/</xsl:param>
|
---|
| 10 | <xsl:param name="admon.graphics.extension" select="'.png'"/>
|
---|
| 11 |
|
---|
[a9e89d0] | 12 | <!-- Changing the output tagging -->
|
---|
[ded6ddd] | 13 | <xsl:template name="graphical.admonition">
|
---|
| 14 | <xsl:variable name="admon.type">
|
---|
| 15 | <xsl:choose>
|
---|
| 16 | <xsl:when test="local-name(.)='note'">Note</xsl:when>
|
---|
| 17 | <xsl:when test="local-name(.)='warning'">Warning</xsl:when>
|
---|
| 18 | <xsl:when test="local-name(.)='caution'">Caution</xsl:when>
|
---|
| 19 | <xsl:when test="local-name(.)='tip'">Tip</xsl:when>
|
---|
| 20 | <xsl:when test="local-name(.)='important'">Important</xsl:when>
|
---|
| 21 | <xsl:otherwise>Note</xsl:otherwise>
|
---|
| 22 | </xsl:choose>
|
---|
| 23 | </xsl:variable>
|
---|
[bc37722c] | 24 | <div class="{name(.)}">
|
---|
[a9e89d0] | 25 | <div class ="admonhead">
|
---|
[ded6ddd] | 26 | <img alt="[{$admon.type}]">
|
---|
| 27 | <xsl:attribute name="src">
|
---|
| 28 | <xsl:call-template name="admon.graphic"/>
|
---|
| 29 | </xsl:attribute>
|
---|
| 30 | </img>
|
---|
[bc37722c] | 31 | <h3 class="admontitle">
|
---|
[ded6ddd] | 32 | <xsl:value-of select="$admon.type"/>
|
---|
| 33 | <xsl:if test="title">
|
---|
| 34 | <xsl:text>: </xsl:text>
|
---|
| 35 | <xsl:value-of select="title"/>
|
---|
| 36 | </xsl:if>
|
---|
| 37 | </h3>
|
---|
| 38 | </div>
|
---|
| 39 | <div class="admonbody">
|
---|
[a9e89d0] | 40 | <xsl:apply-templates/>
|
---|
[ded6ddd] | 41 | </div>
|
---|
| 42 | </div>
|
---|
| 43 | </xsl:template>
|
---|
| 44 |
|
---|
| 45 | </xsl:stylesheet>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.