summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/entities/entities.xsl20
1 files changed, 13 insertions, 7 deletions
diff --git a/common/entities/entities.xsl b/common/entities/entities.xsl
index 0646ca1..519f00d 100644
--- a/common/entities/entities.xsl
+++ b/common/entities/entities.xsl
@@ -6,13 +6,19 @@
<xsl:param name="FDPCOMMONDIR">/usr/share/fedora/doc/docs-common/common</xsl:param>
<xsl:template match="/">
- <xsl:comment><xsl:value-of select="' Group: Automatic Entities '"/></xsl:comment>
- <xsl:call-template name="do_entity">
- <xsl:with-param name="name">FDPCOMMONDIR</xsl:with-param>
- <xsl:with-param name="desc">Base directory</xsl:with-param>
- <xsl:with-param name="extra" />
- <xsl:with-param name="body" select="$FDPCOMMONDIR"/>
- </xsl:call-template>
+ <xsl:comment>
+ <xsl:value-of select="' Group: Automatic Entities '"/>
+ </xsl:comment>
+ <xsl:choose>
+ <xsl:when test="$FDPCOMMONDIR != 'NONE'">
+ <xsl:call-template name="do_entity">
+ <xsl:with-param name="name">FDPCOMMONDIR</xsl:with-param>
+ <xsl:with-param name="desc">Base directory</xsl:with-param>
+ <xsl:with-param name="extra" />
+ <xsl:with-param name="body" select="$FDPCOMMONDIR"/>
+ </xsl:call-template>
+ </xsl:when>
+ </xsl:choose>
<xsl:apply-templates/>
</xsl:template>