docs-common/packaging info2rpminfo.xsl,1.8,1.9

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Mon Jan 16 15:27:39 UTC 2006


Author: pfrields

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

Modified Files:
	info2rpminfo.xsl 
Log Message:
Make spacing more properly XMLish


Index: info2rpminfo.xsl
===================================================================
RCS file: /cvs/docs/docs-common/packaging/info2rpminfo.xsl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- info2rpminfo.xsl	7 Jan 2006 23:31:44 -0000	1.8
+++ info2rpminfo.xsl	16 Jan 2006 15:27:31 -0000	1.9
@@ -1,5 +1,5 @@
 <!-- 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:stylesheet version="1.0" 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"/>
 
@@ -10,6 +10,7 @@
   <xsl:template match="bookinfo|articleinfo" name="info">
     <xsl:element name="rpm-info">
       <xsl:apply-templates select="authorgroup"/>
+      <xsl:comment>CHECK LICENSING BELOW</xsl:comment>
       <xsl:element name="license">
 	<xsl:element name="rights">GNU FDL</xsl:element>
 	<xsl:element name="version">1.0</xsl:element>
@@ -29,8 +30,10 @@
 
   <xsl:template match="authorgroup">
     <xsl:element name="colophon">
+      <xsl:comment>PLEASE ADD EMAIL ADDRESSES AND ENSURE</xsl:comment>
+      <xsl:comment>"id" ATTRIBUTES MATCH "worker" ATTRIBUTES</xsl:comment>
+      <xsl:comment>IN "changelog/author ELEMENTS.</xsl:comment>
       <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"/>
@@ -51,7 +54,7 @@
     <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="wholename"><xsl:value-of select="firstname"/><xsl:if test="othername"><xsl:text> </xsl:text><xsl:value-of select="othername"/></xsl:if><xsl:text> </xsl:text><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>
 
@@ -65,7 +68,7 @@
 
   <xsl:template name="translation">
     <xsl:element name="title"><xsl:value-of select="."/></xsl:element>
-    <xsl:element name="desc">PLEASE ADD BOOK/ARTICLE DESCRIPTION TO RPM-INFO</xsl:element>
+    <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>
     




More information about the Fedora-docs-commits mailing list