docs-common/packaging bookinfo.xsl,1.13,1.14 templates.xsl,1.1,1.2

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Sat Feb 4 04:11:55 UTC 2006


Author: pfrields

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

Modified Files:
	bookinfo.xsl templates.xsl 
Log Message:
Correct grabbing of initials for revisionhistory


Index: bookinfo.xsl
===================================================================
RCS file: /cvs/docs/docs-common/packaging/bookinfo.xsl,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- bookinfo.xsl	16 Jan 2006 16:05:13 -0000	1.13
+++ bookinfo.xsl	4 Feb 2006 04:11:46 -0000	1.14
@@ -51,7 +51,7 @@
 	      <xsl:value-of select="@date"/>
 	    </xsl:element>
 	    <xsl:element name="authorinitials">
-	      <xsl:value-of select="author/@initials"/>
+	      <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]">


Index: templates.xsl
===================================================================
RCS file: /cvs/docs/docs-common/packaging/templates.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- templates.xsl	29 Dec 2005 22:37:32 -0000	1.1
+++ templates.xsl	4 Feb 2006 04:11:47 -0000	1.2
@@ -59,6 +59,10 @@
   select="/rpm-info/colophon/worker"><xsl:if test="@id = $who"><xsl:value-of
   select="@email"/></xsl:if></xsl:for-each>></xsl:template>
 
-
+  <!-- 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:stylesheet>




More information about the Fedora-docs-commits mailing list