| 1 |
<xsl:stylesheet version="1.0" |
|---|
| 2 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|---|
| 3 |
|
|---|
| 4 |
<xsl:template match="parameter" name="configparams"> |
|---|
| 5 |
<variablelist> |
|---|
| 6 |
<varlistentry><term><xsl:value-of select="@name"/></term> |
|---|
| 7 |
<listitem> |
|---|
| 8 |
<variablelist> |
|---|
| 9 |
<varlistentry><term>required</term><listitem><para><xsl:value-of select="@required"/></para></listitem></varlistentry> |
|---|
| 10 |
<xsl:if test="@default"> |
|---|
| 11 |
<varlistentry><term>default</term><listitem><para> |
|---|
| 12 |
<xsl:value-of select="@default"/> |
|---|
| 13 |
</para></listitem></varlistentry> |
|---|
| 14 |
</xsl:if> |
|---|
| 15 |
<varlistentry><term>allowed</term><listitem><para><xsl:value-of select="@allowed"/></para></listitem></varlistentry> |
|---|
| 16 |
</variablelist> |
|---|
| 17 |
<para> |
|---|
| 18 |
<xsl:value-of select="." /> |
|---|
| 19 |
</para> |
|---|
| 20 |
</listitem> |
|---|
| 21 |
</varlistentry> |
|---|
| 22 |
</variablelist> |
|---|
| 23 |
</xsl:template> |
|---|
| 24 |
|
|---|
| 25 |
<xsl:template match="/"> |
|---|
| 26 |
<section> |
|---|
| 27 |
<title><xsl:value-of select="module/name"/></title> |
|---|
| 28 |
<xsl:copy-of disable-output-escaping="yes" select="module/description/*"/> |
|---|
| 29 |
|
|---|
| 30 |
<variablelist> |
|---|
| 31 |
<varlistentry><term>loader</term><listitem><para><xsl:value-of select="module/loader"/></para></listitem></varlistentry> |
|---|
| 32 |
<xsl:if test="module/image"> |
|---|
| 33 |
<varlistentry><term>image</term><listitem><para><xsl:value-of select="module/image"/></para></listitem></varlistentry> |
|---|
| 34 |
</xsl:if> |
|---|
| 35 |
<xsl:if test="module/object"> |
|---|
| 36 |
<varlistentry><term>object</term><listitem><para><xsl:value-of select="module/object"/></para></listitem></varlistentry> |
|---|
| 37 |
</xsl:if> |
|---|
| 38 |
</variablelist> |
|---|
| 39 |
|
|---|
| 40 |
<section> |
|---|
| 41 |
<title>Module Configuration</title> |
|---|
| 42 |
<xsl:for-each select="module/moduleconfig/parameter"> |
|---|
| 43 |
<xsl:call-template name="configparams" /> |
|---|
| 44 |
</xsl:for-each> |
|---|
| 45 |
</section> |
|---|
| 46 |
|
|---|
| 47 |
<section> |
|---|
| 48 |
<title>Check Configuration</title> |
|---|
| 49 |
<xsl:for-each select="module/checkconfig/parameter"> |
|---|
| 50 |
<xsl:call-template name="configparams" /> |
|---|
| 51 |
</xsl:for-each> |
|---|
| 52 |
</section> |
|---|
| 53 |
|
|---|
| 54 |
<xsl:for-each select="module/examples/example"> |
|---|
| 55 |
<xsl:copy-of select="."/> |
|---|
| 56 |
</xsl:for-each> |
|---|
| 57 |
</section> |
|---|
| 58 |
</xsl:template> |
|---|
| 59 |
</xsl:stylesheet> |
|---|