source: trunk/Distribution/XSL/html/task.xsl@ 2

Last change on this file since 2 was 2, checked in by jkacer, 18 years ago

Added all DocBook Framework stuff:

  • DocBook DTD
  • Transformation software FOP 0.20.5 and Saxon 6
  • XSL styles
  • Rexx scripts

Also added some WarpIN-related stuff for creation of WarpIN installation packages.
This state corresponds to version 1.0.0 from November 2005, just slightly modified to carry versioning information (Rexx scripts).

File size: 2.1 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,v 1.2 2003/11/30 19:42:23 bobstayton Exp $
7 ********************************************************************
8
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.
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 class="{name(.)}">
39 <xsl:call-template name="anchor"/>
40
41 <xsl:if test="title and $placement = 'before'">
42 <xsl:call-template name="formal.object.heading"/>
43 </xsl:if>
44
45 <xsl:apply-templates select="$preamble"/>
46
47 <xsl:if test="title and $placement != 'before'">
48 <xsl:call-template name="formal.object.heading"/>
49 </xsl:if>
50 </div>
51</xsl:template>
52
53<xsl:template match="task/title">
54 <!-- nop -->
55</xsl:template>
56
57<xsl:template match="tasksummary">
58 <xsl:call-template name="semiformal.object"/>
59</xsl:template>
60
61<xsl:template match="taskprerequisites">
62 <xsl:call-template name="semiformal.object"/>
63</xsl:template>
64
65<xsl:template match="taskrelated">
66 <xsl:call-template name="semiformal.object"/>
67</xsl:template>
68
69</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.