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>
11 <xsl:value-of select=
"@number"/>:
<xsl:value-of select=
"@title"/>
13 <xsl:if test=
"@informative">
20 <xsl:apply-templates />
23 <xsl:template match=
"paragraph">
25 <xsl:apply-templates />
29 <xsl:template match=
"keyword">
30 <i> <xsl:apply-templates/></i> <xsl:text> </xsl:text>
33 <xsl:template match=
"hyperlink">
34 <a href=
"ecmaspec:{.}">
35 <xsl:value-of select=
"." />
39 <xsl:template match=
"list">
41 <xsl:for-each select=
"list_item|list">
42 <li><xsl:apply-templates /></li>
47 <xsl:template match=
"code_example">
48 <table bgcolor=
"#f5f5dd" border=
"1" cellpadding=
"5">
52 <xsl:apply-templates />
59 <xsl:template match=
"symbol">
61 <xsl:apply-templates />
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">
71 <xsl:apply-templates select=
"node()" />
77 <xsl:template match=
"non_terminal">
79 <code><xsl:text> </xsl:text><xsl:value-of select=
"." /></code>
82 <xsl:template match=
"terminal">
83 <code><xsl:text> </xsl:text><xsl:value-of select=
"." /></code>
86 <xsl:template match=
"opt">
90 <xsl:template match=
"@*|node()">
92 <xsl:apply-templates select=
"@*|node()"/>