2010-04-08 Jb Evain <jbevain@novell.com>
[mcs.git] / tools / monodoc / Resources / ecmaspec-html.xsl
blob631ee03a202f1a37f81eb00b7ea78a7fd0e1d44d
1 <?xml version="1.0"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3 <xsl:output omit-xml-declaration="yes" />
5 <xsl:template match="/clause">
6 <table width="100%" cellpadding="5">
7 <tr bgcolor="#b0c4de"><td>
8 <i>ECMA-334 C# Language Specification</i>
10 <h3>
11 <xsl:value-of select="@number"/>: <xsl:value-of select="@title"/>
13 <xsl:if test="@informative">
14 (informative)
15 </xsl:if>
16 </h3>
17 </td></tr>
18 </table>
20 <xsl:apply-templates />
21 </xsl:template>
23 <xsl:template match="paragraph">
24 <p>
25 <xsl:apply-templates />
26 </p>
27 </xsl:template>
29 <xsl:template match="keyword">
30 <i> <xsl:apply-templates/></i> <xsl:text> </xsl:text>
31 </xsl:template>
33 <xsl:template match="hyperlink">
34 <a href="ecmaspec:{.}">
35 <xsl:value-of select="." />
36 </a>
37 </xsl:template>
39 <xsl:template match="list">
40 <ul>
41 <xsl:for-each select="list_item|list">
42 <li><xsl:apply-templates /></li>
43 </xsl:for-each>
44 </ul>
45 </xsl:template>
47 <xsl:template match="code_example">
48 <table bgcolor="#f5f5dd" border="1" cellpadding="5">
49 <tr>
50 <td>
51 <pre>
52 <xsl:apply-templates />
53 </pre>
54 </td>
55 </tr>
56 </table>
57 </xsl:template>
59 <xsl:template match="symbol">
60 <code>
61 <xsl:apply-templates />
62 </code>
63 </xsl:template>
65 <xsl:template match="grammar_production">
66 <dl id="nt_{name/non_terminal/.}">
67 <dt><xsl:value-of select="name/non_terminal/." /></dt>
69 <xsl:for-each select="rhs">
70 <dd>
71 <xsl:apply-templates select="node()" />
72 </dd>
73 </xsl:for-each>
74 </dl>
75 </xsl:template>
77 <xsl:template match="non_terminal">
79 <code><xsl:text> </xsl:text><xsl:value-of select="." /></code>
80 </xsl:template>
82 <xsl:template match="terminal">
83 <code><xsl:text> </xsl:text><xsl:value-of select="." /></code>
84 </xsl:template>
86 <xsl:template match="opt">
87 <sub>opt</sub>
88 </xsl:template>
90 <xsl:template match="@*|node()">
91 <xsl:copy>
92 <xsl:apply-templates select="@*|node()"/>
93 </xsl:copy>
94 </xsl:template>
96 </xsl:stylesheet>