[seam-commits] Seam SVN: r7642 - in maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss: seam and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Mar 19 12:16:24 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-03-19 12:16:24 -0400 (Wed, 19 Mar 2008)
New Revision: 7642

Modified:
   maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/main-pdf.xsl
   maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl
Log:
Make PDF use sfwk theme, full version info, clean up title page

Modified: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/main-pdf.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/main-pdf.xsl	2008-03-19 16:15:47 UTC (rev 7641)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/main-pdf.xsl	2008-03-19 16:16:24 UTC (rev 7642)
@@ -1030,6 +1030,8 @@
   <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/issuenum"/>
   <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/issuenum"/>
   <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="issuenum"/>
+  
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/releaseinfo"/>
 
   <xsl:choose>
     <xsl:when test="bookinfo/subtitle">
@@ -1055,22 +1057,6 @@
     <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/invpartnumber"/>
     <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/invpartnumber"/>
   </fo:block>
-  <fo:block xsl:use-attribute-sets="book.titlepage.recto.style" color="black">
-    <xsl:call-template name="gentext">
-      <xsl:with-param name="key" select="'isbn'"/>
-	</xsl:call-template>
-	<xsl:text>: </xsl:text>
-    <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/isbn"/>
-    <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/isbn"/>
-  </fo:block>
-  <fo:block xsl:use-attribute-sets="book.titlepage.recto.style" color="black"> 
-    <xsl:call-template name="gentext">
-      <xsl:with-param name="key" select="'pubdate'"/>
-	</xsl:call-template>
-	<xsl:text>: </xsl:text>
-    <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/pubdate"/>
-    <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/pubdate"/>
-  </fo:block>
 </xsl:template>
 
 <xsl:template name="book.titlepage.verso">
@@ -1086,17 +1072,6 @@
 </xsl:template>
 
 <xsl:template name="book.titlepage3.recto">
-  <xsl:choose>
-    <xsl:when test="bookinfo/title">
-      <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/title"/>
-    </xsl:when>
-    <xsl:when test="info/title">
-      <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/title"/>
-    </xsl:when>
-    <xsl:when test="title">
-      <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="title"/>
-    </xsl:when>
-  </xsl:choose>
 
   <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/authorgroup"/>
   <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/authorgroup"/>

Modified: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl	2008-03-19 16:15:47 UTC (rev 7641)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl	2008-03-19 16:16:24 UTC (rev 7642)
@@ -1,101 +1,163 @@
 <?xml version='1.0'?>
- 
+
 <!--
-	Copyright 2007 Red Hat, Inc.
-	License: GPL
-	Author: Pete Muir
+   Copyright 2007 Red Hat, Inc.
+   License: LGPL
+   Author: Pete Muir
 -->
 
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-		version='1.0'
-		xmlns="http://www.w3.org/TR/xhtml1/transitional"
-		xmlns:fo="http://www.w3.org/1999/XSL/Format"
-		exclude-result-prefixes="#default">
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'
+   xmlns="http://www.w3.org/TR/xhtml1/transitional"
+   xmlns:fo="http://www.w3.org/1999/XSL/Format"
+   exclude-result-prefixes="#default">
 
    <!-- Needs MPJDOCBOOK-8 -->
    <!-- <xsl:import href="classpath:/xslt/org/jboss/main-pdf.xsl"/>-->
    <xsl:import href="../main-pdf.xsl" />
-   
-       <xsl:param name="use.extensions">1</xsl:param>
 
-    <!-- Place callout marks at this column in annotated areas -->
-    
-    <!--###################################################
-                             Callouts
-        ################################################### -->
+   <xsl:param name="use.extensions">1</xsl:param>
 
-    <!-- We want to use callouts... -->
-    <xsl:param name="callout.extensions">1</xsl:param>
+   <!-- Place callout marks at this column in annotated areas -->
 
-    <!-- Place callout bullets at this column in programmlisting.-->
-    <xsl:param name="callout.defaultcolumn">80</xsl:param>
+   <!--###################################################
+      Callouts
+      ################################################### -->
 
