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

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Mon Jan 16 23:07:35 UTC 2006


Author: pfrields

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

Modified Files:
	doc-version.xsl 
Log Message:
clog target and XSL stylesheet should be able to figure out if this is the first package for a document revision


Index: doc-version.xsl
===================================================================
RCS file: /cvs/docs/docs-common/packaging/doc-version.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- doc-version.xsl	15 Jan 2006 17:43:20 -0000	1.3
+++ doc-version.xsl	16 Jan 2006 23:07:06 -0000	1.4
@@ -11,6 +11,22 @@
   <xsl:param name="role" select="'doc'"/>
 
   <xsl:template match="/">
-    <xsl:value-of select="/rpm-info/changelog/revision[@role=$role][1]/@number"/>
+    <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]/@number"/>
+	  </xsl:otherwise>
+	</xsl:choose>
+      </xsl:when>
+      <xsl:otherwise>
+	<xsl:value-of
+	  select="/rpm-info/changelog/revision[@role=$role][1]/@number"/>
+      </xsl:otherwise>
+    </xsl:choose>
   </xsl:template>
 </xsl:stylesheet>




More information about the Fedora-docs-commits mailing list