docs-common/packaging templates.xsl,1.3,1.4

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Sat Aug 5 04:28:21 UTC 2006


Author: pfrields

Update of /cvs/docs/docs-common/packaging
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20871

Modified Files:
	templates.xsl 
Log Message:
Make get-title and get-desc templates work with new DTD



Index: templates.xsl
===================================================================
RCS file: /cvs/docs/docs-common/packaging/templates.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- templates.xsl	4 Feb 2006 06:52:27 -0000	1.3
+++ templates.xsl	5 Aug 2006 04:28:18 -0000	1.4
@@ -4,24 +4,12 @@
 
   <!-- Print the translated title of a document for language $lang -->
   <xsl:template name="get-title">
-    <xsl:for-each select="/rpm-info/titles/translation">
-      <xsl:choose>
-	<xsl:when test="@lang = $lang">
-	  <xsl:value-of select="title"/>
-	</xsl:when>
-      </xsl:choose>
-    </xsl:for-each>
+    <xsl:value-of select="/rpm-info/title"/>
   </xsl:template>
 
   <!-- Print the translated description of a document for language $lang -->
   <xsl:template name="get-desc">
-    <xsl:for-each select="/rpm-info/titles/translation">
-      <xsl:choose>
-	<xsl:when test="@lang = $lang">
-	  <xsl:value-of select="desc"/>
-	</xsl:when>
-      </xsl:choose>
-    </xsl:for-each>
+    <xsl:value-of select="/rpm-info/desc"/>
   </xsl:template>
 
   <!-- Print a hierarchical entry for a given worker with id $who -->    




More information about the docs-commits mailing list