git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@976 e016b1c5-ed68-44aa-a2f7-31cac88cffde
108 lines
4.1 KiB
HTML
108 lines
4.1 KiB
HTML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- (C) 2007 Adrian Henke, ZLIB license -->
|
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
|
|
<!-- avoid IE quirks mode -->
|
|
<xsl:output method="html" omit-xml-declaration="yes" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
|
|
|
|
<xsl:template match="/cuberef">
|
|
<html>
|
|
<head>
|
|
<title>Command Reference</title>
|
|
<meta http-equiv="content-type" content="application/xhtml+xml;charset=utf-8" />
|
|
<link rel="stylesheet" href="ref.css"/>
|
|
<link rel="stylesheet" href="docs.css" /> <!-- additional stuff -->
|
|
</head>
|
|
|
|
<body>
|
|
<div align="center" class="cuberef">
|
|
<div id="header">Rabid Viper Productions</div>
|
|
<div id="main">
|
|
|
|
<!-- sections -->
|
|
<xsl:for-each select="section">
|
|
<div class="section">
|
|
<h2><xsl:value-of select="@name"/></h2>
|
|
|
|
<!-- identifiers -->
|
|
<xsl:for-each select="identifier">
|
|
<div class="identifier">
|
|
|
|
<!-- display name -->
|
|
<div class="displayname">
|
|
<xsl:value-of select="@name"/>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:for-each select="arguments/argument">
|
|
<xsl:value-of select="@token"/>
|
|
<xsl:text> </xsl:text>
|
|
</xsl:for-each>
|
|
</div>
|
|
|
|
<!-- description -->
|
|
<div class="description">
|
|
<xsl:value-of select="description"/>
|
|
</div>
|
|
|
|
<!-- arguments -->
|
|
<xsl:if test="arguments/argument">
|
|
<div class="arguments">
|
|
<table class="arguments">
|
|
<tr>
|
|
<th>Argument</th>
|
|
<th>Description</th>
|
|
<th>Values</th>
|
|
</tr>
|
|
<xsl:for-each select="arguments/argument">
|
|
<tr>
|
|
<td class="token">
|
|
<xsl:value-of select="@token"/>
|
|
</td>
|
|
<td class="description">
|
|
<xsl:value-of select="@description"/>
|
|
</td>
|
|
<td class="values">
|
|
<xsl:value-of select="@values"/>
|
|
</td>
|
|
</tr>
|
|
</xsl:for-each>
|
|
</table>
|
|
</div>
|
|
</xsl:if>
|
|
|
|
<!-- remarks -->
|
|
<xsl:if test="remarks">
|
|
<div class="remarks">
|
|
<xsl:value-of select="remarks"/>
|
|
</div>
|
|
</xsl:if>
|
|
|
|
<!-- references -->
|
|
<xsl:if test="references">
|
|
<div class="references">
|
|
see also:
|
|
<xsl:for-each select="references/reference">
|
|
<a>
|
|
<xsl:attribute name="href">
|
|
<xsl:value-of select="@url"/>
|
|
</xsl:attribute>
|
|
<xsl:attribute name="target">_blank</xsl:attribute>
|
|
<xsl:value-of select="@name"/>
|
|
</a>
|
|
</xsl:for-each>
|
|
</div>
|
|
</xsl:if>
|
|
|
|
</div>
|
|
</xsl:for-each>
|
|
</div>
|
|
</xsl:for-each>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|