76356d2f13edde8c47417e7086c1424bc3b4b298
[mono.git] / mcs / class / monodoc / Resources / mono-ecma.xsl
1 <?xml version="1.0"?>
2
3 <!--
4         mono-ecma.xsl: ECMA-style docs to HTML stylesheet trasformation
5
6         Author: Joshua Tauberer (tauberer@for.net)
7
8         TODO:
9                 split this into multiple files
10 -->
11
12 <xsl:stylesheet
13         version="1.0"
14         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
15         xmlns:monodoc="monodoc:///extensions"
16         exclude-result-prefixes="monodoc"
17         >
18         <xsl:import href="mdoc-sections.xsl" />
19         <xsl:import href="mono-ecma-impl.xsl" />
20         
21         <xsl:output omit-xml-declaration="yes" />
22
23         <xsl:template name="CreateCodeBlock">
24                 <xsl:param name="language" />
25                 <xsl:param name="content" />
26                 <table class="CodeExampleTable" bgcolor="#f5f5dd" border="1" cellpadding="5" width="100%">
27                         <tr><td><b><xsl:value-of select="$language"/> Example</b></td></tr>
28                         <tr>
29                                 <td>
30                                         <!--
31                                         <xsl:value-of select="monodoc:Colorize($content, string($language))" 
32                                                 disable-output-escaping="yes" />
33                                                 -->
34                                         <pre>
35                                                 <xsl:value-of select="$content" />
36                                         </pre>
37                                 </td>
38                         </tr>
39                 </table>
40         </xsl:template>
41
42 </xsl:stylesheet>