Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/boostbook/xsl/global.xsl @ 29

Last change on this file since 29 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 3.0 KB
Line 
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="global-synopsis-impl">
43          <xsl:with-param name="link-type" select="'none'" />
44        </xsl:call-template>
45      </xsl:with-param>
46      <xsl:with-param name="text">
47        <xsl:apply-templates select="description" />
48      </xsl:with-param>
49    </xsl:call-template>
50  </xsl:template>
51  <xsl:template name="global-synopsis-impl">
52    <xsl:param name="link-type" />
53    <xsl:if test="@specifiers">
54      <xsl:call-template name="highlight-keyword">
55        <xsl:with-param name="keyword" select="@specifiers" />
56      </xsl:call-template>
57      <xsl:text> </xsl:text>
58    </xsl:if>
59    <xsl:apply-templates select="type/*|type/text()" mode="annotation" />
60    <xsl:text> </xsl:text>
61    <xsl:call-template name="link-or-anchor">
62      <xsl:with-param name="to">
63        <xsl:call-template name="generate.id" select="." />
64      </xsl:with-param>
65      <xsl:with-param name="text" select="@name" />
66      <xsl:with-param name="link-type" select="$link-type" />
67    </xsl:call-template>
68    <xsl:text>;</xsl:text>
69  </xsl:template>
70  <xsl:template match="data-member" mode="generate.id">
71    <xsl:call-template name="fully-qualified-name">
72      <xsl:with-param name="node" select="."/>
73      <xsl:with-param name="separator" select="'.'"/>
74    </xsl:call-template>
75  </xsl:template>
76</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.