|
3 | 3 | This file is part of the DITA-OT Doxygen Plug-in project. |
4 | 4 | See the accompanying LICENSE file for applicable licenses. |
5 | 5 | --> |
6 | | -<xsl:stylesheet exclude-result-prefixes="dita-ot" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
7 | | - xmlns:xs="http://www.w3.org/2001/XMLSchema" |
8 | | - xmlns:dita-ot="http://dita-ot.sourceforge.net/ns/201007/dita-ot" |
9 | | - version="2.0"> |
| 6 | +<xsl:stylesheet |
| 7 | + exclude-result-prefixes="dita-ot" |
| 8 | + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 9 | + xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 10 | + xmlns:dita-ot="http://dita-ot.sourceforge.net/ns/201007/dita-ot" |
| 11 | + version="2.0" |
| 12 | +> |
10 | 13 | <!-- |
11 | 14 | Class Overview |
12 | 15 | --> |
13 | 16 | <xsl:template match="compounddef" mode="class"> |
14 | | - <topic domains="(topic abbrev-d) a(props deliveryTarget) (topic equation-d) (topic hazard-d) (topic hi-d) (topic indexing-d) (topic markup-d) (topic mathml-d) (topic pr-d) (topic relmgmt-d) (topic sw-d) (topic svg-d) (topic ui-d) (topic ut-d) (topic markup-d xml-d)" class="- topic/topic " props="doxygen"> |
| 17 | + <topic |
| 18 | + domains="(topic abbrev-d) a(props deliveryTarget) (topic equation-d) (topic hazard-d) (topic hi-d) (topic indexing-d) (topic markup-d) (topic mathml-d) (topic pr-d) (topic relmgmt-d) (topic sw-d) (topic svg-d) (topic ui-d) (topic ut-d) (topic markup-d xml-d)" |
| 19 | + class="- topic/topic " |
| 20 | + props="doxygen" |
| 21 | + > |
15 | 22 | <xsl:attribute name="id"> |
16 | 23 | <xsl:value-of select="dita-ot:name-to-id(compoundname)"/> |
17 | 24 | </xsl:attribute> |
|
42 | 49 | <ul class="- topic/ul "> |
43 | 50 | <xsl:for-each select="basecompoundref"> |
44 | 51 | <li class="- topic/li "> |
45 | | - <xsl:call-template name="add-link" > |
46 | | - <xsl:with-param name="type" select="'topic'" /> |
47 | | - <xsl:with-param name="href" select="concat('#', .)" /> |
48 | | - <xsl:with-param name="text" select="." /> |
| 52 | + <xsl:call-template name="add-link"> |
| 53 | + <xsl:with-param name="type" select="'topic'"/> |
| 54 | + <xsl:with-param name="href" select="concat('#', .)"/> |
| 55 | + <xsl:with-param name="text" select="."/> |
49 | 56 | </xsl:call-template> |
50 | 57 | </li> |
51 | 58 | </xsl:for-each> |
|
61 | 68 | <ul class="- topic/ul "> |
62 | 69 | <xsl:for-each select="derivedcompoundref"> |
63 | 70 | <li class="- topic/li "> |
64 | | - <xsl:call-template name="add-link" > |
65 | | - <xsl:with-param name="type" select="'topic'" /> |
66 | | - <xsl:with-param name="href" select="concat('#', .)" /> |
67 | | - <xsl:with-param name="text" select="." /> |
| 71 | + <xsl:call-template name="add-link"> |
| 72 | + <xsl:with-param name="type" select="'topic'"/> |
| 73 | + <xsl:with-param name="href" select="concat('#', .)"/> |
| 74 | + <xsl:with-param name="text" select="."/> |
68 | 75 | </xsl:call-template> |
69 | 76 | </li> |
70 | 77 | </xsl:for-each> |
|
79 | 86 | <xsl:when test="basecompoundref/@refid"> |
80 | 87 | <xsl:variable name="extends" select="basecompoundref/@refid"/> |
81 | 88 | <xsl:text> extends </xsl:text> |
82 | | - <xsl:call-template name="add-link" > |
83 | | - <xsl:with-param name="type" select="'topic'" /> |
84 | | - <xsl:with-param name="href" select="concat('#', dita-ot:name-to-id(//compounddef[@id=$extends]/compoundname))" /> |
85 | | - <xsl:with-param name="text" select="replace(basecompoundref,'^.*\.','')" /> |
| 89 | + <xsl:call-template name="add-link"> |
| 90 | + <xsl:with-param name="type" select="'topic'"/> |
| 91 | + <xsl:with-param |
| 92 | + name="href" |
| 93 | + select="concat('#', dita-ot:name-to-id(//compounddef[@id=$extends]/compoundname))" |
| 94 | + /> |
| 95 | + <xsl:with-param name="text" select="replace(basecompoundref,'^.*\.','')"/> |
86 | 96 | </xsl:call-template> |
87 | 97 | </xsl:when> |
88 | 98 | <xsl:when test="basecompoundref"> |
|
95 | 105 | <xsl:if test="sectiondef[contains(@kind,'-attrib')]/memberdef[@kind='variable' and @prot='public']"> |
96 | 106 | <!-- Class Field Summary --> |
97 | 107 | <section class="- topic/section " outputclass="fields_summary"> |
98 | | - <title class="- topic/title " > |
| 108 | + <title class="- topic/title "> |
99 | 109 | <xsl:text>Field Summary</xsl:text> |
100 | 110 | </title> |
101 | 111 | <xsl:call-template name="add-field-summary"/> |
|
104 | 114 | <xsl:if test="sectiondef[contains(@kind,'-func')]/memberdef[@kind='function' and type='' and @prot='public']"> |
105 | 115 | <!-- Class Constructor Summary --> |
106 | 116 | <section class="- topic/section " outputclass="contructors_summary"> |
107 | | - <title class="- topic/title " > |
| 117 | + <title class="- topic/title "> |
108 | 118 | <xsl:text>Constructor Summary</xsl:text> |
109 | 119 | </title> |
110 | 120 | <xsl:call-template name="add-constructor-summary"/> |
111 | 121 | </section> |
112 | 122 | </xsl:if> |
113 | 123 | <!-- Class Method Summary --> |
114 | 124 | <section class="- topic/section " outputclass="methods_summary"> |
115 | | - <title class="- topic/title " > |
| 125 | + <title class="- topic/title "> |
116 | 126 | <xsl:text>Method Summary</xsl:text> |
117 | 127 | </title> |
118 | | - <xsl:if test="sectiondef[contains(@kind,'-func')]/memberdef[@kind='function' and not(type='') and @prot='public']"> |
| 128 | + <xsl:if |
| 129 | + test="sectiondef[contains(@kind,'-func')]/memberdef[@kind='function' and not(type='') and @prot='public']" |
| 130 | + > |
119 | 131 | <xsl:call-template name="add-method-summary"/> |
120 | 132 | </xsl:if> |
121 | 133 | <xsl:call-template name="add-inherited-method-summary"/> |
|
127 | 139 | <xsl:attribute name="id"> |
128 | 140 | <xsl:value-of select="concat(compoundname, '_fields')"/> |
129 | 141 | </xsl:attribute> |
130 | | - <title class="- topic/title " > |
| 142 | + <title class="- topic/title "> |
131 | 143 | <xsl:text>Field Detail</xsl:text> |
132 | 144 | </title> |
133 | | - <xsl:apply-templates select="sectiondef[contains(@kind,'-attrib')]/memberdef[@kind='variable' and @prot='public']" mode="field" > |
| 145 | + <xsl:apply-templates |
| 146 | + select="sectiondef[contains(@kind,'-attrib')]/memberdef[@kind='variable' and @prot='public']" |
| 147 | + mode="field" |
| 148 | + > |
134 | 149 | <xsl:sort select="@id"/> |
135 | 150 | </xsl:apply-templates> |
136 | 151 | </section> |
|
142 | 157 | <xsl:attribute name="id"> |
143 | 158 | <xsl:value-of select="concat(compoundname, '_constructors')"/> |
144 | 159 | </xsl:attribute> |
145 | | - <title class="- topic/title " > |
| 160 | + <title class="- topic/title "> |
146 | 161 | <xsl:text>Constructor Detail</xsl:text> |
147 | 162 | </title> |
148 | | - <xsl:apply-templates select="sectiondef[contains(@kind,'-func')]/memberdef[@kind='function' and type='' and @prot='public']" mode="constructor" > |
| 163 | + <xsl:apply-templates |
| 164 | + select="sectiondef[contains(@kind,'-func')]/memberdef[@kind='function' and type='' and @prot='public']" |
| 165 | + mode="constructor" |
| 166 | + > |
149 | 167 | <xsl:sort select="name"/> |
150 | 168 | </xsl:apply-templates> |
151 | 169 | </section> |
152 | 170 | </xsl:if> |
153 | 171 |
|
154 | | - <xsl:if test="sectiondef[contains(@kind,'-func')]/memberdef[@kind='function' and not(type='') and @prot='public']"> |
| 172 | + <xsl:if |
| 173 | + test="sectiondef[contains(@kind,'-func')]/memberdef[@kind='function' and not(type='') and @prot='public']" |
| 174 | + > |
155 | 175 | <!-- Method Detail--> |
156 | 176 | <section class="- topic/section " outputclass="methods"> |
157 | 177 | <xsl:attribute name="id"> |
158 | 178 | <xsl:value-of select="concat(compoundname, '_methods')"/> |
159 | 179 | </xsl:attribute> |
160 | | - <title class="- topic/title " > |
| 180 | + <title class="- topic/title "> |
161 | 181 | <xsl:text>Method Detail</xsl:text> |
162 | 182 | </title> |
163 | | - <xsl:apply-templates select="sectiondef[contains(@kind,'-func')]/memberdef[@kind='function' and not(type='') and @prot='public']" mode="method"> |
| 183 | + <xsl:apply-templates |
| 184 | + select="sectiondef[contains(@kind,'-func')]/memberdef[@kind='function' and not(type='') and @prot='public']" |
| 185 | + mode="method" |
| 186 | + > |
164 | 187 | <xsl:sort select="name"/> |
165 | 188 | </xsl:apply-templates> |
166 | 189 | </section> |
|
184 | 207 | </row> |
185 | 208 | </thead> |
186 | 209 | <tbody class="- topic/tbody "> |
187 | | - <xsl:for-each select="sectiondef[contains(@kind,'-func')]/memberdef[@kind='function' and type='' and @prot='public']"> |
| 210 | + <xsl:for-each |
| 211 | + select="sectiondef[contains(@kind,'-func')]/memberdef[@kind='function' and type='' and @prot='public']" |
| 212 | + > |
188 | 213 | <xsl:sort select="name"/> |
189 | 214 | <xsl:variable name="constructor" select="name"/> |
190 | 215 | <row class="- topic/row "> |
191 | | - <entry class="- topic/entry " colname="c1" align="left"> |
| 216 | + <entry class="- topic/entry " colname="c1" align="left"> |
192 | 217 | <codeph class="+ topic/ph pr-d/codeph "> |
193 | 218 | <xsl:attribute name="xtrc" select="concat('codeph:',generate-id(.),'1')"/> |
194 | | - <xsl:call-template name="add-link" > |
195 | | - <xsl:with-param name="type" select="'table'" /> |
| 219 | + <xsl:call-template name="add-link"> |
| 220 | + <xsl:with-param name="type" select="'table'"/> |
196 | 221 | <xsl:with-param name="href"> |
197 | | - <xsl:value-of select="concat('#', dita-ot:name-to-id(ancestor::compounddef/compoundname), '/constructors_', $constructor)" /> |
| 222 | + <xsl:value-of |
| 223 | + select="concat('#', dita-ot:name-to-id(ancestor::compounddef/compoundname), '/constructors_', $constructor)" |
| 224 | + /> |
198 | 225 | <xsl:if test="count(../memberdef[name=$constructor])>1"> |
199 | 226 | <xsl:value-of select="count(following-sibling::memberdef[name=$constructor])"/> |
200 | 227 | </xsl:if> |
201 | 228 | </xsl:with-param> |
202 | | - <xsl:with-param name="text" select="$constructor" /> |
| 229 | + <xsl:with-param name="text" select="$constructor"/> |
203 | 230 | </xsl:call-template> |
204 | 231 | <xsl:call-template name="add-signature"/> |
205 | 232 | </codeph> |
|
243 | 270 | <xsl:value-of select="count(following-sibling::memberdef[name=$constructor])"/> |
244 | 271 | </xsl:if> |
245 | 272 | </xsl:attribute> |
246 | | - <xsl:call-template name="mini-table" > |
| 273 | + <xsl:call-template name="mini-table"> |
247 | 274 | <xsl:with-param name="header"> |
248 | 275 | <xsl:value-of select="$constructor"/> |
249 | 276 | </xsl:with-param> |
|
276 | 303 | <xsl:sort select="name"/> |
277 | 304 | <xsl:variable name="field" select="name"/> |
278 | 305 | <row class="- topic/row "> |
279 | | - <entry class="- topic/entry " colname="c1" align="left"> |
| 306 | + <entry class="- topic/entry " colname="c1" align="left"> |
280 | 307 | <codeph class="+ topic/ph pr-d/codeph "> |
281 | 308 | <xsl:attribute name="xtrc" select="concat('codeph:',generate-id(.),'3')"/> |
282 | 309 | <xsl:call-template name="add-modifiers"/> |
|
285 | 312 | </xsl:call-template> |
286 | 313 | </codeph> |
287 | 314 | </entry> |
288 | | - <entry class="- topic/entry " colname="c2" align="left"> |
| 315 | + <entry class="- topic/entry " colname="c2" align="left"> |
289 | 316 | <codeph class="+ topic/ph pr-d/codeph "> |
290 | 317 | <xsl:attribute name="xtrc" select="concat('codeph:',generate-id(.),'4')"/> |
291 | | - <xsl:call-template name="add-link" > |
292 | | - <xsl:with-param name="type" select="'table'" /> |
| 318 | + <xsl:call-template name="add-link"> |
| 319 | + <xsl:with-param name="type" select="'table'"/> |
293 | 320 | <xsl:with-param name="href"> |
294 | | - <xsl:value-of select="concat('#', dita-ot:name-to-id(ancestor::compounddef/compoundname), '/fields_', $field)"/> |
| 321 | + <xsl:value-of |
| 322 | + select="concat('#', dita-ot:name-to-id(ancestor::compounddef/compoundname), '/fields_', $field)" |
| 323 | + /> |
295 | 324 | <xsl:if test="count(../memberdef[name=$field])>1"> |
296 | 325 | <xsl:value-of select="count(following-sibling::memberdef[name=$field])"/> |
297 | 326 | </xsl:if> |
298 | 327 | </xsl:with-param> |
299 | | - <xsl:with-param name="text" select="$field" /> |
| 328 | + <xsl:with-param name="text" select="$field"/> |
300 | 329 | </xsl:call-template> |
301 | 330 | </codeph> |
302 | 331 | <xsl:if test="normalize-space(briefdescription)!=''"> |
|
330 | 359 | </xsl:call-template> |
331 | 360 | <xsl:value-of select="concat(' ',$field)"/> |
332 | 361 | </codeph> |
333 | | - <xsl:call-template name="parse-detailed-description"/> |
| 362 | + <xsl:call-template name="parse-detailed-description"/> |
334 | 363 | </xsl:variable> |
335 | 364 |
|
336 | 365 | <table class="- topic/table " outputclass="field_details"> |
|
340 | 369 | <xsl:value-of select="count(following-sibling::memberdef[name=$field])"/> |
341 | 370 | </xsl:if> |
342 | 371 | </xsl:attribute> |
343 | | - <xsl:call-template name="mini-table" > |
| 372 | + <xsl:call-template name="mini-table"> |
344 | 373 | <xsl:with-param name="header"> |
345 | 374 | <xsl:value-of select="$field"/> |
346 | 375 | </xsl:with-param> |
|
0 commit comments