[c873d807] | 1 | <?xml version="1.0"?>
|
---|
| 2 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
| 3 | version="1.0">
|
---|
| 4 |
|
---|
| 5 | <!-- ********************************************************************
|
---|
[15c7d39] | 6 | $Id: task.xsl 9363 2012-05-12 23:42:32Z bobstayton $
|
---|
[c873d807] | 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 |
|
---|
[15c7d39] | 38 | <div>
|
---|
| 39 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
| 40 | <xsl:call-template name="id.attribute"/>
|
---|
[c873d807] | 41 | <xsl:call-template name="anchor"/>
|
---|
| 42 |
|
---|
[15c7d39] | 43 | <xsl:if test="(title or info/title) and $placement = 'before'">
|
---|
[c873d807] | 44 | <xsl:call-template name="formal.object.heading"/>
|
---|
| 45 | </xsl:if>
|
---|
| 46 |
|
---|
| 47 | <xsl:apply-templates select="$preamble"/>
|
---|
| 48 |
|
---|
[15c7d39] | 49 | <xsl:if test="(title or info/title) and $placement != 'before'">
|
---|
[c873d807] | 50 | <xsl:call-template name="formal.object.heading"/>
|
---|
| 51 | </xsl:if>
|
---|
[15c7d39] | 52 | </div>
|
---|
[c873d807] | 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>
|
---|