[seam-commits] Seam SVN: r7659 - maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Mar 20 12:19:29 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-03-20 12:19:29 -0400 (Thu, 20 Mar 2008)
New Revision: 7659

Removed:
   maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/version.xsl
Modified:
   maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl
   maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-html.xsl
   maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl
Log:
Comments

Modified: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl	2008-03-20 16:05:31 UTC (rev 7658)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl	2008-03-20 16:19:29 UTC (rev 7659)
@@ -9,30 +9,33 @@
 <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"
-   xmlns:rf="java:org.richfaces.highlight.XhtmlRendererFactory"
-   xmlns:sverb="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Verbatim"
-   xmlns:xverb="com.nwalsh.xalan.Verbatim"
-   xmlns:lxslt="http://xml.apache.org/xslt"
-   exclude-result-prefixes="sverb xverb lxslt">
+   exclude-result-prefixes="#default">
 
-   <!-- These extensions are required for table printing and other stuff -->
+   <!--  Enable extensions (needed for callouts) -->
    <xsl:param name="use.extensions">1</xsl:param>
+   
+   <!-- Enable callouts -->
+   <xsl:param name="callout.extensions">1</xsl:param>
+   
+   <!-- And disable these extensions -->
    <xsl:param name="tablecolumns.extension">0</xsl:param>
-   <xsl:param name="callout.extensions">1</xsl:param>
    <xsl:param name="graphicsize.extension">0</xsl:param>
 
-   <!-- Placement of titles -->
+   <!-- Placement of titles (Seam specific) -->
    <xsl:param name="formal.title.placement">
       figure after example before equation before table before procedure before
    </xsl:param>
+   
+   
    <!-- Callouts -->
-
+   
    <!-- Don't use graphics, use a simple number style -->
    <xsl:param name="callout.graphics">0</xsl:param>
+   
+   <!-- Place callout marks at this column in annotated areas -->
    <xsl:param name="callout.defaultcolumn">90</xsl:param>
 
-   <!-- Place callout marks at this column in annotated areas -->
-
+   <!-- Simple list of authors -->
    <xsl:template match="author" mode="titlepage.mode">
       <div class="{name(.)}">
          <xsl:call-template name="person.name" />
@@ -42,12 +45,14 @@
       </div>
    </xsl:template>
 
+   <!-- Simple affiliation (put it in brackets) -->
    <xsl:template match="affiliation" mode="titlepage.mode">
       (
       <xsl:apply-templates mode="titlepage.mode" />
       )
    </xsl:template>
 
+   <!-- And put don't put <br /> everywhere -->
    <xsl:template match="orgname" mode="titlepage.mode">
       <span class="{name(.)}">
          <xsl:apply-templates mode="titlepage.mode" />

Modified: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-html.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-html.xsl	2008-03-20 16:05:31 UTC (rev 7658)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-html.xsl	2008-03-20 16:19:29 UTC (rev 7659)
@@ -1,99 +1,100 @@
 <?xml version='1.0'?>
- 
+
 <!--
-	Copyright 2008 JBoss, a division of Red Hat
-	License: LGPL
-	Author: Pete Muir
+   Copyright 2008 JBoss, a division of Red Hat
+   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-html.xsl"/>-->
-   <xsl:import href="../main-html.xsl"/>
+   <xsl:import href="../main-html.xsl" />
    <xsl:import href="version.xsl" />
    <xsl:import href="common-xhtml.xsl" />
-   
+
    <xsl:param name="html.stylesheet" select="'css/seamframework.css'" />
