]> git.lyx.org Git - lyx.git/blob - lib/docbook/xhtml/task.xsl
Use same find-dialogs as other bind-files also for x?emacs
[lyx.git] / lib / docbook / xhtml / task.xsl
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">
2
3 <!-- ********************************************************************
4
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.
8
9      ******************************************************************** -->
10
11 <!-- ==================================================================== -->
12
13 <xsl:template match="d:task">
14   <xsl:variable name="param.placement" select="substring-after(normalize-space($formal.title.placement),                                         concat(local-name(.), ' '))"/>
15
16   <xsl:variable name="placement">
17     <xsl:choose>
18       <xsl:when test="contains($param.placement, ' ')">
19         <xsl:value-of select="substring-before($param.placement, ' ')"/>
20       </xsl:when>
21       <xsl:when test="$param.placement = ''">before</xsl:when>
22       <xsl:otherwise>
23         <xsl:value-of select="$param.placement"/>
24       </xsl:otherwise>
25     </xsl:choose>
26   </xsl:variable>
27
28   <xsl:variable name="preamble" select="*[not(self::d:title                               or self::d:titleabbrev)]"/>
29
30   <div>
31     <xsl:apply-templates select="." mode="common.html.attributes"/>
32     <xsl:call-template name="id.attribute"/>
33     <xsl:call-template name="anchor"/>
34
35     <xsl:if test="(d:title or d:info/d:title) and $placement = 'before'">
36       <xsl:call-template name="formal.object.heading"/>
37     </xsl:if>
38
39     <xsl:apply-templates select="$preamble"/>
40
41     <xsl:if test="(d:title or d:info/d:title) and $placement != 'before'">
42       <xsl:call-template name="formal.object.heading"/>
43     </xsl:if>
44   </div>
45 </xsl:template>
46
47 <xsl:template match="d:task/d:title">
48   <!-- nop -->
49 </xsl:template>
50
51 <xsl:template match="d:tasksummary">
52   <xsl:call-template name="semiformal.object"/>
53 </xsl:template>
54
55 <xsl:template match="d:tasksummary/d:title"/>
56
57 <xsl:template match="d:taskprerequisites">
58   <xsl:call-template name="semiformal.object"/>
59 </xsl:template>
60
61 <xsl:template match="d:taskprerequisites/d:title"/>
62
63 <xsl:template match="d:taskrelated">
64   <xsl:call-template name="semiformal.object"/>
65 </xsl:template>
66
67 <xsl:template match="d:taskrelated/d:title"/>
68
69 </xsl:stylesheet>