docs-common/packaging info2rpminfo.xsl,1.1,1.2
by fedora-docs-commits@redhat.com
Author: pfrields
Update of /cvs/docs/docs-common/packaging
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21408
Modified Files:
info2rpminfo.xsl
Log Message:
Local vars for ease of use
Index: info2rpminfo.xsl
===================================================================
RCS file: /cvs/docs/docs-common/packaging/info2rpminfo.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- info2rpminfo.xsl 2 Jan 2006 22:37:11 -0000 1.1
+++ info2rpminfo.xsl 2 Jan 2006 22:42:50 -0000 1.2
@@ -106,3 +106,10 @@
</xsl:attribute-set>
</xsl:stylesheet>
+
+
+<!--
+Local variables:
+mode: xml
+End:
+-->
18 years, 4 months
docs-common/packaging info2rpminfo.xsl,NONE,1.1
by fedora-docs-commits@redhat.com
Author: pfrields
Update of /cvs/docs/docs-common/packaging
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21339/docs-common/packaging
Added Files:
info2rpminfo.xsl
Log Message:
Initial version; mostly WORKSFORME
--- NEW FILE info2rpminfo.xsl ---
<!-- Transform bookinfo|articleinfo section into FDP's rpm-info -->
<xsl:stylesheet version="1.0" xml:space="preserve" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="UTF-8" indent="yes" method="xml" standalone="yes"
omit-xml-declaration="no" version="1.0" doctype-system="../docs-common/packaging/rpm-info.dtd"/>
<xsl:template match="book|article">
<xsl:apply-templates select="articleinfo|bookinfo"/>
</xsl:template>
<xsl:template match="bookinfo|articleinfo" name="info">
<xsl:element name="rpm-info">
<xsl:apply-templates select="authorgroup"/>
<xsl:element name="license">
<xsl:element name="rights">GNU FDL</xsl:element>
<xsl:element name="version">1.0</xsl:element>
</xsl:element>
<xsl:element name="copyright">
<xsl:for-each select="copyright">
<xsl:copy-of select="node()"/>
</xsl:for-each>
</xsl:element>
<xsl:element name="titles">
<xsl:apply-templates select="title"/>
</xsl:element>
<xsl:element name="changelog">
<xsl:apply-templates select="revhistory"/>
</xsl:element>
</xsl:element>
</xsl:template>
<xsl:template match="authorgroup">
<xsl:element name="colophon">
<xsl:comment>Only author|editor|othercredit processed.</xsl:comment>
<xsl:comment>PLEASE ADD EMAIL ADDRESSES.</xsl:comment>
<xsl:comment>You may remove these comments after editing.</xsl:comment>
<xsl:apply-templates select="author"/>
<xsl:apply-templates select="editor"/>
</xsl:element>
</xsl:template>
<xsl:template match="author|editor|othercredit">
<xsl:call-template name="worker"/>
</xsl:template>
<xsl:template name="worker">
<xsl:element name="worker" use-attribute-sets="worker-atts"/>
</xsl:template>
<xsl:attribute-set name="worker-atts">
<xsl:attribute name="surname"><xsl:value-of select="surname"/></xsl:attribute>
<xsl:attribute name="firstname"><xsl:value-of select="firstname"/></xsl:attribute>
<xsl:attribute name="othername"><xsl:value-of select="othername"/></xsl:attribute>
<xsl:attribute name="id"><xsl:value-of select="firstname"/><xsl:value-of select="surname"/></xsl:attribute>
<xsl:attribute name="email"><xsl:if test="email"><xsl:value-of select="email"/></xsl:if></xsl:attribute>
<xsl:attribute name="wholename"><xsl:value-of select="firstname"/><xsl:if test="othername"> <xsl:value-of select="othername"/></xsl:if> <xsl:value-of select="surname"/></xsl:attribute>
<xsl:attribute name="initials"><xsl:value-of select="firstname"/><xsl:value-of select="surname"/></xsl:attribute>
</xsl:attribute-set>
<xsl:template match="/book/bookinfo/title|/article/articleinfo/title">
<xsl:element name="translation" use-attribute-sets="translation-atts">
<xsl:call-template name="translation"/>
</xsl:element>
<xsl:comment>PLEASE ADD TRANSLATIONS FOR TITLES.</xsl:comment>
</xsl:template>
<xsl:template name="translation">
<xsl:element name="title"><xsl:value-of select="node()"/></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>
<xsl:attribute-set name="translation-atts">
<xsl:attribute name="lang"><xsl:value-of select="../../@lang"/></xsl:attribute>
</xsl:attribute-set>
<xsl:template match="revhistory">
<xsl:apply-templates select="revision"><xsl:sort select="date" order="descending"/></xsl:apply-templates>
</xsl:template>
<xsl:template match="revision">
<xsl:element name="revision" use-attribute-sets="revision-atts">
<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:element>
</xsl:for-each>
</xsl:element>
</xsl:template>
<xsl:attribute-set name="revision-atts">
<xsl:attribute name="date"><xsl:value-of select="date"/></xsl:attribute>
<xsl:attribute name="version"><xsl:value-of select="revnumber"/></xsl:attribute>
<xsl:attribute name="release">1</xsl:attribute><!-- For now, a hack -->
</xsl:attribute-set>
<xsl:attribute-set name="revision-worker-atts">
<xsl:attribute name="worker"><xsl:value-of select="authorinitials"/></xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="revision-detail-atts">
<xsl:attribute name="lang"><xsl:value-of select="../../../../../@lang"/></xsl:attribute>
</xsl:attribute-set>
</xsl:stylesheet>
18 years, 4 months
docs-common/bin xmlformat-fdp.conf,1.9,1.10
by fedora-docs-commits@redhat.com
Author: pfrields
Update of /cvs/docs/docs-common/bin
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21303/docs-common/bin
Modified Files:
xmlformat-fdp.conf
Log Message:
Adjustment to accomodate rpm-info files
Index: xmlformat-fdp.conf
===================================================================
RCS file: /cvs/docs/docs-common/bin/xmlformat-fdp.conf,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- xmlformat-fdp.conf 24 Dec 2005 01:25:39 -0000 1.9
+++ xmlformat-fdp.conf 2 Jan 2006 22:31:21 -0000 1.10
@@ -110,3 +110,9 @@
entry-break = 1
exit-break = 1
+# Cover rpm-info files
+details
+ format = block
+ entry-break = 0
+ exit-break = 0
+ normalize = yes
18 years, 4 months
docs-common/packaging bookinfo.xsl,1.5,1.6
by fedora-docs-commits@redhat.com
Author: pfrields
Update of /cvs/docs/docs-common/packaging
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18962/docs-common/packaging
Modified Files:
bookinfo.xsl
Log Message:
Make sure bookinfo catches every copyright element, since multiples are valid
Index: bookinfo.xsl
===================================================================
RCS file: /cvs/docs/docs-common/packaging/bookinfo.xsl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- bookinfo.xsl 30 Dec 2005 06:11:20 -0000 1.5
+++ bookinfo.xsl 2 Jan 2006 21:13:51 -0000 1.6
@@ -12,16 +12,18 @@
<xsl:element name="title">
<xsl:call-template name="get-title"/>
</xsl:element>
- <xsl:element name="copyright">
- <xsl:for-each select="/rpm-info/copyright/year"><xsl:element name="year">
- <xsl:value-of select="node()"/>
- </xsl:element></xsl:for-each>
- <xsl:for-each select="/rpm-info/copyright/holder">
- <xsl:element name="holder">
- <xsl:value-of select="node()"/>
- </xsl:element>
- </xsl:for-each>
- </xsl:element>
+ <xsl:for-each select="/rpm-info/copyright">
+ <xsl:element name="copyright">
+ <xsl:for-each select="/rpm-info/copyright/year"><xsl:element name="year">
+ <xsl:value-of select="node()"/>
+ </xsl:element></xsl:for-each>
+ <xsl:for-each select="/rpm-info/copyright/holder">
+ <xsl:element name="holder">
+ <xsl:value-of select="node()"/>
+ </xsl:element>
+ </xsl:for-each>
+ </xsl:element>
+ </xsl:for-each>
<xsl:element name="authorgroup">
<xsl:for-each select="/rpm-info/author">
<xsl:element name="author">
18 years, 4 months
docs-common/packaging rpm-info.dtd,1.10,1.11
by fedora-docs-commits@redhat.com
Author: pfrields
Update of /cvs/docs/docs-common/packaging
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17240/docs-common/packaging
Modified Files:
rpm-info.dtd
Log Message:
Allow multiple years for copyright, as in DocBook
Index: rpm-info.dtd
===================================================================
RCS file: /cvs/docs/docs-common/packaging/rpm-info.dtd,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- rpm-info.dtd 30 Dec 2005 13:39:02 -0000 1.10
+++ rpm-info.dtd 2 Jan 2006 20:49:58 -0000 1.11
@@ -7,7 +7,7 @@
<!ELEMENT rights (#PCDATA) >
<!ELEMENT version (#PCDATA) >
-<!ELEMENT copyright (year,holder+) >
+<!ELEMENT copyright (year+,holder+) >
<!ELEMENT year (#PCDATA) >
<!ELEMENT holder (#PCDATA) >
18 years, 4 months