-    
-    <!--
-   Replace the navigation header with our banner and link
--->
-<xsl:template name="header.navigation">
-   <xsl:param name="prev" select="/foo"/>
-   <xsl:param name="next" select="/foo"/>
-   <xsl:param name="nav.context"/>
-   <xsl:variable name="home" select="/*[1]"/>
-   <xsl:variable name="up" select="parent::*"/>
-   <xsl:variable name="row1" select="$navig.showtitles != 0"/>
-   <xsl:variable name="row2" select="count($prev) &gt; 0 or (count($up) &gt; 0 and generate-id($up) != generate-id($home) and $navig.showtitles != 0) or count($next) &gt; 0"/>
-   <xsl:if test="$suppress.navigation = '0' and $suppress.header.navigation = '0'">
-      <xsl:if test="$row1 or $row2">
-         <xsl:if test="$row1">
-            <p xmlns="http://www.w3.org/1999/xhtml">
-               <xsl:attribute name="id">
+
+   <!--
+      Replace the navigation header with our banner and link
+   -->
+   <xsl:template name="header.navigation">
+      <xsl:param name="prev" select="/foo" />
+      <xsl:param name="next" select="/foo" />
+      <xsl:param name="nav.context" />
+      <xsl:variable name="home" select="/*[1]" />
+      <xsl:variable name="up" select="parent::*" />
+      <xsl:variable name="row1" select="$navig.showtitles != 0" />
+      <xsl:variable name="row2"
+         select="count($prev) &gt; 0 or (count($up) &gt; 0 and generate-id($up) != generate-id($home) and $navig.showtitles != 0) or count($next) &gt; 0" />
+      <xsl:if
+         test="$suppress.navigation = '0' and $suppress.header.navigation = '0'">
+         <xsl:if test="$row1 or $row2">
+            <xsl:if test="$row1">
+               <p xmlns="http://www.w3.org/1999/xhtml">
+                  <xsl:attribute name="id">
                   <xsl:text>title</xsl:text>
                </xsl:attribute>
-               <a>
-                  <xsl:attribute name="href">
+                  <a>
+                     <xsl:attribute name="href">
                      <xsl:text>http://www.seamframework.org</xsl:text>
                   </xsl:attribute>
-                  <xsl:attribute name="class">
+                     <xsl:attribute name="class">
                      <xsl:text>seamFrameworkOrg_href</xsl:text>
                   </xsl:attribute>
-                  <strong>
-                          SeamFramework.org
-                  </strong>
-               </a>
-            </p>
-         </xsl:if>
-         <xsl:if test="$row2">
-            <ul class="docnav" xmlns="http://www.w3.org/1999/xhtml">
-               <li class="previous">
-                  <xsl:if test="count($prev)&gt;0">
-                     <a accesskey="p">
-                        <xsl:attribute name="href">
+                     <strong>SeamFramework.org</strong>
+                  </a>
+               </p>
+            </xsl:if>
+            <xsl:if test="$row2">
+               <ul class="docnav" xmlns="http://www.w3.org/1999/xhtml">
+                  <li class="previous">
+                     <xsl:if test="count($prev)&gt;0">
+                        <a accesskey="p">
+                           <xsl:attribute name="href">
                            <xsl:call-template name="href.target">
-                              <xsl:with-param name="object" select="$prev"/>
+                              <xsl:with-param name="object" select="$prev" />
                            </xsl:call-template>
                         </xsl:attribute>
-                        <strong>
-                           <xsl:call-template name="navig.content">
-                              <xsl:with-param name="direction" select="'prev'"/>
-                           </xsl:call-template>
-                        </strong>
-                     </a>
-                  </xsl:if>
-               </li>
-               <li class="next">
-                  <xsl:if test="count($next)&gt;0">
-                     <a accesskey="n">
-                        <xsl:attribute name="href">
+                           <strong>
+                              <xsl:call-template name="navig.content">
+                                 <xsl:with-param name="direction"
+                                    select="'prev'" />
+                              </xsl:call-template>
+                           </strong>
+                        </a>
+                     </xsl:if>
+                  </li>
+                  <li class="next">
+                     <xsl:if test="count($next)&gt;0">
+                        <a accesskey="n">
+                           <xsl:attribute name="href">
                            <xsl:call-template name="href.target">
-                              <xsl:with-param name="object" select="$next"/>
+                              <xsl:with-param name="object" select="$next" />
                            </xsl:call-template>
                         </xsl:attribute>
