~ubuntu-branches/ubuntu/lucid/virtuoso-opensource/lucid

« back to all changes in this revision

Viewing changes to docsrc/stylesheets/docbook/html/task.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-02-05 01:22:09 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100205012209-h2dhz20vxpx55oam
Tags: 6.1.0-0ubuntu1
* New upstream release
* Sync with Debian packaging from Git
 - Add no_do_os_calls.diff patch, don't allow do_os_calls
 - Install to /usr/lib/virtuoso instead of /usr/bin, not a user
   binary
 - virtuoso-t installed to /usr/lib/virtuoso/
* Update build-gmake-to-make.patch
* Add package virtuoso-nepomuk to install only the files needed by nepomuk
* Remove virtuoso-nepomuk files from virtuoso-opensource-6.0-bin and libvirtodbc0
* Add virtuoso-opensource-6.0-bin.links to link to virtuoso-t from /usr/bin
* libvirtodbc0 and virtuoso-opensource-6.0-bin depends on virtuoso-nepomuk
* Remove build-dep on libwbxml2-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.1.2.2 2010/01/04 11:24:47 source Exp $
 
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
 
 
38
  <div>
 
39
    <xsl:apply-templates select="." mode="common.html.attributes"/>
 
40
    <xsl:call-template name="anchor"/>
 
41
 
 
42
    <xsl:if test="title and $placement = 'before'">
 
43
      <xsl:call-template name="formal.object.heading"/>
 
44
    </xsl:if>
 
45
 
 
46
    <xsl:apply-templates select="$preamble"/>
 
47
 
 
48
    <xsl:if test="title and $placement != 'before'">
 
49
      <xsl:call-template name="formal.object.heading"/>
 
50
    </xsl:if>
 
51
  </div>
 
52
</xsl:template>
 
53
 
 
54
<xsl:template match="task/title">
 
55
  <!-- nop -->
 
56
</xsl:template>
 
57
 
 
58
<xsl:template match="tasksummary">
 
59
  <xsl:call-template name="semiformal.object"/>
 
60
</xsl:template>
 
61
 
 
62
<xsl:template match="tasksummary/title"/>
 
63
 
 
64
<xsl:template match="taskprerequisites">
 
65
  <xsl:call-template name="semiformal.object"/>
 
66
</xsl:template>
 
67
 
 
68
<xsl:template match="taskprerequisites/title"/>
 
69
 
 
70
<xsl:template match="taskrelated">
 
71
  <xsl:call-template name="semiformal.object"/>
 
72
</xsl:template>
 
73
 
 
74
<xsl:template match="taskrelated/title"/>
 
75
 
 
76
</xsl:stylesheet>