annotate schemas/doxygen/csharp/default.xsl @ 14:d997ff96acf1

sync
author sergey
date Mon, 19 May 2014 18:34:16 +0400
parents fa7a99c2d079
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
2 <xsl:stylesheet version="1.0"
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
4 <xsl:import href="base.xsl" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
5 <xsl:param name="compounds" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
6 <xsl:param name="members" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
7 <xsl:variable name="labels" select="document('labels.xml')"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
8
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
9 <xsl:key name="param-key" use="concat(generate-id(parent::node()),declname/text())" match="memberdef/param[declname]"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
10
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
11 <xsl:output method="html" encoding="utf-8" indent="yes"
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
12 omit-xml-declaration="yes" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
13
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
14 <!-- The main template -->
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
15 <xsl:template name="compounddefType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
16 <h1>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
17 <xsl:apply-templates select="title|compoundname"
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
18 mode="compounddefType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
19 </h1>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
20 <div class="briefdescription">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
21 <xsl:apply-templates select="briefdescription"
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
22 mode="compounddefType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
23 </div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
24 <div class="basecompoundref">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
25 <pre>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
26 <xsl:apply-templates select="basecompoundref"
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
27 mode="compounddefType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
28 </pre>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
29 </div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
30 <div class="detaileddescription">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
31 <xsl:apply-templates select="detaileddescription"
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
32 mode="compounddefType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
33 </div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
34
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
35 <div class="innerCompounds">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
36 <xsl:apply-templates select="innerclass | innernamespace"
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
37 mode="compounddefType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
38 </div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
39
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
40 <div class="members">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
41 <xsl:apply-templates select="sectiondef" mode="compounddefType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
42 </div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
43
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
44 <xsl:if test="derivedcompoundref">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
45 <div class="derivedcompoundref">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
46 <h2>Derived</h2>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
47 <xsl:apply-templates select="derivedcompoundref"
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
48 mode="compounddefType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
49 </div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
50 </xsl:if>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
51 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
52
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
53 <xsl:template match="compoundname" mode="compounddefType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
54 <xsl:call-template name="full-type-name">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
55 <xsl:with-param name="typename" select="text()" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
56 </xsl:call-template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
57 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
58
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
59 <!-- handle references -->
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
60 <xsl:template name="compoundRefType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
61 <xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
62 <xsl:when test="@refid">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
63 <xsl:call-template name="link">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
64 <xsl:with-param name="class" select="'doxCompoundRef'"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
65 <xsl:with-param name="refid" select="@refid" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
66 <xsl:with-param name="kind" select="'compound'" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
67 <xsl:with-param name="external" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
68 <xsl:with-param name="text" select="text()" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
69 </xsl:call-template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
70 </xsl:when>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
71 <xsl:otherwise>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
72 <span class="doxCompoundRef">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
73 <xsl:value-of select="text()" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
74 </span>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
75 </xsl:otherwise>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
76 </xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
77 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
78
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
79 <xsl:template name="refTextType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
80 <xsl:element name="a">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
81 <xsl:attribute name="href">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
82 <xsl:call-template name="ref">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
83 <xsl:with-param name="refid" select="@refid" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
84 <xsl:with-param name="kind" select="@kindref" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
85 <xsl:with-param name="external" select="@external" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
86 </xsl:call-template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
87 </xsl:attribute>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
88 <xsl:value-of select="text()" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
89 </xsl:element>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
90 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
91
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
92 <xsl:template match="innerclass" mode="compounddefType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
93 <xsl:call-template name="link">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
94 <xsl:with-param name="refid" select="@refid" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
95 <xsl:with-param name="kind" select="'compound'" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
96 <xsl:with-param name="external" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
97 <xsl:with-param name="text" >
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
98 <xsl:call-template name="short-type-name">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
99 <xsl:with-param name="typename" select="text()" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
100 </xsl:call-template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
101 </xsl:with-param>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
102 </xsl:call-template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
103 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
104
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
105 <xsl:template match="innernamespace" mode="compounddefType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
106 <xsl:element name="a">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
107 <xsl:attribute name="href">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
108 <xsl:call-template name="ref">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
109 <xsl:with-param name="refid" select="@refid" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
110 <xsl:with-param name="kind" select="'compound'" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
111 <xsl:with-param name="external" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
112 </xsl:call-template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
113 </xsl:attribute>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
114 <xsl:call-template name="short-type-name">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
115 <xsl:with-param name="typename" select="text()" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
116 </xsl:call-template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
117 </xsl:element>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
118 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
119
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
120 <xsl:template name="docRefTextType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
121 <xsl:element name="a">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
122 <xsl:attribute name="href">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
123 <xsl:call-template name="ref">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
124 <xsl:with-param name="refid" select="@refid" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
125 <xsl:with-param name="kind" select="@kindref" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
126 <xsl:with-param name="external" select="@external" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
127 </xsl:call-template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
128 </xsl:attribute>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
129 <xsl:apply-templates mode="docRefTextType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
130 </xsl:element>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
131 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
132
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
133 <!-- paragraph -->
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
134 <xsl:template name="docParaType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
135 <p class="para">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
136 <xsl:apply-templates mode="docParaType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
137 </p>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
138 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
139
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
140 <!-- inline markup -->
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
141 <xsl:template name="docMarkupType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
142 <xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
143 <xsl:when test="name() = 'computeroutput'">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
144 <span class="docTextPre">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
145 <xsl:apply-templates mode="docMarkupType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
146 </span>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
147 </xsl:when>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
148 <xsl:otherwise>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
149 <xsl:apply-templates mode="docMarkupType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
150 </xsl:otherwise>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
151 </xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
152 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
153
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
154 <!-- paramlist -->
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
155 <xsl:template name="docParamListType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
156 <div class="parameterlist">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
157 <h4>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
158 <xsl:call-template name="translate-paramlist">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
159 <xsl:with-param name="name" select="@kind"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
160 </xsl:call-template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
161 </h4>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
162 <xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
163 <xsl:when test="@kind = 'param'">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
164 <xsl:call-template name="docParamListType-param"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
165 </xsl:when>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
166 <xsl:otherwise>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
167 <table class="pretty-table">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
168 <tr>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
169 <th>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
170 Parameter
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
171 </th>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
172 <th>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
173 Description
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
174 </th>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
175 </tr>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
176 <xsl:apply-templates mode="docParamListType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
177 </table>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
178 </xsl:otherwise>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
179 </xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
180 </div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
181 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
182
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
183 <xsl:template match="parameteritem" mode="docParamListType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
184 <tr>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
185 <td>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
186 <xsl:apply-templates select="parameternamelist" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
187 </td>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
188 <td>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
189 <xsl:apply-templates select="parameterdescription" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
190 </td>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
191 </tr>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
192 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
193
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
194 <xsl:template name="docParamListType-param">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
195 <table class="pretty-table">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
196 <tr>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
197 <th>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
198 Type
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
199 </th>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
200 <th>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
201 Parameter
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
202 </th>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
203 <th>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
204 Description
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
205 </th>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
206 </tr>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
207 <xsl:apply-templates mode="docParamListType-param" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
208 </table>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
209 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
210
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
211 <xsl:template match="parameteritem" mode="docParamListType-param">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
212 <tr>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
213 <td>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
214 <xsl:apply-templates select="key('param-key', concat(generate-id(ancestor::memberdef),parameternamelist/parametername/text()))/type" mode="paramType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
215 </td>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
216 <td>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
217 <xsl:apply-templates select="parameternamelist" mode="docParamListItem"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
218 </td>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
219 <td>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
220 <xsl:apply-templates select="parameterdescription" mode="docParamListItem"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
221 </td>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
222 </tr>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
223 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
224
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
225 <!-- section -->
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
226 <xsl:template name="sectiondefType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
227 <div class="sectiondef">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
228 <h3>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
229 <xsl:call-template name="section-label">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
230 <xsl:with-param name="name" select="@kind"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
231 </xsl:call-template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
232 </h3>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
233 <div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
234 <xsl:apply-templates mode="sectiondefType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
235 </div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
236 </div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
237 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
238
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
239 <xsl:template name="docSimpleSectType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
240 <div class="simplesection">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
241 <h3>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
242 <xsl:call-template name="translate-simplesection">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
243 <xsl:with-param name="name" select="@kind"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
244 </xsl:call-template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
245 </h3>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
246 <div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
247 <xsl:apply-templates mode="docSimpleSectType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
248 </div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
249 </div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
250 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
251
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
252 <xsl:template match="simplesectsep" mode="docSimpleSectType"><hr class="simplesectsep" /></xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
253
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
254 <!-- SOURCE CODE FORMATTING -->
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
255
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
256 <xsl:template name="listingType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
257 <xsl:apply-templates mode="listingType"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
258 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
259 <xsl:template name="codelineType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
260 <div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
261 <xsl:apply-templates mode="codelineType"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
262 </div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
263 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
264 <xsl:template match="sp" mode="highlightType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
265 <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
266 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
267 <xsl:template match="highlight" mode="codelineType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
268 <span class="{@class}"><xsl:call-template name="highlightType"/></span>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
269 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
270
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
271 <!-- TOOLS -->
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
272 <xsl:template name="link">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
273 <xsl:param name="refid" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
274 <xsl:param name="kind" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
275 <xsl:param name="external" select="''" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
276 <xsl:param name="text" select="'[ link here ]'" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
277 <xsl:param name="class" select="''"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
278 <xsl:element name="a">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
279 <xsl:attribute name="href">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
280 <xsl:call-template name="ref">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
281 <xsl:with-param name="refid" select="$refid" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
282 <xsl:with-param name="kind" select="$kind" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
283 <xsl:with-param name="external" select="$external" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
284 </xsl:call-template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
285 </xsl:attribute>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
286 <xsl:if test="$class">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
287 <xsl:attribute name="class"><xsl:value-of select="$class"/></xsl:attribute>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
288 </xsl:if>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
289 <xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
290 <xsl:when test="*">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
291 <xsl:copy-of select="$text"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
292 </xsl:when>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
293 <xsl:otherwise>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
294 <xsl:value-of select="$text"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
295 </xsl:otherwise>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
296 </xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
297 </xsl:element>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
298
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
299 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
300 <xsl:template name="ref">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
301 <xsl:param name="refid" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
302 <xsl:param name="kind" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
303 <xsl:param name="external" select="''" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
304 <xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
305 <xsl:when test="$kind = 'member'">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
306 <xsl:value-of select="concat($members,'/',$refid)" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
307 </xsl:when>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
308 <xsl:when test="$kind = 'compound'">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
309 <xsl:value-of select="concat($compounds,'/',$refid)" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
310 </xsl:when>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
311 <xsl:otherwise></xsl:otherwise>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
312 </xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
313 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
314
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
315 <xsl:template name="string-replace-all">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
316 <xsl:param name="text" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
317 <xsl:param name="replace" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
318 <xsl:param name="with" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
319 <xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
320 <xsl:when test="contains($text, $replace)">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
321 <xsl:value-of select="substring-before($text,$replace)" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
322 <xsl:value-of select="$with" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
323 <xsl:call-template name="string-replace-all">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
324 <xsl:with-param name="text"
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
325 select="substring-after($text,$replace)" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
326 <xsl:with-param name="replace" select="$replace" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
327 <xsl:with-param name="with" select="$with" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
328 </xsl:call-template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
329 </xsl:when>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
330 <xsl:otherwise>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
331 <xsl:value-of select="$text" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
332 </xsl:otherwise>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
333 </xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
334 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
335
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
336 <xsl:template name="full-type-name">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
337 <xsl:param name="typename" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
338 <xsl:call-template name="string-replace-all">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
339 <xsl:with-param name="text" select="$typename" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
340 <xsl:with-param name="replace" select="'::'" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
341 <xsl:with-param name="with" select="'.'" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
342 </xsl:call-template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
343 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
344
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
345 <xsl:template name="short-type-name">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
346 <xsl:param name="typename" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
347 <xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
348 <xsl:when test="contains($typename,'::')">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
349 <xsl:call-template name="short-type-name">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
350 <xsl:with-param name="typename"
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
351 select="substring-after($typename,'::')" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
352 </xsl:call-template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
353 </xsl:when>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
354 <xsl:otherwise>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
355 <xsl:value-of select="$typename" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
356 </xsl:otherwise>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
357 </xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
358 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
359
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
360 <xsl:template name="section-label">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
361 <xsl:param name="name"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
362 <xsl:variable name="label" select="$labels/labels/sections/label[@name = $name]"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
363 <xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
364 <xsl:when test="$label"><xsl:value-of select="$label"/></xsl:when>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
365 <xsl:otherwise><xsl:value-of select="$name" /></xsl:otherwise>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
366 </xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
367 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
368
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
369 <xsl:template name="translate-section">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
370 <xsl:param name="name"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
371 <xsl:variable name="label" select="$labels/labels/sections/label[@name = $name]"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
372 <xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
373 <xsl:when test="$label"><xsl:value-of select="$label"/></xsl:when>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
374 <xsl:otherwise><xsl:value-of select="$name" /></xsl:otherwise>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
375 </xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
376 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
377
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
378 <xsl:template name="translate-simplesection">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
379 <xsl:param name="name"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
380 <xsl:variable name="label" select="$labels/labels/simplesections/label[@name = $name]"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
381 <xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
382 <xsl:when test="$label"><xsl:value-of select="$label"/></xsl:when>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
383 <xsl:otherwise><xsl:value-of select="$name" /></xsl:otherwise>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
384 </xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
385 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
386
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
387 <xsl:template name="translate-paramlist">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
388 <xsl:param name="name"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
389 <xsl:variable name="label" select="$labels/labels/paramlists/label[@name = $name]"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
390 <xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
391 <xsl:when test="$label"><xsl:value-of select="$label"/></xsl:when>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
392 <xsl:otherwise><xsl:value-of select="$name" /></xsl:otherwise>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
393 </xsl:choose>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
394 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
395
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
396 </xsl:stylesheet>