source: stylesheets/pdf/lfs-admon.xsl@ 276015d2

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 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 276015d2 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: 3.7 KB
RevLine 
[3fe8b511]1<?xml version='1.0' encoding='ISO-8859-1'?>
2
3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:fo="http://www.w3.org/1999/XSL/Format"
5 version="1.0">
6
[276015d2]7<!--
8$LastChangedBy$
9$Date$
10-->
[3fe8b511]11
12 <!-- Graphics in admonitions -->
13 <xsl:param name="admon.graphics" select="1"/>
14 <xsl:param name="admon.graphics.path" select="'images/'"/>
15
16 <!-- Admonition block properties -->
17 <xsl:template match="important|warning|caution">
18 <xsl:choose>
19 <xsl:when test="$admon.graphics != 0">
20 <fo:block space-before.minimum="0.4em" space-before.optimum="0.6em"
21 space-before.maximum="0.8em" border-style="solid" border-width="1pt"
22 border-color="#500" background-color="#FFFFE6">
23 <xsl:call-template name="graphical.admonition"/>
24 </fo:block>
25 </xsl:when>
26 <xsl:otherwise>
27 <xsl:call-template name="nongraphical.admonition"/>
28 </xsl:otherwise>
29 </xsl:choose>
30 </xsl:template>
31
32 <xsl:template match="note|tip">
33 <xsl:choose>
34 <xsl:when test="$admon.graphics != 0">
35 <fo:block space-before.minimum="0.4em" space-before.optimum="0.6em"
36 space-before.maximum="0.8em" border-style="solid" border-width="1pt"
37 border-color="#E0E0E0" background-color="#FFFFE6">
38 <xsl:call-template name="graphical.admonition"/>
39 </fo:block>
40 </xsl:when>
41 <xsl:otherwise>
42 <xsl:call-template name="nongraphical.admonition"/>
43 </xsl:otherwise>
44 </xsl:choose>
45 </xsl:template>
46
47 <!-- Admonitions text properties -->
48 <xsl:attribute-set name="admonition.properties">
49 <xsl:attribute name="margin-right">6pt</xsl:attribute>
50 </xsl:attribute-set>
51
52 <!-- Adding left space to the graphics and color to the titles -->
53 <xsl:template name="graphical.admonition">
54 <xsl:variable name="id">
55 <xsl:call-template name="object.id"/>
56 </xsl:variable>
57 <xsl:variable name="graphic.width">
58 <xsl:apply-templates select="." mode="admon.graphic.width"/>
59 </xsl:variable>
60 <fo:block id="{$id}">
61 <fo:list-block provisional-distance-between-starts="{$graphic.width} + 18pt"
62 provisional-label-separation="18pt" xsl:use-attribute-sets="list.block.spacing">
63 <fo:list-item>
64 <fo:list-item-label end-indent="label-end()">
[1423d58f]65 <fo:block margin-left="18pt">
[3fe8b511]66 <fo:external-graphic width="auto" height="auto"
67 content-width="{$graphic.width}" >
68 <xsl:attribute name="src">
69 <xsl:call-template name="admon.graphic"/>
70 </xsl:attribute>
71 </fo:external-graphic>
72 </fo:block>
73 </fo:list-item-label>
74 <fo:list-item-body start-indent="body-start()">
75 <xsl:if test="$admon.textlabel != 0 or title">
76 <fo:block xsl:use-attribute-sets="admonition.title.properties">
77 <xsl:if test="ancestor-or-self::important">
78 <xsl:attribute name="color">#500</xsl:attribute>
79 </xsl:if>
80 <xsl:if test="ancestor-or-self::warning">
81 <xsl:attribute name="color">#500</xsl:attribute>
82 </xsl:if>
83 <xsl:if test="ancestor-or-self::caution">
84 <xsl:attribute name="color">#500</xsl:attribute>
85 </xsl:if>
86 <xsl:apply-templates select="." mode="object.title.markup"/>
87 </fo:block>
88 </xsl:if>
89 <fo:block xsl:use-attribute-sets="admonition.properties">
90 <xsl:apply-templates/>
91 </fo:block>
92 </fo:list-item-body>
93 </fo:list-item>
94 </fo:list-block>
95 </fo:block>
96 </xsl:template>
97
[276015d2]98</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.