source: trunk/Distribution/XSL/xhtml/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.2 KB
Line 
1<?xml version="1.0" encoding="US-ASCII"?>
2<!--This file was created automatically by html2xhtml-->
3<!--from the HTML stylesheets. Do not edit this file.-->
4<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
5
6<!-- ********************************************************************
7 $Id: task.xsl,v 1.2 2003/11/30 19:42:23 bobstayton Exp $
8 ********************************************************************
9
10 This file is part of the XSL DocBook Stylesheet distribution.
11 See ../README or http://nwalsh.com/docbook/xsl/ for copyright
12 and other information.
13
14 ******************************************************************** -->
15
16<!-- ==================================================================== -->
17
18<xsl:template match="task">
19 <xsl:variable name="param.placement" select="substring-after(normalize-space($formal.title.placement), concat(local-name(.), ' '))"/>
20
21 <xsl:variable name="placement">
22 <xsl:choose>
23 <xsl:when test="contains($param.placement, ' ')">
24 <xsl:value-of select="substring-before($param.placement, ' ')"/>
25 </xsl:when>
26 <xsl:when test="$param.placement = ''">before</xsl:when>
27 <xsl:otherwise>
28 <xsl:value-of select="$param.placement"/>
29 </xsl:otherwise>
30 </xsl:choose>
31 </xsl:variable>
32
33 <xsl:variable name="preamble" select="*[not(self::title or self::titleabbrev)]"/>
34
35 <div class="{name(.)}">
36 <xsl:call-template name="anchor"/>
37
38 <xsl:if test="title and $placement = 'before'">
39 <xsl:call-template name="formal.object.heading"/>
40 </xsl:if>
41
42 <xsl:apply-templates select="$preamble"/>
43
44 <xsl:if test="title and $placement != 'before'">
45 <xsl:call-template name="formal.object.heading"/>
46 </xsl:if>
47 </div>
48</xsl:template>
49
50<xsl:template match="task/title">
51 <!-- nop -->
52</xsl:template>
53
54<xsl:template match="tasksummary">
55 <xsl:call-template name="semiformal.object"/>
56</xsl:template>
57
58<xsl:template match="taskprerequisites">
59 <xsl:call-template name="semiformal.object"/>
60</xsl:template>
61
62<xsl:template match="taskrelated">
63 <xsl:call-template name="semiformal.object"/>
64</xsl:template>
65
66</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.