1 <?xml version="1.0" encoding="ASCII"?><!--This file was created automatically by html2xhtml--><!--from the HTML stylesheets.--><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://docbook.org/ns/docbook" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="d" version="1.0">
3 <!-- ********************************************************************
5 This file is part of the XSL DocBook Stylesheet distribution.
6 See ../README or http://cdn.docbook.org/release/xsl/current/ for
7 copyright and other information.
9 ******************************************************************** -->
11 <!-- ==================================================================== -->
13 <xsl:template match="d:task">
14 <xsl:variable name="param.placement" select="substring-after(normalize-space($formal.title.placement), concat(local-name(.), ' '))"/>
16 <xsl:variable name="placement">
18 <xsl:when test="contains($param.placement, ' ')">
19 <xsl:value-of select="substring-before($param.placement, ' ')"/>
21 <xsl:when test="$param.placement = ''">before</xsl:when>
23 <xsl:value-of select="$param.placement"/>
28 <xsl:variable name="preamble" select="*[not(self::d:title or self::d:titleabbrev)]"/>
31 <xsl:apply-templates select="." mode="common.html.attributes"/>
32 <xsl:call-template name="id.attribute"/>
33 <xsl:call-template name="anchor"/>
35 <xsl:if test="(d:title or d:info/d:title) and $placement = 'before'">
36 <xsl:call-template name="formal.object.heading"/>
39 <xsl:apply-templates select="$preamble"/>
41 <xsl:if test="(d:title or d:info/d:title) and $placement != 'before'">
42 <xsl:call-template name="formal.object.heading"/>
47 <xsl:template match="d:task/d:title">
51 <xsl:template match="d:tasksummary">
52 <xsl:call-template name="semiformal.object"/>
55 <xsl:template match="d:tasksummary/d:title"/>
57 <xsl:template match="d:taskprerequisites">
58 <xsl:call-template name="semiformal.object"/>
61 <xsl:template match="d:taskprerequisites/d:title"/>
63 <xsl:template match="d:taskrelated">
64 <xsl:call-template name="semiformal.object"/>
67 <xsl:template match="d:taskrelated/d:title"/>