2006-08-13 03:05:31 +00:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
|
|
|
|
|
|
<xsl:template match="/*">
|
|
|
|
<html>
|
|
|
|
<head>
|
2006-10-10 01:17:47 +00:00
|
|
|
<title>jQuery Docs - <xsl:value-of select="/docs/@version"/> API</title>
|
2006-08-13 03:05:31 +00:00
|
|
|
<link rel="stylesheet" href="style/style.css"/>
|
2006-08-14 01:46:05 +00:00
|
|
|
<script src="../dist/jquery.js"></script>
|
2006-08-13 03:05:31 +00:00
|
|
|
<script src="js/tooltip.js"></script>
|
|
|
|
<script src="js/pager.js"></script>
|
2006-08-13 18:58:58 +00:00
|
|
|
<script src="js/doc.js"></script>
|
2006-08-13 03:05:31 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2006-10-10 01:17:47 +00:00
|
|
|
<h1>jQuery Docs - <xsl:value-of select="/docs/@version"/> API</h1>
|
2006-08-13 03:05:31 +00:00
|
|
|
<ul id="docs">
|
|
|
|
<xsl:for-each select="method[not(@private)]">
|
2006-09-05 06:21:35 +00:00
|
|
|
<xsl:sort select="translate(@name,'$.','')"/>
|
2006-08-13 03:05:31 +00:00
|
|
|
<xsl:sort select="count(params)"/>
|
|
|
|
<li>
|
2006-08-14 01:46:05 +00:00
|
|
|
<span class='type'><span class='tooltip'><xsl:value-of select="@type"/></span></span>
|
2006-08-13 03:05:31 +00:00
|
|
|
<span class='fn'>
|
|
|
|
<a href='#{@name}' class='name' title=''><xsl:value-of select="@name"/></a>
|
|
|
|
<xsl:if test="not(@property)">(
|
|
|
|
<xsl:for-each select="params">
|
2006-08-14 01:46:05 +00:00
|
|
|
<span class='arg-type tooltip'><xsl:value-of select="@type"/></span><xsl:text> </xsl:text>
|
|
|
|
<span class='arg-name tooltip' title='{desc}'><xsl:value-of select="@name"/></span>
|
2006-08-13 03:05:31 +00:00
|
|
|
<xsl:if test="position() != last()">
|
|
|
|
<xsl:if test="@any"> or </xsl:if>
|
|
|
|
<xsl:if test="not(@any)">, </xsl:if>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:for-each>
|
|
|
|
)</xsl:if>
|
2007-01-02 19:05:00 +00:00
|
|
|
</span> returns <span class='tooltip'><xsl:value-of select="@type"/></span>
|
2006-08-13 03:05:31 +00:00
|
|
|
<div class='short'>
|
|
|
|
<xsl:value-of select="@short"/>
|
|
|
|
</div>
|
|
|
|
<div class='more'>
|
|
|
|
<div class='desc'>
|
2006-12-12 20:33:10 +00:00
|
|
|
<xsl:for-each select="desc">
|
|
|
|
<xsl:call-template name="break" />
|
|
|
|
</xsl:for-each>
|
2006-08-13 03:05:31 +00:00
|
|
|
</div>
|
|
|
|
<xsl:for-each select="examples">
|
|
|
|
<div class='example'>
|
|
|
|
<h5>Example:</h5>
|
|
|
|
<xsl:if test="desc">
|
|
|
|
<p><xsl:value-of select="desc"/></p>
|
|
|
|
</xsl:if>
|
|
|
|
<pre><xsl:value-of select="code"/></pre>
|
|
|
|
<xsl:if test="before">
|
|
|
|
<b>HTML:</b>
|
|
|
|
<pre><xsl:value-of select="before"/></pre>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="result">
|
|
|
|
<b>Result:</b>
|
|
|
|
<pre><xsl:value-of select="result"/></pre>
|
|
|
|
</xsl:if>
|
|
|
|
</div>
|
|
|
|
</xsl:for-each>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</xsl:for-each>
|
|
|
|
</ul>
|
2006-08-14 01:46:05 +00:00
|
|
|
|
|
|
|
<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>
|
2006-08-13 03:05:31 +00:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</xsl:template>
|
|
|
|
|
2006-12-12 20:33:10 +00:00
|
|
|
<xsl:template name="break">
|
|
|
|
<xsl:param name="text" select="." />
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="contains($text, '

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

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

')" />
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:value-of select="$text" />
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:template>
|
|
|
|
|
2006-08-13 03:05:31 +00:00
|
|
|
</xsl:stylesheet>
|