diff options
author | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2006-01-06 19:18:32 +0000 |
---|---|---|
committer | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2006-01-06 19:18:32 +0000 |
commit | 0c9be1c24966763d90a28439adafc2010c56c7c1 (patch) | |
tree | a660bff48cf99c9d3a406a554e2bf78fcf57d4f0 /packaging/doc-version.xsl | |
parent | 1e67f1ded7e6fe5bedf83ddfc09783946fd53977 (diff) | |
download | fedora-doc-utils-0c9be1c24966763d90a28439adafc2010c56c7c1.tar.gz fedora-doc-utils-0c9be1c24966763d90a28439adafc2010c56c7c1.tar.xz fedora-doc-utils-0c9be1c24966763d90a28439adafc2010c56c7c1.zip |
Extract the document version from the VERY FIRST change log entry in
the "rpm-info.xml" file.
Diffstat (limited to 'packaging/doc-version.xsl')
-rw-r--r-- | packaging/doc-version.xsl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packaging/doc-version.xsl b/packaging/doc-version.xsl new file mode 100644 index 0000000..b9b888e --- /dev/null +++ b/packaging/doc-version.xsl @@ -0,0 +1,10 @@ +<!-- Extract version number from rpm-info.xml --> +<xsl:stylesheet version="1.0" xml:space="preserve" 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:template match="/"><xsl:value-of select="/rpm-info/changelog/revision[1]/@version"/> +</xsl:template> +</xsl:stylesheet> |