docs-common/common/entities entities.xsl,1.5,1.6
Tommy Reynolds (jtr)
fedora-docs-commits at redhat.com
Wed Mar 1 23:38:10 UTC 2006
Author: jtr
Update of /cvs/docs/docs-common/common/entities
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6313/common/entities
Modified Files:
entities.xsl
Log Message:
Added support for per-document translatable entities file.
Index: entities.xsl
===================================================================
RCS file: /cvs/docs/docs-common/common/entities/entities.xsl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- entities.xsl 28 Feb 2006 02:06:58 -0000 1.5
+++ entities.xsl 1 Mar 2006 23:38:02 -0000 1.6
@@ -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>
More information about the docs-commits
mailing list