comparison schemas/doxygen/csharp/member.xsl @ 7:fa7a99c2d079

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