annotate schemas/doxygen/csharp/member.xsl @ 16:e69c970c3ddd default tip

sync
author sergey
date Tue, 20 May 2014 01:28:48 +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
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
3 version="1.0"
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
5 >
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
6 <xsl:import href="default.xsl"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
7 <xsl:param name="memberId"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
8 <xsl:template name="compounddefType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
9 <xsl:apply-templates select="//memberdef[@id = $memberId]"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
10 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
11
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
12 <xsl:template match="memberdef[@kind = 'enum']">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
13 <xsl:call-template name="memberdefType"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
14 <table class="pretty-table">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
15 <tr>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
16 <th>Name</th>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
17 <th>Description</th>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
18 </tr>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
19 <xsl:for-each select="enumvalue">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
20 <tr>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
21 <td>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
22 <xsl:value-of select="concat(name, ' ', initializer)"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
23 </td>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
24 <td>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
25 <xsl:apply-templates select="briefdescription" mode="compounddefType"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
26 <xsl:apply-templates select="detaileddescription" mode="compounddefType"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
27 </td>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
28 </tr>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
29 </xsl:for-each>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
30 </table>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
31 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
32
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
33 <xsl:template match="memberdef">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
34 <xsl:call-template name="memberdefType"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
35 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
36
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
37 <xsl:template name="memberdefType">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
38 <h1><xsl:value-of select="name"/></h1>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
39 <div class="briefdescription">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
40 <xsl:apply-templates select="briefdescription"
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
41 mode="memberdefType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
42 </div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
43 <div class="dox-source-code">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
44 <xsl:value-of select="concat(@prot,' ')"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
45 <xsl:if test="@virt = 'virtual'">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
46 <xsl:text>virtual </xsl:text>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
47 </xsl:if>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
48 <xsl:if test="@kind = 'enum'">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
49 <xsl:text>enum </xsl:text>
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:if test="type">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
52 <xsl:apply-templates select="type" mode="memberdefType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
53 <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
54 </xsl:if>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
55 <span class="memberName">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
56 <xsl:value-of select="name"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
57 </span>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
58 <xsl:if test="argsstring">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
59 <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
60 <xsl:apply-templates select="argsstring" mode="memberdefType"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
61 </xsl:if>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
62 <xsl:if test="initializer">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
63 <xsl:text> </xsl:text>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
64 <xsl:apply-templates select="initializer" mode="memberdefType" />
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
65 </xsl:if>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
66 <xsl:if test="@kind = 'property'">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
67 <xsl:text>{ </xsl:text>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
68 <xsl:if test="@gettable = 'yes'"><xsl:text>get; </xsl:text></xsl:if>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
69 <xsl:if test="@settable = 'yes'"><xsl:text>set; </xsl:text></xsl:if>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
70 <xsl:text>}</xsl:text>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
71 </xsl:if>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
72 </div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
73 <xsl:if test="detaileddescription">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
74 <div class="detaileddescription">
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
75 <xsl:apply-templates select="detaileddescription" mode="memberdefType"/>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
76 </div>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
77 </xsl:if>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
78 </xsl:template>
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
79
fa7a99c2d079 dox library templates and schemas
sergey
parents:
diff changeset
80 </xsl:stylesheet>