cvsimport
[fvwm.git] / doc / docbook-xsl / html / task.xsl
blob49555beb84837532a99523314863974d98c08792
1 <?xml version="1.0"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 version="1.0">
5 <!-- ********************************************************************
6 $Id: task.xsl,v 1.1 2007/03/10 05:15:13 scott Exp $
7 ********************************************************************
9 This file is part of the XSL DocBook Stylesheet distribution.
10 See ../README or http://nwalsh.com/docbook/xsl/ for copyright
11 and other information.
13 ******************************************************************** -->
15 <!-- ==================================================================== -->
17 <xsl:template match="task">
18 <xsl:variable name="param.placement"
19 select="substring-after(normalize-space($formal.title.placement),
20 concat(local-name(.), ' '))"/>
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>
34 <xsl:variable name="preamble"
35 select="*[not(self::title
36 or self::titleabbrev)]"/>
38 <div>
39 <xsl:apply-templates select="." mode="class.attribute"/>
40 <xsl:call-template name="anchor"/>
42 <xsl:if test="title and $placement = 'before'">
43 <xsl:call-template name="formal.object.heading"/>
44 </xsl:if>
46 <xsl:apply-templates select="$preamble"/>
48 <xsl:if test="title and $placement != 'before'">
49 <xsl:call-template name="formal.object.heading"/>
50 </xsl:if>
51 </div>
52 </xsl:template>
54 <xsl:template match="task/title">
55 <!-- nop -->
56 </xsl:template>
58 <xsl:template match="tasksummary">
59 <xsl:call-template name="semiformal.object"/>
60 </xsl:template>
62 <xsl:template match="tasksummary/title"/>
64 <xsl:template match="taskprerequisites">
65 <xsl:call-template name="semiformal.object"/>
66 </xsl:template>
68 <xsl:template match="taskprerequisites/title"/>
70 <xsl:template match="taskrelated">
71 <xsl:call-template name="semiformal.object"/>
72 </xsl:template>
74 <xsl:template match="taskrelated/title"/>
76 </xsl:stylesheet>