docs-common/packaging doc-date.xsl,NONE,1.1
Paul W. Frields (pfrields)
fedora-docs-commits at redhat.com
Sun Aug 27 23:27:06 UTC 2006
Author: pfrields
Update of /cvs/docs/docs-common/packaging
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21373
Added Files:
doc-date.xsl
Log Message:
Add a stylesheet to get the latest revision date from rpm-info
--- NEW FILE doc-date.xsl ---
<!--
Extract date for latest revision from rpm-info.xml.
Optional stringparam "role" allows querying of appropriate revision type.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="UTF-8" indent="no" method="text"/>
<xsl:param name="role" select="'doc'"/>
<xsl:template match="/">
<xsl:choose>
<xsl:when test="$role='rpm'">
<xsl:choose>
<xsl:when test="/rpm-info/changelog/revision[1]/@role='doc'">
<xsl:text>0</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select="/rpm-info/changelog/revision[@role=$role][1]/@date"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select="/rpm-info/changelog/revision[@role=$role][1]/@date"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
More information about the Fedora-docs-commits
mailing list