docs-common/packaging bookinfo.xsl,1.16,1.17
Yuan Yijun (bbbush)
fedora-docs-commits at redhat.com
Wed Feb 22 07:12:41 UTC 2006
Author: bbbush
Update of /cvs/docs/docs-common/packaging
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11008
Modified Files:
bookinfo.xsl
Log Message:
if revdescription is not translated, use "en" by default
Index: bookinfo.xsl
===================================================================
RCS file: /cvs/docs/docs-common/packaging/bookinfo.xsl,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- bookinfo.xsl 13 Feb 2006 17:05:33 -0000 1.16
+++ bookinfo.xsl 22 Feb 2006 07:12:33 -0000 1.17
@@ -58,11 +58,27 @@
<xsl:call-template name="initials"><xsl:with-param name="who" select="author/@worker"/></xsl:call-template>
</xsl:element>
<xsl:element name="revdescription">
- <xsl:for-each select="details[@lang = $lang]">
- <xsl:element name="para">
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:for-each>
+ <xsl:choose>
+ <xsl:when test="details[@lang = $lang]">
+ <xsl:for-each select="details[@lang = $lang]">
+ <xsl:element name="para">
+ <xsl:apply-templates/>
+ </xsl:element>
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:when test="details[@lang = 'en']">
+ <xsl:for-each select="details[@lang = 'en']">
+ <xsl:element name="para">
+ <xsl:apply-templates/>
+ </xsl:element>
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:otherwise>
+ <revdescription>
+ <para> (...) </para>
+ </revdescription>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:element>
</xsl:element>
</xsl:for-each>
More information about the Fedora-docs-commits
mailing list