Manual: Don't show "Default: none"
This commit is contained in:
parent
b040814679
commit
b64f43cdbd
@ -36,23 +36,15 @@
|
|||||||
select="attr[@name = 'description']/string/@value" />
|
select="attr[@name = 'description']/string/@value" />
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<xsl:if test="attr[@name = 'default']">
|
||||||
<para>
|
<para>
|
||||||
<emphasis>Default:</emphasis>
|
<emphasis>Default:</emphasis>
|
||||||
<xsl:text> </xsl:text>
|
<xsl:text> </xsl:text>
|
||||||
<xsl:choose>
|
<literal><xsl:apply-templates select="attr[@name = 'default']" /></literal>
|
||||||
<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>
|
</para>
|
||||||
|
</xsl:if>
|
||||||
|
|
||||||
<xsl:if test="attr[@name = 'example']">
|
<xsl:if test="attr[@name = 'example']">
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
<emphasis>Example:</emphasis>
|
<emphasis>Example:</emphasis>
|
||||||
<xsl:text> </xsl:text>
|
<xsl:text> </xsl:text>
|
||||||
@ -61,9 +53,7 @@
|
|||||||
<programlisting><xsl:value-of select="attr[@name = 'example']/attrs/attr[@name = 'text']/string/@value" /></programlisting>
|
<programlisting><xsl:value-of select="attr[@name = 'example']/attrs/attr[@name = 'text']/string/@value" /></programlisting>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<literal>
|
<literal><xsl:apply-templates select="attr[@name = 'example']" /></literal>
|
||||||
<xsl:apply-templates select="attr[@name = 'example']" />
|
|
||||||
</literal>
|
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</para>
|
</para>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user