docs-common/packaging bookinfo.xsl,1.12,1.13

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


Author: pfrields

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

Modified Files:
	bookinfo.xsl 
Log Message:
Allow proper choice of OPL for license... probably need additional checks


Index: bookinfo.xsl
===================================================================
RCS file: /cvs/docs/docs-common/packaging/bookinfo.xsl,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- bookinfo.xsl	14 Jan 2006 23:16:42 -0000	1.12
+++ bookinfo.xsl	16 Jan 2006 16:05:13 -0000	1.13
@@ -41,7 +41,6 @@
 	      select="@worker"/></xsl:call-template>
 	</othercredit>
       </xsl:for-each>
-      <xsl:text disable-output-escaping="yes">&LEGALNOTICE;</xsl:text>
       <xsl:element name="revhistory">
 	<xsl:for-each select="/rpm-info/changelog/revision[@role != 'rpm']">
 	  <xsl:element name="revision">
@@ -64,7 +63,14 @@
 	  </xsl:element>
 	</xsl:for-each>
       </xsl:element>
-      <xsl:text disable-output-escaping="yes">&LEGALNOTICE;</xsl:text>
+      <xsl:choose>
+	<xsl:when test="/rpm-info/license/rights='OPL'">
+	  <xsl:text disable-output-escaping="yes">&LEGALNOTICE-OPL;</xsl:text>
+	</xsl:when>
+	<xsl:otherwise> <!-- assume FDL for now -->
+	  <xsl:text disable-output-escaping="yes">&LEGALNOTICE;</xsl:text>
+	</xsl:otherwise>
+      </xsl:choose>
     </xsl:element>
   </xsl:template>
 




More information about the Fedora-docs-commits mailing list