894faeaf9ee5768a26e5a457bf191ec142394ce5
[mono.git] / mcs / class / monodoc / Resources / mdoc-sections.xsl
1 <?xml version="1.0"?>
2
3 <!--
4         mdoc-sections.xsl: Common non-CSS implementation of mdoc-html-utils.xsl
5                            required functions.
6
7         Author: Jonathan Pryor  <jpryor@novell.com>
8
9 -->
10
11 <xsl:stylesheet
12         version="1.0"
13         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
14         xmlns:monodoc="monodoc:///extensions"
15         exclude-result-prefixes="monodoc"
16         >
17         <xsl:template name="CreateH2Section">
18                 <xsl:param name="name" />
19                 <xsl:param name="id" select="''" />
20                 <xsl:param name="child-id" select="generate-id (.)" />
21                 <xsl:param name="content" />
22
23                 <h2 class="Section">
24                         <xsl:value-of select="$name" />
25                 </h2>
26                 <blockquote id="{$child-id}">
27                         <xsl:copy-of select="$content" />
28                 </blockquote>
29         </xsl:template>
30
31         <xsl:template name="CreateH3Section">
32                 <xsl:param name="name" />
33                 <xsl:param name="id" select="''" />
34                 <xsl:param name="class" select="''" />
35                 <xsl:param name="child-id" select="generate-id (.)" />
36                 <xsl:param name="content" />
37
38                 <h3>
39                         <xsl:value-of select="$name" />
40                 </h3>
41                 <blockquote id="{$child-id}">
42                         <xsl:copy-of select="$content" />
43                 </blockquote>
44         </xsl:template>
45
46         <xsl:template name="CreateH4Section">
47                 <xsl:param name="name" />
48                 <xsl:param name="id" select="''" />
49                 <xsl:param name="child-id" select="generate-id (.)" />
50                 <xsl:param name="content" />
51
52                 <h4 class="Subsection">
53                         <xsl:value-of select="$name" />
54                 </h4>
55                 <blockquote class="SubsectionBox" id="{$child-id}">
56                         <xsl:copy-of select="$content" />
57                 </blockquote>
58         </xsl:template>
59
60         <xsl:template name="CreateEnumerationTable">
61                 <xsl:param name="content" />
62                 <table class="EnumerationsTable" border="1" cellpadding="10" width="100%">
63                         <tr bgcolor="#f2f2f2">
64                                 <th>Member Name</th>
65                                 <th>Description</th>
66                         </tr>
67                         <xsl:copy-of select="$content" />
68                 </table>
69         </xsl:template>
70
71         <xsl:template name="CreateHeader">
72                 <xsl:param name="content" />
73                 <table class="HeaderTable" width="100%" cellpadding="5">
74                         <tr bgcolor="#b0c4de">
75                                 <td>
76                                         <xsl:copy-of select="$content" />
77                                 </td>
78                         </tr>
79                 </table>
80         </xsl:template>
81
82         <xsl:template name="CreateListTable">
83                 <xsl:param name="header" />
84                 <xsl:param name="content" />
85                 <table border="1" cellpadding="3" width="100%">
86                         <tr bgcolor="#f2f2f2" valign="top">
87                                 <xsl:copy-of select="$header" />
88                         </tr>
89                         <xsl:copy-of select="$content" />
90                 </table>
91         </xsl:template>
92
93         <xsl:template name="CreateMembersTable">
94                 <xsl:param name="content" />
95                 <table border="1" cellpadding="6" width="100%">
96                         <xsl:copy-of select="$content" />
97                 </table>
98         </xsl:template>
99
100         <xsl:template name="CreateSignature">
101                 <xsl:param name="content" />
102                 <xsl:param name="id" />
103                 <table class="SignatureTable" bgcolor="#c0c0c0" cellspacing="0" width="100%">
104                   <xsl:attribute name="id">
105                         <xsl:copy-of select="$id" />
106                   </xsl:attribute>
107                 <tr><td>
108                         <table class="InnerSignatureTable" cellpadding="10" cellspacing="0" width="100%">
109                         <tr bgcolor="#f2f2f2">
110                                 <td>
111                                 <xsl:copy-of select="$content" />
112                         </td></tr>
113                         </table>
114                 </td></tr>
115                 </table>
116                 <br />
117         </xsl:template>
118         
119         <xsl:template name="CreateTypeDocumentationTable">
120                 <xsl:param name="content" />
121                 <table class="TypePermissionsTable" border="1" cellpadding="6" width="100%">
122                 <tr bgcolor="#f2f2f2"><th>Type</th><th>Reason</th></tr>
123                         <xsl:copy-of select="$content" />
124                 </table>
125         </xsl:template>
126
127 </xsl:stylesheet>