source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/html/task.xsl@ 15c7d39

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 15c7d39 was 15c7d39, checked in by Matthew Burgess <matthew@…>, 11 years ago

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.4 KB
Line 
1<?xml version="1.0"?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 version="1.0">
4
5<!-- ********************************************************************
6 $Id: task.xsl 9363 2012-05-12 23:42:32Z bobstayton $
7 ********************************************************************
8
9 This file is part of the XSL DocBook Stylesheet distribution.
10 See ../README or http://docbook.sf.net/release/xsl/current/ for
11 copyright and other information.
12
13 ******************************************************************** -->
14
15<!-- ==================================================================== -->
16
17<xsl:template match="task">
18 <xsl:variable name="param.placement"
19 select="substring-after(normalize-space($formal.title.placement),
20 concat(local-name(.), ' '))"/>
21
22 <xsl:variable name="placement">
23 <xsl:choose>
24 <xsl:when test="contains($param.placement, ' ')">
25 <xsl:value-of select="substring-before($param.placement, ' ')"/>
26 </xsl:when>
27 <xsl:when test="$param.placement = ''">before</xsl:when>
28 <xsl:otherwise>
29 <xsl:value-of select="$param.placement"/>
30 </xsl:otherwise>
31 </xsl:choose>
32 </xsl:variable>
33
34 <xsl:variable name="preamble"
35 select="*[not(self::title
36 or self::titleabbrev)]"/>
37
38 <div>
39 <xsl:apply-templates select="." mode="common.html.attributes"/>
40 <xsl:call-template name="id.attribute"/>
41 <xsl:call-template name="anchor"/>
42
43 <xsl:if test="(title or info/title) and $placement = 'before'">
44 <xsl:call-template name="formal.object.heading"/>
45 </xsl:if>
46
47 <xsl:apply-templates select="$preamble"/>
48
49 <xsl:if test="(title or info/title) and $placement != 'before'">
50 <xsl:call-template name="formal.object.heading"/>
51 </xsl:if>
52 </div>
53</xsl:template>
54
55<xsl:template match="task/title">
56 <!-- nop -->
57</xsl:template>
58
59<xsl:template match="tasksummary">
60 <xsl:call-template name="semiformal.object"/>
61</xsl:template>
62
63<xsl:template match="tasksummary/title"/>
64
65<xsl:template match="taskprerequisites">
66 <xsl:call-template name="semiformal.object"/>
67</xsl:template>
68
69<xsl:template match="taskprerequisites/title"/>
70
71<xsl:template match="taskrelated">
72 <xsl:call-template name="semiformal.object"/>
73</xsl:template>
74
75<xsl:template match="taskrelated/title"/>
76
77</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.