1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4 <xsl:template match="/*">
7 <title>jQuery Docs - API</title>
8 <link rel="stylesheet" href="style/style.css"/>
9 <script src="../dist/jquery.js"></script>
10 <script src="js/tooltip.js"></script>
11 <script src="js/pager.js"></script>
12 <script src="js/doc.js"></script>
15 <h1>jQuery Docs - API</h1>
17 <xsl:for-each select="method[not(@private)]">
18 <xsl:sort select="translate(@name,'$.','')"/>
19 <xsl:sort select="count(params)"/>
21 <span class='type'><span class='tooltip'><xsl:value-of select="@type"/></span></span>
23 <a href='#{@name}' class='name' title=''><xsl:value-of select="@name"/></a>
24 <xsl:if test="not(@property)">(
25 <xsl:for-each select="params">
26 <span class='arg-type tooltip'><xsl:value-of select="@type"/></span><xsl:text> </xsl:text>
27 <span class='arg-name tooltip' title='{desc}'><xsl:value-of select="@name"/></span>
28 <xsl:if test="position() != last()">
29 <xsl:if test="@any"> or </xsl:if>
30 <xsl:if test="not(@any)">, </xsl:if>
36 <xsl:value-of select="@short"/>
40 <xsl:value-of select="desc"/>
42 <xsl:for-each select="examples">
46 <p><xsl:value-of select="desc"/></p>
48 <pre><xsl:value-of select="code"/></pre>
49 <xsl:if test="before">
51 <pre><xsl:value-of select="before"/></pre>
53 <xsl:if test="result">
55 <pre><xsl:value-of select="result"/></pre>
64 <p class="raw"><b>Raw Data:</b><xsl:text> </xsl:text><a href="data/jquery-docs-json.js">JSON</a>, <a href="data/jquery-docs-jsonp.js">JSONP</a>, <a href="data/jquery-docs-xml.xml">XML</a></p>