db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r500385 - /db/derby/docs/trunk/lib/dita2fo-shell.xsl
Date Fri, 26 Jan 2007 22:23:12 GMT
Author: jta
Date: Fri Jan 26 14:23:11 2007
New Revision: 500385

URL: http://svn.apache.org/viewvc?view=rev&rev=500385
Log:
DERBY-2275 Improves DITA rendering of the PDF docs.

1) Previously the header had the word "Copyright" and nothing more. This
   patch replaces "Copyright" with the title of the book.
2) Adds the Derby version to the table of contents.

Patch committed for Scott Hutinger <s-hutinger@wiu.edu>.

Modified:
    db/derby/docs/trunk/lib/dita2fo-shell.xsl

Modified: db/derby/docs/trunk/lib/dita2fo-shell.xsl
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/lib/dita2fo-shell.xsl?view=diff&rev=500385&r1=500384&r2=500385
==============================================================================
--- db/derby/docs/trunk/lib/dita2fo-shell.xsl (original)
+++ db/derby/docs/trunk/lib/dita2fo-shell.xsl Fri Jan 26 14:23:11 2007
@@ -151,14 +151,9 @@
       </fo:title>
      
 <!--Jeff added this here -->
-<fo:static-content flow-name="xsl-region-after">    
-    <!-- set the brief copyright notice -->
-<fo:block margin-top="3pc" text-align="right" font-size="8pt" line-height="normal">
-          &copyr;  Copyright&nbsp; 
-<xsl:value-of select="//*[contains(@class,' topic/copyright ')]/copyryear/@year"/>:&nbsp;

-<xsl:value-of select="//*[contains(@class,' topic/copyright ')]/*[contains(@class,' topic/copyrholder
')]"/><xsl:text> </xsl:text>
-</fo:block>
-    </fo:static-content>
+<!--fo:static-content flow-name="xsl-region-after"-->    
+
+    <!--/fo:static-content-->
 <!--End of Jeff's addition -->
 
 <!--Jeff is adding this section to replace what was originally there below -->
@@ -175,6 +170,13 @@
         <fo:block font-size="8pt" line-height="140%" margin-bottom="1in" font-style="italic">
           Version <xsl:value-of select="//*[contains(@class,' topic/prodinfo ')]/vrmlist/vrm/@version"/>
         </fo:block>
+    <!-- set the brief copyright notice -->
+<!-- <fo:block margin-top="3pc" text-align="right" font-size="8pt" line-height="normal">
+          &copyr;  Copyright&nbsp; 
+        <xsl:value-of select="//*[contains(@class,' topic/copyright ')]/copyryear/@year"/>:&nbsp;

+        <xsl:value-of select="//*[contains(@class,' topic/copyright ')]/*[contains(@class,'
topic/copyrholder ')]"/><xsl:text> </xsl:text>
+</fo:block>
+-->
       </fo:block>     
 
 
@@ -187,37 +189,6 @@
      
 </fo:flow>
 
-<!-- Removing
-      <fo:flow flow-name="xsl-region-body">
-
-
-        <fo:block text-align="right" font-family="Helvetica">
-  
-          <fo:block font-size="30pt" font-weight="bold" line-height="140%">
-            <xsl:value-of select="//*[contains(@class,' bkinfo/bkinfo ')]/*[contains(@class,'
topic/title ')]"/>
-            <xsl:apply-templates select="//*[contains(@class,' bkinfo/bkinfo ')]/@id"/>
-          </fo:block>
-          <fo:block font-size="24pt" font-weight="bold" line-height="140%" margin-bottom="1in">
-            <xsl:value-of select="//*[contains(@class,' bkinfo/bkinfo ')]/*[contains(@class,'
bkinfo/bktitlealts ')]/*[contains(@class,' bkinfo/bksubtitle ')]"/>
-          </fo:block>
-          <fo:block font-size="11pt" font-weight="bold" line-height="1.5">
-            <xsl:text>[vertical list of authors]</xsl:text>
-          </fo:block>
-          <xsl:for-each select="//author">
-            <fo:block font-size="11pt" font-weight="bold" line-height="1.5">
-                [<xsl:value-of select="."/>] </fo:block>
-          </xsl:for-each>
-          <fo:block margin-top="3pc" font-size="11pt" font-weight="bold"
-            line-height="normal"> &copyr; &nbsp;&nbsp; Copyright
-              &nbsp;&nbsp;<xsl:value-of select="//*[contains(@class,' bkinfo/orgname
')]"/>
-            <xsl:text/>
-            <xsl:value-of
-              select="//*[contains(@class,' bkinfo/bkcopyrfirst ')]"/>,<xsl:value-of
-            select="//*[contains(@class,' bkinfo/bkcopyrlast ')]"/>. </fo:block>
-        </fo:block>
-        <xsl:call-template name="place-cover-art"/>
-      </fo:flow>
-	-->
 
     </fo:page-sequence>
     <!-- generate an "inside front cover" page (left side) (sheet 2) -->
@@ -248,17 +219,6 @@
 </xsl:template>
 
 
-<!-- Removing...
-  <xsl:template name="place-cover-art">
-   <fo:block margin-top="2pc" font-family="Helvetica" border-style="dashed"
-      border-color="black" border-width="thin" padding="6pt">
-      <fo:block font-size="12pt" line-height="100%" margin-top="12pc"
-        margin-bottom="12pc" text-align="center">
-        <fo:inline color="purple" font-weight="bold">[cover art/text goes here]</fo:inline>
-      </fo:block>
-    </fo:block>
-  </xsl:template>
--->
 
   <!-- internal title page -->
   <!-- edition notices -->
@@ -273,13 +233,14 @@
       <!-- Static setup for the generated pages -->
       <!-- header -->
       <fo:static-content flow-name="xsl-region-before">
-        <xsl:variable name="booktitle">
-          <xsl:value-of select="//*/title"/>
-        </xsl:variable>
-        <fo:block font-size="8pt" line-height="8pt">
-          <xsl:value-of select="$booktitle"/>
-        </fo:block>
-      </fo:static-content>
+<!-- version number header table of contents-->
+        <fo:block font-size="8pt" line-height="140%" margin-bottom="1in" font-style="italic">
+          Version <xsl:value-of select="//*[contains(@class,' topic/prodinfo ')]/vrmlist/vrm/@version"/>
+         &#160;
+	<xsl:value-of select="//*[contains(@class,' topic/prodinfo ')]/*[contains(@class,' topic/prodname
')]"/>
+	</fo:block>
+	</fo:static-content>
+<!-- end version number -->
       <!-- footer -->
       <fo:static-content flow-name="xsl-region-after">
         <fo:block text-align="center" font-size="10pt" font-weight="bold" font-family="Helvetica">
@@ -332,12 +293,9 @@
       <!-- header: single page -->
       <fo:static-content flow-name="xsl-region-before">
         <!-- book title here -->
-        <xsl:variable name="booktitle">
-          <xsl:value-of select="//*/title"/>
-        </xsl:variable>
         <fo:block font-size="8pt" line-height="8pt">
-          <xsl:value-of select="$booktitle"/>
-        </fo:block>
+	<xsl:value-of select="//*[contains(@class,' topic/prodinfo ')]/*[contains(@class,' topic/prodname
')]"/>  
+	</fo:block>
       </fo:static-content>
       <!-- footer static stuff -->
       <fo:static-content flow-name="xsl-region-after">



Mime
View raw message