diff options
author | Paul W. Frields <stickster@gmail.com> | 2006-02-04 04:11:46 +0000 |
---|---|---|
committer | Paul W. Frields <stickster@gmail.com> | 2006-02-04 04:11:46 +0000 |
commit | 73bfbce6f3d5a474da8350535cfea8ed66757e9c (patch) | |
tree | af256efff5e1745c1dd0d946cb719b2a3682db13 /packaging | |
parent | 086ab0600807bcc419f37dbf9698c87b1cd6bb6a (diff) | |
download | fedora-doc-utils-73bfbce6f3d5a474da8350535cfea8ed66757e9c.tar.gz fedora-doc-utils-73bfbce6f3d5a474da8350535cfea8ed66757e9c.tar.xz fedora-doc-utils-73bfbce6f3d5a474da8350535cfea8ed66757e9c.zip |
Correct grabbing of initials for revisionhistory
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/bookinfo.xsl | 2 | ||||
-rw-r--r-- | packaging/templates.xsl | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/packaging/bookinfo.xsl b/packaging/bookinfo.xsl index 7d740e4..8cc8617 100644 --- a/packaging/bookinfo.xsl +++ b/packaging/bookinfo.xsl @@ -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]"> diff --git a/packaging/templates.xsl b/packaging/templates.xsl index 811a52d..95df144 100644 --- a/packaging/templates.xsl +++ b/packaging/templates.xsl @@ -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> |