Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / tools / monkeydoc / Resources / toc-html.xsl
1 <?xml version="1.0" encoding="utf-8"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3   <xsl:output method="html" />
4
5   <xsl:template match="/toc">
6         <table bgcolor="#b0c4de" width="100%" cellpadding="5"><tr><td><h3><xsl:value-of select="@title" /></h3></td></tr></table>
7         <xsl:apply-templates />
8   </xsl:template>
9
10   <xsl:template match="description">
11         <p><xsl:value-of select="." /></p>
12   </xsl:template>
13
14   <xsl:template match="list">
15         <ul>
16           <xsl:apply-templates />
17         </ul>
18   </xsl:template>
19
20   <xsl:template match="item">
21         <xsl:choose>
22           <xsl:when test="list">
23                 <li>
24                 <xsl:apply-templates select="list" />
25                 </li>
26           </xsl:when>
27           <xsl:otherwise>
28                 <li><a href="{@url}"><xsl:value-of select="." /></a></li>
29           </xsl:otherwise>
30         </xsl:choose>
31   </xsl:template>
32 </xsl:stylesheet>