source: stylesheets/xhtml/lfs-admon.xsl@ d6f7e6cb

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d6f7e6cb was 276015d2, checked in by Randy McMurchy <randy@…>, 17 years ago

Added the LastChangedBy and Date keywords then set the corresponding keyword property on each file in the repo

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6430 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 1.6 KB
Line 
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
7<!--
8$LastChangedBy$
9$Date$
10-->
11
12 <!-- Use graphics in admonitions -->
13 <xsl:param name="admon.graphics" select="1"/>
14 <xsl:param name="admon.graphics.path">../images/</xsl:param>
15 <xsl:param name="admon.graphics.extension" select="'.png'"/>
16
17 <!-- Changing the output tagging -->
18 <xsl:template name="graphical.admonition">
19 <xsl:variable name="admon.type">
20 <xsl:choose>
21 <xsl:when test="local-name(.)='note'">Note</xsl:when>
22 <xsl:when test="local-name(.)='warning'">Warning</xsl:when>
23 <xsl:when test="local-name(.)='caution'">Caution</xsl:when>
24 <xsl:when test="local-name(.)='tip'">Tip</xsl:when>
25 <xsl:when test="local-name(.)='important'">Important</xsl:when>
26 <xsl:otherwise>Note</xsl:otherwise>
27 </xsl:choose>
28 </xsl:variable>
29 <xsl:variable name="alt">
30 <xsl:call-template name="gentext">
31 <xsl:with-param name="key" select="$admon.type"/>
32 </xsl:call-template>
33 </xsl:variable>
34 <div class="{name(.)}">
35 <div class ="admonhead">
36 <img alt="[{$alt}]">
37 <xsl:attribute name="src">
38 <xsl:call-template name="admon.graphic"/>
39 </xsl:attribute>
40 </img>
41 <h3 class="admontitle">
42 <xsl:apply-templates select="." mode="object.title.markup"/>
43 </h3>
44 </div>
45 <div class="admonbody">
46 <xsl:apply-templates/>
47 </div>
48 </div>
49 </xsl:template>
50
51</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.