1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (c) 2002 Douglas Gregor <doug.gregor -at- gmail.com> 4 5 Distributed under the Boost Software License, Version 1.0. 6 (See accompanying file LICENSE_1_0.txt or copy at 7 http://www.boost.org/LICENSE_1_0.txt) 8 --> 9<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 10 version="1.0"> 11 12<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/admon.xsl"/> 13 14<!-- Already included in the main style sheet --> 15<!-- <xsl:import href="relative-href.xsl"/> --> 16 17<xsl:template name="admon.graphic"> 18 <xsl:param name="node" select="."/> 19 20 <xsl:call-template name="href.target.relative"> 21 <xsl:with-param name="target" select="$admon.graphics.path"/> 22 </xsl:call-template> 23 24 <xsl:choose> 25 <xsl:when test="local-name($node)='note'">note</xsl:when> 26 <xsl:when test="local-name($node)='warning'">warning</xsl:when> 27 <xsl:when test="local-name($node)='caution'">caution</xsl:when> 28 <xsl:when test="local-name($node)='tip'">tip</xsl:when> 29 <xsl:when test="local-name($node)='important'">important</xsl:when> 30 <xsl:otherwise>note</xsl:otherwise> 31 </xsl:choose> 32 33 <xsl:value-of select="$admon.graphics.extension"/> 34</xsl:template> 35 36</xsl:stylesheet> 37