-    <!--
-        No, don't use crappy graphics for the callout bullets. This setting
-        enables some weird Unicode rendering for some fancy bullet points
-        in callouts. By default, this can only count to 10 and produces
-        strange results if you ever have more than 10 callouts for one
-        programlisting. We will fix that next.
-    -->
-    <xsl:param name="callout.graphics">0</xsl:param>
+   <!-- We want to use callouts... -->
+   <xsl:param name="callout.extensions">1</xsl:param>
 
-    <!--
-        Again, fun with DocBook XSL: The callout bullets are rendered in
-        two places: In the programlisting itself and in the list below
-        the listing, with the actual callout text. The rendering in the
-        programlisting is some XSL transformer extension (e.g. a Saxon
-        extension), so we can't change that without messing with the
-        extensions. We only can turn it off by setting this limit to
-        zero, then, a simple bracket style like "(3)" and "(4)" will
-        be used in the programlisting.
-    -->
-    <xsl:param name="callout.unicode.number.limit" select="'0'"></xsl:param>
+   <!-- Place callout bullets at this column in programmlisting.-->
+   <xsl:param name="callout.defaultcolumn">80</xsl:param>
 
-    <!--
-        The callout bullets in the actual callout list will be rendered
-        with an XSL FO template. The default template is broken: limited to 10
-        nice looking Unicode bullet points and then it doesn't print anything,
-        the fallback doesn't work. We implement our own template, which is not
-        as complicated, more ugly, but works. As always, function is more
-        important than form.
-    -->
-    <xsl:template name="callout-bug" >
-        <xsl:param name="conum" select='1'/>
-        <fo:inline
-            color="black"
-            padding-top="0.1em"
-            padding-bottom="0.1em"
-            padding-start="0.2em"
-            padding-end="0.2em"
-            baseline-shift="0.1em"
-            font-family="{$monospace.font.family}"
-            font-weight="bold"
-            font-size="75%">
-            <xsl:text>(</xsl:text>
-            <xsl:value-of select="$conum"/>
-            <xsl:text>)</xsl:text>
-        </fo:inline>
+   <!--
+      No, don't use crappy graphics for the callout bullets. This setting
+      enables some weird Unicode rendering for some fancy bullet points
+      in callouts. By default, this can only count to 10 and produces
+      strange results if you ever have more than 10 callouts for one
+      programlisting. We will fix that next.
+   -->
+   <xsl:param name="callout.graphics">0</xsl:param>
 
-    </xsl:template>
-    
-        <!-- Correct placement of titles for figures and examples. -->
-    <xsl:param name="formal.title.placement">
-        figure after
-        example before
-        equation before
-        table before
-        procedure before
-    </xsl:param>    
-    
-     <!-- Prevent blank pages in output -->
-    <xsl:template name="book.titlepage.before.verso">
-    </xsl:template>
-    <xsl:template name="book.titlepage.verso">
-    </xsl:template>
-    <xsl:template name="book.titlepage.separator">
-    </xsl:template>
-    
-    
-    
+   <!--
+      Again, fun with DocBook XSL: The callout bullets are rendered in
+      two places: In the programlisting itself and in the list below
+      the listing, with the actual callout text. The rendering in the
+      programlisting is some XSL transformer extension (e.g. a Saxon
+      extension), so we can't change that without messing with the
+      extensions. We only can turn it off by setting this limit to
+      zero, then, a simple bracket style like "(3)" and "(4)" will
+      be used in the programlisting.
+   -->
+   <xsl:param name="callout.unicode.number.limit" select="'0'"></xsl:param>
 
