comparison schemas/doxygen/csharp/briefsections.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:template match="memberdef" mode="sectiondefType">
7 <div class="memberdef">
8 <div class="memberdefName">
9 <xsl:call-template name="memberdefName" />
10 </div>
11 <div class="memberdefDescription">
12 <xsl:call-template name="memberdefDescription" />
13 </div>
14 </div>
15 </xsl:template>
16
17 <xsl:template name="memberdefName">
18 <span class="textPre">
19 <xsl:if test="@virt = 'virtual'">
20 <xsl:text>virtual </xsl:text>
21 </xsl:if>
22 <xsl:if test="@kind = 'enum'">
23 <xsl:text>enum </xsl:text>
24 </xsl:if>
25 <xsl:if test="type">
26 <xsl:apply-templates select="type" mode="memberdefType" />
27 <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
28 </xsl:if>
29 <xsl:call-template name="link">
30 <xsl:with-param name="refid" select="@id" />
31 <xsl:with-param name="kind" select="'member'" />
32 <xsl:with-param name="external" />
33 <xsl:with-param name="text">
34 <xsl:apply-templates select="name" mode="memberdefType" />
35 </xsl:with-param>
36 </xsl:call-template>
37 <xsl:if test="argsstring">
38 <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
39 <xsl:apply-templates select="argsstring" mode="memberdefType"/>
40 </xsl:if>
41 <xsl:if test="initializer">
42 <xsl:text> </xsl:text>
43 <xsl:apply-templates select="initializer" mode="memberdefType" />
44 </xsl:if>
45 <xsl:if test="@kind = 'property'">
46 <xsl:text>{ </xsl:text>
47 <xsl:if test="@gettable = 'yes'"><xsl:text>get; </xsl:text></xsl:if>
48 <xsl:if test="@settable = 'yes'"><xsl:text>set; </xsl:text></xsl:if>
49 <xsl:text>}</xsl:text>
50 </xsl:if>
51 </span>
52 </xsl:template>
53
54 <xsl:template name="memberdefDescription">
55 <xsl:apply-templates select="briefdescription"
56 mode="memberdefType" />
57 </xsl:template>
58 </xsl:stylesheet>