docs-common/xsl main-html.xsl,1.6,1.7

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Sun Sep 4 14:50:28 UTC 2005


Author: pfrields

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

Modified Files:
	main-html.xsl 
Log Message:
Readability changes, add title to revhistory page summary


Index: main-html.xsl
===================================================================
RCS file: /cvs/docs/docs-common/xsl/main-html.xsl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- main-html.xsl	4 Sep 2005 14:19:07 -0000	1.6
+++ main-html.xsl	4 Sep 2005 14:50:25 -0000	1.7
@@ -37,16 +37,17 @@
 section nop
 </xsl:param>
 
-<xsl:template match="revhistory"><!-- mode="titlepage.mode">-->
+<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">
+    <table border="1" width="100%" summary="Revision history - {$doctitle}">
       <tr>
         <th align="left" valign="top" colspan="{$numcols}">
           <b>
@@ -105,35 +106,35 @@
 
 <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>
+  <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>
+  <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: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>
 
 




More information about the Fedora-docs-commits mailing list