docs-common/packaging templates.xsl,1.6,1.7

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Thu Sep 13 01:48:24 UTC 2007


Author: pfrields

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

Modified Files:
	templates.xsl 
Log Message:
Fix initials rendering, finally!



Index: templates.xsl
===================================================================
RCS file: /cvs/docs/docs-common/packaging/templates.xsl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- templates.xsl	28 Nov 2006 18:19:52 -0000	1.6
+++ templates.xsl	13 Sep 2007 01:48:22 -0000	1.7
@@ -55,8 +55,13 @@
 
   <!-- Print initials for a given worker with id $who -->
   <!-- DO NOT CHANGE SPACING! -->
-  <xsl:template name="initials"><xsl:for-each
-  select="/rpm-info/colophon/worker"><xsl:if test="@id = $who"><xsl:value-of
-  select="@initials"/></xsl:if></xsl:for-each></xsl:template>
+  <xsl:template name="initials">
+    <xsl:param name="who" select="''"/>
+    <xsl:for-each select="/rpm-info/colophon/worker">
+      <xsl:if test="@id = $who">
+	<xsl:value-of select="@initials"/>
+      </xsl:if>
+    </xsl:for-each>
+  </xsl:template>
 
 </xsl:stylesheet>




More information about the Fedora-docs-commits mailing list