docs-common/packaging info2rpminfo.xsl,1.10,1.11

Tommy Reynolds (jtr) fedora-docs-commits at redhat.com
Wed Jan 18 18:09:39 UTC 2006


Author: jtr

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

Modified Files:
	info2rpminfo.xsl 
Log Message:
Inserted dummy <author> element at the right place, just after the 
colophon.  Since it references a dummy "FIXME" worker, the document
will not validate yet, and this is a GOOD thing because it needs
more editing.

Added 'order="newest-first"' attribute to the <changelog> element, 
so that the generated document will have the correct structure.



Index: info2rpminfo.xsl
===================================================================
RCS file: /cvs/docs/docs-common/packaging/info2rpminfo.xsl,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- info2rpminfo.xsl	18 Jan 2006 07:51:53 -0000	1.10
+++ info2rpminfo.xsl	18 Jan 2006 18:09:10 -0000	1.11
@@ -10,6 +10,9 @@
   <xsl:template match="bookinfo|articleinfo" name="info">
     <xsl:element name="rpm-info">
       <xsl:apply-templates select="authorgroup"/>
+      <xsl:element name="author">
+	<xsl:attribute name="worker">FIXME</xsl:attribute>
+      </xsl:element>
       <xsl:comment>CHECK LICENSING BELOW</xsl:comment>
       <xsl:element name="license">
 	<xsl:element name="rights">GNU FDL</xsl:element>
@@ -22,6 +25,9 @@
 	<xsl:apply-templates select="title"/>
       </xsl:element>
       <xsl:element name="changelog">
+	<xsl:attribute name="order">
+	  <xsl:text>newest-first</xsl:text>
+	</xsl:attribute>
 	<xsl:apply-templates select="revhistory"/>
       </xsl:element>
     </xsl:element>
@@ -71,7 +77,7 @@
     <xsl:element name="desc"><xsl:comment>PLEASE ADD BOOK/ARTICLE DESCRIPTION TO RPM-INFO</xsl:comment></xsl:element>
     <!-- Sorry, can't langify out of separate docs right now. -->
   </xsl:template>
-    
+
   <xsl:attribute-set name="translation-atts">
     <xsl:attribute name="lang"><xsl:value-of select="../../@lang"/></xsl:attribute>
   </xsl:attribute-set>
@@ -105,7 +111,7 @@
     <xsl:attribute name="lang"><xsl:value-of select="../../../../../@lang"/></xsl:attribute>
   </xsl:attribute-set>
 
-</xsl:stylesheet> 
+</xsl:stylesheet>
 
 
 <!--




More information about the Fedora-docs-commits mailing list