Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Side by Side Diff: third_party/docbook-xsl-1.78.0/html/task.xsl

Issue 1394993002: Doing some cleanup. (Closed) Base URL: https://github.com/dart-lang/www.dartlang.org.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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 9363 2012-05-12 23:42:32Z bobstayton $
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="id.attribute"/>
41 <xsl:call-template name="anchor"/>
42
43 <xsl:if test="(title or info/title) and $placement = 'before'">
44 <xsl:call-template name="formal.object.heading"/>
45 </xsl:if>
46
47 <xsl:apply-templates select="$preamble"/>
48
49 <xsl:if test="(title or info/title) and $placement != 'before'">
50 <xsl:call-template name="formal.object.heading"/>
51 </xsl:if>
52 </div>
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>
OLDNEW
« no previous file with comments | « third_party/docbook-xsl-1.78.0/html/table.xsl ('k') | third_party/docbook-xsl-1.78.0/html/titlepage.xsl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698