]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/boostbook/xsl/global.xsl
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / tools / boostbook / xsl / global.xsl
1 <?xml version="1.0" encoding="utf-8" ?>
2 <!--
3 Copyright (c) 2002 Douglas Gregor <doug.gregor -at- gmail.com>
4
5 Distributed under the Boost Software License, Version 1.0.
6 (See accompanying file LICENSE_1_0.txt or copy at
7 http://www.boost.org/LICENSE_1_0.txt)
8 -->
9 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
10 <xsl:template name="global-synopsis">
11 <xsl:param name="indentation" select="0" />
12 <xsl:if test="not(local-name(preceding-sibling::*[position()=1])=local-name(.)) and (position() &gt; 1)">
13 <xsl:text>&#10;</xsl:text>
14 </xsl:if>
15 <xsl:text>&#10;</xsl:text>
16 <xsl:call-template name="indent">
17 <xsl:with-param name="indentation" select="$indentation" />
18 </xsl:call-template>
19 <xsl:call-template name="global-synopsis-impl">
20 <xsl:with-param name="link-type" select="'link'" />
21 </xsl:call-template>
22 </xsl:template>
23 <xsl:template name="global-reference">
24 <xsl:call-template name="reference-documentation">
25 <xsl:with-param name="refname">
26 <xsl:call-template name="fully-qualified-name">
27 <xsl:with-param name="node" select="." />
28 </xsl:call-template>
29 <xsl:apply-templates select="specialization" />
30 </xsl:with-param>
31 <xsl:with-param name="purpose" select="purpose/*|purpose/text()" />
32 <xsl:with-param name="anchor">
33 <xsl:call-template name="generate.id" />
34 </xsl:with-param>
35 <xsl:with-param name="name">
36 <xsl:text>Global </xsl:text>
37 <xsl:call-template name="monospaced">
38 <xsl:with-param name="text" select="@name" />
39 </xsl:call-template>
40 </xsl:with-param>
41 <xsl:with-param name="synopsis">
42 <xsl:call-template name="header-link"/>
43 <xsl:call-template name="global-synopsis-impl">
44 <xsl:with-param name="link-type" select="'none'" />
45 </xsl:call-template>
46 </xsl:with-param>
47 <xsl:with-param name="text">
48 <xsl:apply-templates select="description" />
49 </xsl:with-param>
50 </xsl:call-template>
51 </xsl:template>
52 <xsl:template name="global-synopsis-impl">
53 <xsl:param name="link-type" />
54 <xsl:if test="@specifiers">
55 <xsl:call-template name="highlight-keyword">
56 <xsl:with-param name="keyword" select="@specifiers" />
57 </xsl:call-template>
58 <xsl:text> </xsl:text>
59 </xsl:if>
60 <xsl:apply-templates select="type/*|type/text()" mode="annotation">
61 <xsl:with-param name="highlight" select="true()"/>
62 </xsl:apply-templates>
63 <xsl:text> </xsl:text>
64 <xsl:call-template name="link-or-anchor">
65 <xsl:with-param name="to">
66 <xsl:call-template name="generate.id" select="." />
67 </xsl:with-param>
68 <xsl:with-param name="text" select="@name" />
69 <xsl:with-param name="link-type" select="$link-type" />
70 </xsl:call-template>
71 <xsl:call-template name="highlight-text">
72 <xsl:with-param name="text" select="';'"/>
73 </xsl:call-template>
74 </xsl:template>
75 <xsl:template match="data-member" mode="generate.id">
76 <xsl:call-template name="fully-qualified-id">
77 <xsl:with-param name="node" select="."/>
78 </xsl:call-template>
79 </xsl:template>
80 </xsl:stylesheet>