docs-common/packaging info2rpminfo.xsl,1.2,1.3

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Tue Jan 3 01:07:17 UTC 2006


Author: pfrields

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

Modified Files:
	info2rpminfo.xsl 
Log Message:
Break ties in revhistory


Index: info2rpminfo.xsl
===================================================================
RCS file: /cvs/docs/docs-common/packaging/info2rpminfo.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- info2rpminfo.xsl	2 Jan 2006 22:42:50 -0000	1.2
+++ info2rpminfo.xsl	3 Jan 2006 01:07:06 -0000	1.3
@@ -16,7 +16,7 @@
       </xsl:element>
       <xsl:element name="copyright">
 	<xsl:for-each select="copyright">
-	  <xsl:copy-of select="node()"/>
+	  <xsl:copy-of select="."/>
 	</xsl:for-each>
       </xsl:element>
       <xsl:element name="titles">
@@ -58,7 +58,7 @@
   </xsl:attribute-set>
 
 
-  <xsl:template match="/book/bookinfo/title|/article/articleinfo/title">
+  <xsl:template match="bookinfo/title|articleinfo/title">
     <xsl:element name="translation" use-attribute-sets="translation-atts">
       <xsl:call-template name="translation"/>
     </xsl:element>
@@ -66,7 +66,7 @@
   </xsl:template>
 
   <xsl:template name="translation">
-    <xsl:element name="title"><xsl:value-of select="node()"/></xsl:element>
+    <xsl:element name="title"><xsl:value-of select="."/></xsl:element>
     <xsl:element name="desc">PLEASE ADD BOOK/ARTICLE DESCRIPTION TO RPM-INFO</xsl:element>
     <!-- Sorry, can't langify out of separate docs right now. -->
   </xsl:template>
@@ -77,7 +77,7 @@
 
 
   <xsl:template match="revhistory">
-    <xsl:apply-templates select="revision"><xsl:sort select="date" order="descending"/></xsl:apply-templates>
+    <xsl:apply-templates select="revision"><xsl:sort select="date" order="descending"/><xsl:sort select="revnumber" order="descending"/></xsl:apply-templates>
   </xsl:template>
 
   <xsl:template match="revision">
@@ -85,7 +85,7 @@
       <xsl:element name="author" use-attribute-sets="revision-worker-atts"/>
       <xsl:for-each select="revdescription/para">
 	<xsl:element name="details" use-attribute-sets="revision-detail-atts">
-	  <xsl:value-of select="node()"/>
+	  <xsl:value-of select="."/>
 	</xsl:element>
       </xsl:for-each>
     </xsl:element>




More information about the Fedora-docs-commits mailing list