docs-common/packaging doc-version.xsl,1.2,1.3

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Sun Jan 15 17:43:28 UTC 2006


Author: pfrields

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

Modified Files:
	doc-version.xsl 
Log Message:
Let doc-version.xsl query latest revision of either "doc" or "rpm" role


Index: doc-version.xsl
===================================================================
RCS file: /cvs/docs/docs-common/packaging/doc-version.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- doc-version.xsl	7 Jan 2006 04:54:47 -0000	1.2
+++ doc-version.xsl	15 Jan 2006 17:43:20 -0000	1.3
@@ -1,10 +1,16 @@
-<!-- Extract version number from rpm-info.xml -->
-<xsl:stylesheet version="1.0" xml:space="preserve" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<!-- 
+
+Extract version number 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"/>
 
-<!-- Note: do not indent this file!  Any whitespace here
-     will be reproduced in the output -->
+  <xsl:param name="role" select="'doc'"/>
 
-<xsl:template match="/"><xsl:value-of select="/rpm-info/changelog/revision[@role='doc'][1]/@version"/>
-</xsl:template>
+  <xsl:template match="/">
+    <xsl:value-of select="/rpm-info/changelog/revision[@role=$role][1]/@number"/>
+  </xsl:template>
 </xsl:stylesheet>




More information about the Fedora-docs-commits mailing list