1 <?xml version="1.0" encoding="ASCII"?>
2 <!--This file was created automatically by html2xhtml-->
3 <!--from the HTML stylesheets.-->
4 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
6 <!-- ********************************************************************
7 $Id: task.xsl 9363 2012-05-12 23:42:32Z bobstayton $
8 ********************************************************************
10 This file is part of the XSL DocBook Stylesheet distribution.
11 See ../README or http://docbook.sf.net/release/xsl/current/ for
12 copyright and other information.
14 ******************************************************************** -->
16 <!-- ==================================================================== -->
18 <xsl:template match="task">
19 <xsl:variable name="param.placement" select="substring-after(normalize-space($formal.title.placement), concat(local-name(.), ' '))"/>
21 <xsl:variable name="placement">
23 <xsl:when test="contains($param.placement, ' ')">
24 <xsl:value-of select="substring-before($param.placement, ' ')"/>
26 <xsl:when test="$param.placement = ''">before</xsl:when>
28 <xsl:value-of select="$param.placement"/>
33 <xsl:variable name="preamble" select="*[not(self::title or self::titleabbrev)]"/>
36 <xsl:apply-templates select="." mode="common.html.attributes"/>
37 <xsl:call-template name="id.attribute"/>
38 <xsl:call-template name="anchor"/>
40 <xsl:if test="(title or info/title) and $placement = 'before'">
41 <xsl:call-template name="formal.object.heading"/>
44 <xsl:apply-templates select="$preamble"/>
46 <xsl:if test="(title or info/title) and $placement != 'before'">
47 <xsl:call-template name="formal.object.heading"/>
52 <xsl:template match="task/title">
56 <xsl:template match="tasksummary">
57 <xsl:call-template name="semiformal.object"/>
60 <xsl:template match="tasksummary/title"/>
62 <xsl:template match="taskprerequisites">
63 <xsl:call-template name="semiformal.object"/>
66 <xsl:template match="taskprerequisites/title"/>
68 <xsl:template match="taskrelated">
69 <xsl:call-template name="semiformal.object"/>
72 <xsl:template match="taskrelated/title"/>