+   <!--
+      The callout bullets in the actual callout list will be rendered
+      with an XSL FO template. The default template is broken: limited to 10
+      nice looking Unicode bullet points and then it doesn't print anything,
+      the fallback doesn't work. We implement our own template, which is not
+      as complicated, more ugly, but works. As always, function is more
+      important than form.
+   -->
+   <xsl:template name="callout-bug">
+      <xsl:param name="conum" select='1' />
+      <fo:inline color="black" padding-top="0.1em" padding-bottom="0.1em"
+         padding-start="0.2em" padding-end="0.2em" baseline-shift="0.1em"
+         font-family="{$monospace.font.family}" font-weight="bold"
+         font-size="75%">
+         <xsl:text>(</xsl:text>
+         <xsl:value-of select="$conum" />
+         <xsl:text>)</xsl:text>
+      </fo:inline>
+
+   </xsl:template>
+
+   <!-- Correct placement of titles for figures and examples. -->
+   <xsl:param name="formal.title.placement">
+      figure after example before equation before table before procedure before
+   </xsl:param>
+
+   <!-- Prevent blank pages in output -->
+   <xsl:template name="book.titlepage.before.verso"></xsl:template>
+   <xsl:template name="book.titlepage.verso"></xsl:template>
+   <xsl:template name="book.titlepage.separator"></xsl:template>
+
+   <xsl:template name="book.titlepage.recto">
+      <xsl:choose>
+         <xsl:when test="bookinfo/title">
+            <xsl:apply-templates mode="book.titlepage.recto.auto.mode"
+               select="bookinfo/title" />
+         </xsl:when>
+         <xsl:when test="info/title">
+            <xsl:apply-templates mode="book.titlepage.recto.auto.mode"
+               select="info/title" />
+         </xsl:when>
+         <xsl:when test="title">
+            <xsl:apply-templates mode="book.titlepage.recto.auto.mode"
+               select="title" />
+         </xsl:when>
+      </xsl:choose>
+
+      <xsl:apply-templates mode="book.titlepage.recto.auto.mode"
+         select="bookinfo/issuenum" />
+      <xsl:apply-templates mode="book.titlepage.recto.auto.mode"
+         select="info/issuenum" />
+      <xsl:apply-templates mode="book.titlepage.recto.auto.mode"
+         select="issuenum" />
+
+
+
+      <xsl:choose>
+         <xsl:when test="bookinfo/subtitle">
+            <xsl:apply-templates mode="book.titlepage.recto.auto.mode"
+               select="bookinfo/subtitle" />
+         </xsl:when>
+         <xsl:when test="info/subtitle">
+            <xsl:apply-templates mode="book.titlepage.recto.auto.mode"
+               select="info/subtitle" />
+         </xsl:when>
+         <xsl:when test="subtitle">
+            <xsl:apply-templates mode="book.titlepage.recto.auto.mode"
+               select="subtitle" />
+         </xsl:when>
+      </xsl:choose>
+
+      <fo:block xsl:use-attribute-sets="book.titlepage.recto.style"
+         font-size="14pt" space-before="15.552pt">
+         <xsl:apply-templates mode="book.titlepage.recto.auto.mode"
+            select="bookinfo/releaseinfo" />
+      </fo:block>
+
+   </xsl:template>
+
+   <xsl:template name="book.titlepage3.recto">
+
+      <xsl:apply-templates mode="book.titlepage.verso.auto.mode"
+         select="bookinfo/authorgroup" />
+      <xsl:apply-templates mode="book.titlepage.verso.auto.mode"
+         select="info/authorgroup" />
+      <xsl:apply-templates mode="book.titlepage.verso.auto.mode"
+         select="bookinfo/author" />
+      <xsl:apply-templates mode="book.titlepage.verso.auto.mode"
+         select="info/author" />
+      <xsl:apply-templates mode="book.titlepage.verso.auto.mode"
+         select="bookinfo/othercredit" />
+      <xsl:apply-templates mode="book.titlepage.verso.auto.mode"
+         select="info/othercredit" />
+      <xsl:apply-templates mode="book.titlepage.verso.auto.mode"
+         select="bookinfo/copyright" />
+      <xsl:apply-templates mode="book.titlepage.verso.auto.mode"
+         select="info/copyright" />
+      <xsl:apply-templates mode="book.titlepage.verso.auto.mode"
+         select="bookinfo/legalnotice" />
+      <xsl:apply-templates mode="book.titlepage.verso.auto.mode"
+         select="info/legalnotice" />
+      <xsl:apply-templates mode="book.titlepage.verso.auto.mode"
+         select="bookinfo/publisher" />
+      <xsl:apply-templates mode="book.titlepage.verso.auto.mode"
+         select="info/publisher" />
+   </xsl:template>
+
+   <xsl:param name="title.color">#576C74</xsl:param>
+
+
 </xsl:stylesheet>




More information about the seam-commits mailing list