fluidsynth/doc/fluidsettings.xsl

101 lines
3.1 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<html>
<head>
<style>
2017-10-01 12:26:32 +00:00
table
{
border: 2px solid black;
}
td
{
<!-- border-bottom: 2px solid black; -->
<!-- border-top: 0px solid black; -->
2017-10-01 19:11:34 +00:00
<!-- padding-top: 20px; -->
<!-- padding-bottom: 20px; -->
padding: 15px 5px 15px 5px;
2017-10-01 12:26:32 +00:00
}
.cell-type
{
text-align: center;
white-space: nowrap;
}
.cell-def
{
text-align: center;
white-space: nowrap;
}
.cell-vals { text-align: center; }
.audio {background-color: rgb( 255, 190, 170 );}
.midi {background-color: rgb( 200, 255, 240 );}
.player {background-color: rgb( 255, 255, 180 );}
.synth {background-color: rgb( 190, 255, 170 );}
</style>
</head>
<body>
<h2>FluidSettings</h2>
2017-10-01 12:26:32 +00:00
<table>
<tr bgcolor="#9acd32">
<th>Name</th>
<th>Type</th>
<th>Default Value</th>
<th>Allowed Values</th>
<th>Description</th>
</tr>
<!--print each and every setting to its own row in the table-->
<xsl:for-each select="fluidsettings/*/*">
2017-10-01 12:26:32 +00:00
<xsl:sort select="name(..)" />
<xsl:sort select="name" />
<tr>
<!-- the class attribute of tr shall be the name of the settings group of the current setting -->
<xsl:attribute name="class">
<xsl:value-of select="name(..)" />
</xsl:attribute>
<td>
<xsl:value-of select="name(..)" />.<xsl:value-of select="name" />
</td>
2017-10-01 12:26:32 +00:00
<td class="cell-type">
<xsl:value-of select="type" />
</td>
<td class="cell-def">
<xsl:copy-of select="def" />
</td>
<td class="cell-vals">
<xsl:choose>
2017-10-01 12:26:32 +00:00
<xsl:when test="type = 'str'">
<xsl:value-of select="vals" />
</xsl:when>
<xsl:when test="type = 'bool'">
</xsl:when>
<xsl:otherwise>
2017-10-01 12:26:32 +00:00
[
<xsl:value-of select="min" />
;
<xsl:value-of select="max" />
]
</xsl:otherwise>
</xsl:choose>
</td>
2017-10-01 12:26:32 +00:00
<td class="cell-desc">
<xsl:copy-of select="desc" />
</td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>