-                        <strong>
-                           <xsl:call-template name="navig.content">
-                              <xsl:with-param name="direction" select="'next'"/>
-                           </xsl:call-template>
-                        </strong>
-                     </a>
-                  </xsl:if>
-               </li>
-            </ul>
+                           <strong>
+                              <xsl:call-template name="navig.content">
+                                 <xsl:with-param name="direction"
+                                    select="'next'" />
+                              </xsl:call-template>
+                           </strong>
+                        </a>
+                     </xsl:if>
+                  </li>
+               </ul>
+            </xsl:if>
          </xsl:if>
+         <xsl:if test="$header.rule != 0">
+            <hr />
+         </xsl:if>
       </xsl:if>
-      <xsl:if test="$header.rule != 0">
-         <hr/>
-      </xsl:if>
-   </xsl:if>
-</xsl:template>
-    
-    
+   </xsl:template>
 
+
+
 </xsl:stylesheet>

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-20 16:05:31 UTC (rev 7658)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl	2008-03-20 16:19:29 UTC (rev 7659)
@@ -70,6 +70,11 @@
       </fo:inline>
 
    </xsl:template>
+   
+   <!-- Make examples, tables etc. break across pages -->
+   <xsl:attribute-set name="formal.object.properties">
+      <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
+   </xsl:attribute-set>
 
    <!-- Correct placement of titles for figures and examples. -->
    <xsl:param name="formal.title.placement">
@@ -81,6 +86,7 @@
    <xsl:template name="book.titlepage.verso"></xsl:template>
    <xsl:template name="book.titlepage.separator"></xsl:template>
 
+   <!-- Use our own slightly simpler title page (just show title, version, authors) -->
    <xsl:template name="book.titlepage.recto">
       <xsl:choose>
          <xsl:when test="bookinfo/title">
@@ -104,8 +110,6 @@
       <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"
@@ -156,17 +160,25 @@
       <xsl:apply-templates mode="book.titlepage.verso.auto.mode"
          select="info/publisher" />
    </xsl:template>
+   
+   <!-- Change the font color for titles to SeamFramework.org one -->
 
    <xsl:param name="title.color">#576C74</xsl:param>
 
+   <!-- Change to monospace font for programlisting, needed to workaround crappy callouts -->
    <xsl:param name="programlisting.font" select="$monospace.font.family" />
+   
+   <!-- Make the font for programlisting slightly smaller -->
    <xsl:param name="programlisting.font.size" select="'75%'" />
+   
+   <!-- Now, set enable scalefit for large images -->
    <xsl:param name="graphicsize.extension" select="'1'" />
 
    <xsl:param name="default.image.width">17.4cm</xsl:param>
 
-   <!-- Style tables -->
 
+   <!-- Style tables to look like SeamFramework.org-->
+
    <xsl:param name="table.cell.border.color">#D3D2D1</xsl:param>
    <xsl:param name="table.frame.border.color">#D3D2D1</xsl:param>
    <xsl:param name="table.cell.border.thickness">0.6pt</xsl:param>
@@ -209,9 +221,5 @@
       </xsl:if>
    </xsl:template>
 
-   <xsl:attribute-set name="formal.object.properties">
-      <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
-   </xsl:attribute-set>
 
-
 </xsl:stylesheet>

Deleted: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/version.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/version.xsl	2008-03-20 16:05:31 UTC (rev 7658)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/version.xsl	2008-03-20 16:19:29 UTC (rev 7659)
@@ -1,18 +0,0 @@
-<?xml version='1.0'?>
-
-<!--
-        Copyright 2007 JBoss, a division of Red Hat
-        License: LGPL 
-        Author: Pete Muir <pete.muir at jboss.org>
--->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                version="1.0"
-                exclude-result-prefixes="#default">
-
-	<xsl:template match="currentversion">
-      <xsl:value-of select="system-property('fooversion')" />
-    </xsl:template>
-		
-		
-                
-</xsl:stylesheet>




More information about the seam-commits mailing list