summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-01-18 18:09:10 +0000
committerTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-01-18 18:09:10 +0000
commit55a30af4b15acc0af50b67f1dd76d3c31de6bd17 (patch)
tree72e4d8c92ddfad8900ad5e16be6c8f2bc676fc27
parent0af65c148402ee3903e5d05652b90d3afa4bfd46 (diff)
downloadfedora-doc-utils-55a30af4b15acc0af50b67f1dd76d3c31de6bd17.tar.gz
fedora-doc-utils-55a30af4b15acc0af50b67f1dd76d3c31de6bd17.tar.xz
fedora-doc-utils-55a30af4b15acc0af50b67f1dd76d3c31de6bd17.zip
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.
-rw-r--r--packaging/info2rpminfo.xsl10
1 files changed, 8 insertions, 2 deletions
diff --git a/packaging/info2rpminfo.xsl b/packaging/info2rpminfo.xsl
index 43896bc..81bec97 100644
--- a/packaging/info2rpminfo.xsl
+++ b/packaging/info2rpminfo.xsl
@@ -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>
<!--