Fixed missing brackets (d'oh)
[jquery.git] / build / docs / style / cat.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
3 <xsl:output method="html"/>
4   <xsl:template match="/docs">
5     <html xmlns="http://www.w3.org/1999/xhtml">
6       <head>
7         <title>jQuery Printable API</title>
8         <link rel="stylesheet" href="style/cat.css"/>
9       </head>
10       <body>
11         <h1>jQuery Printable API</h1>
12         <xsl:apply-templates/>
13       </body>
14     </html>
15   </xsl:template>
16   
17   <xsl:template match="cat">
18     <h2><xsl:value-of select="@value"/></h2>
19     <ul class="list">
20       <xsl:for-each select="method[not(@private)]">
21         <xsl:sort select="@name"/>
22         <xsl:sort select="count(params)"/>
23         <li>
24           <xsl:value-of select="@name"/>(<xsl:for-each select="params">
25             <xsl:value-of select="@name"/>
26             <xsl:if test="position() != last()">, </xsl:if>
27           </xsl:for-each>)
28         </li>
29       </xsl:for-each>
30       <xsl:apply-templates select="cat"/>
31     </ul>
32   </xsl:template>
33 </xsl:stylesheet>