2007-01-23 10:52:51 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<xsl:stylesheet version="1.0"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns:str="http://exslt.org/strings"
|
2007-01-23 11:06:31 +00:00
|
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
2007-01-23 10:52:51 +00:00
|
|
|
xmlns="http://docbook.org/ns/docbook"
|
|
|
|
extension-element-prefixes="str"
|
|
|
|
>
|
|
|
|
|
|
|
|
<xsl:output method='xml' encoding="UTF-8" />
|
|
|
|
|
2007-01-23 11:39:02 +00:00
|
|
|
|
2007-01-23 10:52:51 +00:00
|
|
|
<xsl:template match="/expr/list">
|
|
|
|
|
2007-02-06 21:25:36 +00:00
|
|
|
<chapter xml:id="ch-options">
|
2007-01-23 10:52:51 +00:00
|
|
|
<title>List of Options</title>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
|
|
|
|
<xsl:for-each select="attrs">
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<option>
|
2007-11-11 10:46:26 +00:00
|
|
|
<xsl:for-each select="attr[@name = 'name']/string">
|
2007-01-23 10:52:51 +00:00
|
|
|
<xsl:value-of select="@value" />
|
2007-11-11 10:46:26 +00:00
|
|
|
<xsl:if test="position() != last()">.</xsl:if>
|
2007-01-23 10:52:51 +00:00
|
|
|
</xsl:for-each>
|
|
|
|
</option>
|
|
|
|
</term>
|
|
|
|
|
2007-01-23 11:39:02 +00:00
|
|
|
<listitem>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<xsl:value-of disable-output-escaping="yes"
|
|
|
|
select="attr[@name = 'description']/string/@value" />
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<emphasis>Default:</emphasis>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="attr[@name = 'default']">
|
|
|
|
<literal>
|
|
|
|
<xsl:apply-templates select="attr[@name = 'default']" />
|
|
|
|
</literal>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
none
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<xsl:if test="attr[@name = 'example']">
|
|
|
|
<para>
|
|
|
|
<emphasis>Example:</emphasis>
|
|
|
|
<literal>
|
|
|
|
<xsl:apply-templates select="attr[@name = 'example']" />
|
|
|
|
</literal>
|
|
|
|
</para>
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
</listitem>
|
2007-01-23 10:52:51 +00:00
|
|
|
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</xsl:for-each>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</chapter>
|
|
|
|
|
|
|
|
</xsl:template>
|
2007-01-23 11:39:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="string">
|
|
|
|
<!-- !!! escaping -->
|
|
|
|
"<xsl:value-of select="@value" />"
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="int">
|
|
|
|
<xsl:value-of select="@value" />
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="bool[@value = 'true']">
|
|
|
|
true
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="bool[@value = 'false']">
|
|
|
|
false
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="list">
|
|
|
|
[
|
|
|
|
<xsl:for-each select="*">
|
|
|
|
<xsl:apply-templates select="." />
|
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
</xsl:for-each>
|
|
|
|
]
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="attrs">
|
|
|
|
{
|
|
|
|
<xsl:for-each select="attr">
|
|
|
|
<xsl:value-of select="@name" />
|
|
|
|
<xsl:text> = </xsl:text>
|
|
|
|
<xsl:apply-templates select="*" />
|
|
|
|
<xsl:text>; </xsl:text>
|
|
|
|
</xsl:for-each>
|
|
|
|
}
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="derivation">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="attr[@name = 'url']/string/@value">
|
|
|
|
<emphasis>(download of <xsl:value-of select="attr[@name = 'url']/string/@value" />)</emphasis>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<emphasis>(build of <xsl:value-of select="attr[@name = 'name']/string/@value" />)</emphasis>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:template>
|
|
|
|
|
2007-01-23 10:52:51 +00:00
|
|
|
|
|
|
|
</xsl:stylesheet>
|