Mercurial > pub > site.implab
comparison schemas/doxygen/csharp/interface.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:template name="compounddefType"> | |
8 <h1> | |
9 <xsl:apply-templates select="title|compoundname" | |
10 mode="compounddefType" /> | |
11 </h1> | |
12 <div class="briefdescription"> | |
13 <xsl:apply-templates select="briefdescription" | |
14 mode="compounddefType" /> | |
15 </div> | |
16 <div class="dox-source-code"> | |
17 <span class="keyword"> | |
18 <xsl:value-of select="concat(@prot,' ')"/> | |
19 <xsl:if test="@abstract"><xsl:text>abstract </xsl:text></xsl:if> | |
20 <xsl:if test="@sealed"><xsl:text>sealed </xsl:text></xsl:if> | |
21 <xsl:value-of select="concat(@kind,' ')"/> | |
22 </span> | |
23 <xsl:call-template name="short-type-name"> | |
24 <xsl:with-param name="typename" select="compoundname"/> | |
25 </xsl:call-template> | |
26 <xsl:if test="basecompoundref"> | |
27 <xsl:text> : </xsl:text> | |
28 <xsl:for-each select="basecompoundref"> | |
29 <xsl:call-template name="compoundRefType"/> | |
30 <xsl:if test="not(last() = position())"> | |
31 <xsl:text>, </xsl:text> | |
32 </xsl:if> | |
33 </xsl:for-each> | |
34 </xsl:if> | |
35 </div> | |
36 <div class="detaileddescription"> | |
37 <xsl:apply-templates select="detaileddescription" | |
38 mode="compounddefType" /> | |
39 </div> | |
40 | |
41 <div class="innerCompounds"> | |
42 | |
43 <xsl:apply-templates select="innerclass | innernamespace" | |
44 mode="compounddefType" /> | |
45 </div> | |
46 | |
47 <div class="members"> | |
48 <xsl:apply-templates select="sectiondef" mode="compounddefType" /> | |
49 </div> | |
50 | |
51 <xsl:if test="derivedcompoundref"> | |
52 <div class="sectiondef"> | |
53 <h3>Derived</h3> | |
54 <ul class="derivedcompoundref-list"> | |
55 <xsl:apply-templates select="derivedcompoundref" | |
56 mode="compounddefType" /> | |
57 </ul> | |
58 </div> | |
59 </xsl:if> | |
60 </xsl:template> | |
61 <xsl:template match="derivedcompoundref" mode="compounddefType"> | |
62 <li><xsl:apply-imports/></li> | |
63 </xsl:template> | |
64 | |
65 <xsl:template match="memberdef" mode="sectiondefType"> | |
66 <div class="memberdef"> | |
67 <div class="memberdefName"> | |
68 <xsl:call-template name="memberdefName" /> | |
69 </div> | |
70 <div class="memberdefDescription"> | |
71 <xsl:call-template name="memberdefDescription" /> | |
72 </div> | |
73 </div> | |
74 </xsl:template> | |
75 | |
76 <xsl:template name="memberdefName"> | |
77 <span class="textPre"> | |
78 <xsl:if test="type"> | |
79 <xsl:apply-templates select="type" mode="memberdefType" /> | |
80 <xsl:text disable-output-escaping="yes">&nbsp;</xsl:text> | |
81 </xsl:if> | |
82 <xsl:call-template name="link"> | |
83 <xsl:with-param name="refid" select="@id" /> | |
84 <xsl:with-param name="kind" select="'member'" /> | |
85 <xsl:with-param name="external" /> | |
86 <xsl:with-param name="text"> | |
87 <xsl:apply-templates select="name" mode="memberdefType"/> | |
88 </xsl:with-param> | |
89 </xsl:call-template> | |
90 <xsl:text disable-output-escaping="yes">&nbsp;</xsl:text> | |
91 <xsl:value-of select="argsstring/text()" /> | |
92 </span> | |
93 </xsl:template> | |
94 | |
95 <xsl:template name="memberdefDescription"> | |
96 <xsl:apply-templates select="briefdescription" | |
97 mode="memberdefType" /> | |
98 </xsl:template> | |
99 </xsl:stylesheet> |