Files
itgmania212121/stepmania/Docs/Lua.xsl
T

143 lines
3.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/Lua">
<html>
<head>
<title>StepMania LUA Information</title>
<style type="text/css">
th {
background-color: #FAEBD7;
border: 1px solid
}
table {
border: 1px solid
}
td {
border: 1px solid
}
.trigger {
cursor: pointer
}
</style>
<script type="text/javascript">
function Toggle( id )
{
var imgid = 'img_' + id;
var listid = 'list_' + id;
var img = document.getElementById( imgid );
var list = document.getElementById( listid );
if( img.getAttribute('src') == 'closed.gif' )
{
img.setAttribute( 'src', 'open.gif' );
list.style.display = 'block';
}
else
{
img.setAttribute( 'src', 'closed.gif' );
list.style.display = 'none';
}
}
</script>
</head>
<body>
<div>
<h2>StepMania LUA Information</h2>
<table><tr>
<th><a href="#Singletons">Singletons</a></th>
<th><a href="#Classes">Classes</a></th>
<th><a href="#GlobalFunctions">Global Functions</a></th>
<th><a href="#Constants">Constants</a></th>
</tr></table>
</div>
<div>
<a name="Singletons" />
<h3>Singletons</h3>
<ul>
<xsl:for-each select="Singletons/Singleton">
<xsl:sort select="@name" />
<li><a>
<xsl:attribute name="href">#<xsl:value-of select="@class" /></xsl:attribute>
<xsl:value-of select="@name" />
</a></li>
</xsl:for-each>
</ul>
</div>
<div>
<a name="Classes" />
<h3>Classes</h3>
<xsl:for-each select="Classes/Class">
<xsl:sort select="@name" />
<div>
<a>
<xsl:attribute name="name"><xsl:value-of select="@name" /></xsl:attribute>
</a>
<a class="trigger">
<xsl:attribute name="onClick">Toggle('<xsl:value-of select="@name" />')</xsl:attribute>
<img src="closed.gif">
<xsl:attribute name="id">img_<xsl:value-of select="@name" /></xsl:attribute>
</img>
Class <xsl:value-of select="@name" /></a>
<xsl:if test="@base != ''">
: <a>
<xsl:attribute name="href">#<xsl:value-of select="@base" /></xsl:attribute>
<xsl:value-of select="@base" />
</a>
</xsl:if>
<ul style="display: none">
<xsl:attribute name="id">list_<xsl:value-of select="@name" /></xsl:attribute>
<xsl:for-each select="Function">
<xsl:sort select="@name" />
<li><xsl:value-of select="@name" /></li>
</xsl:for-each>
</ul>
</div>
</xsl:for-each>
</div>
<div>
<a name="GlobalFunctions" />
<h3>Global Functions</h3>
<ul>
<xsl:for-each select="GlobalFunctions/Function">
<xsl:sort select="@name" />
<li><xsl:value-of select="@name" /></li>
</xsl:for-each>
</ul>
</div>
<div>
<a name="Constants" />
<h3>Constants</h3>
<table>
<tr>
<th>Constant</th>
<th>Value</th>
</tr>
<xsl:for-each select="Constants/Constant">
<xsl:sort select="@name" />
<tr>
<td><xsl:value-of select="@name" /></td>
<td><xsl:value-of select="@value" /></td>
</tr>
</xsl:for-each>
</table>
<br/>
</div>
<hr width="90%" />
<center>
<p>Generated for <xsl:value-of select="Version" /> on
<xsl:value-of select="Date" />.</p>
</center>
</body>
</html>
</xsl:template>
</xsl:stylesheet>