docs-common/xsl main-html-nochunks.xsl, 1.2, 1.3 main-html.xsl, 1.8, 1.9

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Sun Jul 9 19:53:16 UTC 2006


Author: pfrields

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

Modified Files:
	main-html-nochunks.xsl main-html.xsl 
Log Message:
This fixes the whole problem with translation of the "Revision History" string.  I am not sure how portable this is back to older versions of the docbook-style-xsl package.  Bug reports on FC4 will be entertained but not necessarily fixed. :-)


Index: main-html-nochunks.xsl
===================================================================
RCS file: /cvs/docs/docs-common/xsl/main-html-nochunks.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- main-html-nochunks.xsl	29 Jun 2005 14:32:49 -0000	1.2
+++ main-html-nochunks.xsl	9 Jul 2006 19:53:13 -0000	1.3
@@ -46,5 +46,7 @@
 
 <!-- Override legalnotice linkage -->
 <xsl:param name="generate.legalnotice.link" select="0"></xsl:param>
+<!-- Override revhistory linkage -->
+<xsl:param name="generate.revhistory.link" select="0"></xsl:param>
 
 </xsl:stylesheet>


Index: main-html.xsl
===================================================================
RCS file: /cvs/docs/docs-common/xsl/main-html.xsl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- main-html.xsl	21 Oct 2005 23:30:40 -0000	1.8
+++ main-html.xsl	9 Jul 2006 19:53:13 -0000	1.9
@@ -22,6 +22,7 @@
 <xsl:param name="section.label.includes.component.label" select="1"></xsl:param>
 
 <xsl:param name="generate.legalnotice.link" select="1"></xsl:param>
+<xsl:param name="generate.revhistory.link" select="1"></xsl:param>
 
 <xsl:param name="generate.toc">
 book toc
@@ -37,107 +38,6 @@
 section nop
 </xsl:param>
 
-<xsl:template match="revhistory">
-  <xsl:variable name="numcols">
-    <xsl:choose>
-      <xsl:when test="//authorinitials">3</xsl:when>
-      <xsl:otherwise>2</xsl:otherwise>
-    </xsl:choose>
-  </xsl:variable>
-  <xsl:variable name="doctitle" select="//title"/>
-
-  <div class="{name(.)}">
-    <table border="1" width="100%" summary="Revision history - {$doctitle}">
-      <tr>
-        <th align="left" valign="top" colspan="{$numcols}">
-          <b>
-            <xsl:call-template name="gentext">
-              <xsl:with-param name="key" select="'RevHistory'"/>
-            </xsl:call-template>
-          </b>
-        </th>
-      </tr>
-      <xsl:apply-templates>
-        <xsl:with-param name="numcols" select="$numcols"/>
-      </xsl:apply-templates>
-    </table>
-  </div>
-</xsl:template>
-
-<xsl:template match="revhistory/revision">  
-  <xsl:param name="numcols" select="'3'"/>
-  <xsl:variable name="revnumber" select=".//revnumber"/>
-  <xsl:variable name="revdate"   select=".//date"/>
-  <xsl:variable name="revauthor" select=".//authorinitials"/>
-  <xsl:variable name="revremark" select=".//revremark|.//revdescription"/>
-  <tr>
-    <td align="left">
-      <xsl:if test="$revnumber">
-        <xsl:call-template name="gentext">
-          <xsl:with-param name="key" select="'Revision'"/>
-        </xsl:call-template>
-        <xsl:call-template name="gentext.space"/>
-        <xsl:apply-templates select="$revnumber[1]"/>
-      </xsl:if>
-    </td>
-    <td align="left">
-      <xsl:apply-templates select="$revdate[1]"/>
-    </td>
-    <xsl:choose>
-      <xsl:when test="$revauthor">
-        <td align="left">
-          <xsl:apply-templates select="$revauthor[1]"/>
-        </td>
-      </xsl:when>
-      <xsl:when test="$numcols > 2">
-        <td> </td>
-      </xsl:when>
-      <xsl:otherwise></xsl:otherwise>
-    </xsl:choose>
-  </tr>
-  <xsl:if test="$revremark">
-    <tr>
-      <td align="left" colspan="{$numcols}">
-        <xsl:apply-templates select="$revremark[1]"/>
-      </td>
-    </tr>
-  </xsl:if>
-</xsl:template>
-
-<xsl:template match="revhistory" mode="titlepage.mode">
-  <xsl:variable name="id">revhistory</xsl:variable>
-  <xsl:variable name="filename">
-    <xsl:call-template name="make-relative-filename">
-      <xsl:with-param name="base.dir" select="$base.dir"/>
-      <xsl:with-param name="base.name" select="concat('rv-',$id,$html.ext)"/>
-    </xsl:call-template>
-  </xsl:variable>
-
-  <a href="{concat('rv-',$id,$html.ext)}">Revision History</a>
-
-  <xsl:call-template name="write.chunk">
-    <xsl:with-param name="filename" select="$filename"/>
-    <xsl:with-param name="quiet" select="$chunk.quietly"/>
-    <xsl:with-param name="content">
-      <xsl:call-template name="user.preroot"/>
-      <html>
-        <head>
-          <xsl:call-template name="system.head.content"/>
-          <xsl:call-template name="head.content"/>
-          <xsl:call-template name="user.head.content"/>
-        </head>
-        <body>
-          <xsl:call-template name="body.attributes"/>
-          <div class="{local-name(.)}">
-            <xsl:apply-templates select="."/>
-          </div>
-        </body>
-      </html>
-    </xsl:with-param>
-  </xsl:call-template>
-</xsl:template>
-
-
 <!-- Navigation
 <xsl:param name="navig.graphics" select="1"></xsl:param>
 <xsl:param name="navig.graphics.extension" select="'.png'"></xsl:param>




More information about the Fedora-docs-commits mailing list