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 - <xsl:value-of select="/docs/@version"/> 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 - <xsl:value-of select="/docs/@version"/> 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>
34 </span> returns <span class='tooltip'><xsl:value-of select="@type"/></span>
36 <xsl:value-of select="@short"/>
40 <xsl:for-each select="desc">
41 <xsl:call-template name="break" />
44 <xsl:for-each select="examples">
48 <p><xsl:value-of select="desc"/></p>
50 <pre><xsl:value-of select="code"/></pre>
51 <xsl:if test="before">
53 <pre><xsl:value-of select="before"/></pre>
55 <xsl:if test="result">
57 <pre><xsl:value-of select="result"/></pre>
66 <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>
71 <xsl:template name="break">
72 <xsl:param name="text" select="." />
74 <xsl:when test="contains($text, '

')">
75 <xsl:value-of select="substring-before($text, '

')" />
77 <xsl:call-template name="break">
78 <xsl:with-param name="text" select="substring-after($text, '

')" />
82 <xsl:value-of select="$text" />