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

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Apr 1 13:14:49 EDT 2008


Author: newtonm
Date: 2008-04-01 13:14:49 -0400 (Tue, 01 Apr 2008)
New Revision: 7787

Removed:
   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.xsl
Modified:
   maven-plugins/trunk/seam-docbook-xslt/pom.xml
   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
   maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/nochunk-html.xsl
   maven-plugins/trunk/seam-jdocbook-style/src/main/css/css/seamframework.css
Log:
Merged Seam XSL customization layer with JBoss.org style so that all projects can benefit. Merged features include: rendering of authors, editors, and others in the authorgroup. Different placement of titles around examples, figures etc. Non-graphic callout settings. New PDF title page and settings to prevent blank pages. Monospaced programlisting font and custom TOC with bold chapter titles. TOC section depth of 2 to match the HTML. In addition the authorgroup, PRE.JSP and PRE.XHTML CSS configuration was moved to JBoss.org CSS.

Modified: maven-plugins/trunk/seam-docbook-xslt/pom.xml
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/pom.xml	2008-04-01 13:52:25 UTC (rev 7786)
+++ maven-plugins/trunk/seam-docbook-xslt/pom.xml	2008-04-01 17:14:49 UTC (rev 7787)
@@ -32,7 +32,7 @@
          <dependency>
             <groupId>org.jboss</groupId>
             <artifactId>jbossorg-docbook-xslt</artifactId>
-            <version>1.1.0-200803311754</version>
+            <version>1.1.0-SNAPSHOT</version>
          </dependency>
       </dependencies>
    </dependencyManagement>
@@ -71,4 +71,4 @@
       </snapshotRepository>
    </distributionManagement>
 
-</project>
\ No newline at end of file
+</project>

Deleted: 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-04-01 13:52:25 UTC (rev 7786)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl	2008-04-01 17:14:49 UTC (rev 7787)
@@ -1,66 +0,0 @@
-<?xml version='1.0'?>
-
-<!--
-   Copyright 2007 Red Hat, Inc.
-   License: GPL
-   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">
-
-   <!--  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="graphicsize.extension">0</xsl:param>
-
-   <!-- 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>
-
-      <xsl:template match="authorgroup" mode="titlepage.mode">
-      <div class="authorgroup">
-         <div class="authors">
-            <xsl:call-template name="gentext.by" />
-            <xsl:call-template name="gentext.space" />
-            <xsl:call-template name="person.name.list">
-               <xsl:with-param name="person.list" select="./author" />
-            </xsl:call-template>
-         </div>
-
-         <div class="editors">
-            <xsl:call-template name="gentext.editors" />
-            <xsl:call-template name="gentext.space" />
-            <xsl:call-template name="person.name.list">
-               <xsl:with-param name="person.list" select="./editor" />
-            </xsl:call-template>
-         </div>
-
-         <div class="others">
-            <xsl:call-template name="gentext.others" />
-            <xsl:call-template name="gentext.space" />
-            <xsl:call-template name="person.name.list">
-               <xsl:with-param name="person.list" select="./othercredit" />
-            </xsl:call-template>
-         </div>
-      </div>
-   </xsl:template>
-   
-</xsl:stylesheet>

Deleted: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common.xsl	2008-04-01 13:52:25 UTC (rev 7786)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common.xsl	2008-04-01 17:14:49 UTC (rev 7787)
@@ -1,81 +0,0 @@
-<?xml version='1.0'?>
-
-<!--
-   Copyright 2007 Red Hat, Inc.
-   License: GPL
-   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:template name="person.name.list">
-      <xsl:param name="person.list"
-         select="author|corpauthor|othercredit|editor" />
-      <xsl:param name="person.count" select="count($person.list)" />
-      <xsl:param name="count" select="1" />
-
-      <xsl:choose>
-         <xsl:when test="$count &gt; $person.count"></xsl:when>
-         <xsl:otherwise>
-            <xsl:call-template name="person.name">
-               <xsl:with-param name="node"
-                  select="$person.list[position()=$count]" />
-            </xsl:call-template>
-
-            <xsl:choose>
-               <xsl:when
-                  test="$person.list[position()=$count]/affiliation/shortaffil">
-                  <xsl:call-template name="gentext.space" />
-                  <xsl:text>(</xsl:text>
-                  <xsl:value-of
-                     select="$person.list[position()=$count]/affiliation/shortaffil" />
-                  <xsl:text>)</xsl:text>
-               </xsl:when>
-            </xsl:choose>
-
-
-            <xsl:choose>
-               <xsl:when test="$person.count = 2 and $count = 1">
-                  <xsl:call-template name="gentext.template">
-                     <xsl:with-param name="context" select="'authorgroup'" />
-                     <xsl:with-param name="name" select="'sep2'" />
-                  </xsl:call-template>
-               </xsl:when>
-               <xsl:when
-                  test="$person.count &gt; 2 and $count+1 = $person.count">
-                  <xsl:call-template name="gentext.template">
-                     <xsl:with-param name="context" select="'authorgroup'" />
-                     <xsl:with-param name="name" select="'seplast'" />
-                  </xsl:call-template>
-               </xsl:when>
-               <xsl:when test="$count &lt; $person.count">
-                  <xsl:call-template name="gentext.template">
-                     <xsl:with-param name="context" select="'authorgroup'" />
-                     <xsl:with-param name="name" select="'sep'" />
-                  </xsl:call-template>
-               </xsl:when>
-            </xsl:choose>
-
-            <xsl:call-template name="person.name.list">
-               <xsl:with-param name="person.list" select="$person.list" />
-               <xsl:with-param name="person.count" select="$person.count" />
-               <xsl:with-param name="count" select="$count+1" />
-            </xsl:call-template>
-         </xsl:otherwise>
-      </xsl:choose>
-   </xsl:template>
-
-
-   <xsl:template name="gentext.editors">
-      <xsl:text>edited by</xsl:text>
-   </xsl:template>
-
-   <xsl:template name="gentext.others">
-      <xsl:text>and thanks to</xsl:text>
-   </xsl:template>
-
-
-</xsl:stylesheet>
\ No newline at end of file

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-04-01 13:52:25 UTC (rev 7786)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-html.xsl	2008-04-01 17:14:49 UTC (rev 7787)
@@ -6,18 +6,16 @@
    Author: Pete Muir
 -->
 
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'
+<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:import href="classpath:/xslt/org/jboss/main-html.xsl" />
-   <xsl:import href="common-xhtml.xsl" />
-   <xsl:import href="common.xsl" />
 
-   <xsl:param name="html.stylesheet" select="'css/seamframework.css'" />
-   
+   <xsl:param name="html.stylesheet" select="'css/seamframework.css'" />   
    <xsl:param name="jbossOrgHref" select="'http://www.seamframework.org'" />
    <xsl:param name="commDocHref" select="'http://www.seamframework.org/Documentation'" />
-
+   
 </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-04-01 13:52:25 UTC (rev 7786)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl	2008-04-01 17:14:49 UTC (rev 7787)
@@ -6,181 +6,21 @@
    Author: Pete Muir
 -->
 
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'
+<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:import href="classpath:/xslt/org/jboss/main-pdf.xsl" />
-   <xsl:import href="common.xsl" />
 
-   <xsl:param name="use.extensions">1</xsl:param>
-
-   <!-- Place callout marks at this column in annotated areas -->
-
-   <!--###################################################
-      Callouts
-      ################################################### -->
-
-   <!-- We want to use callouts... -->
-   <xsl:param name="callout.extensions">1</xsl:param>
-
-   <!-- Place callout bullets at this column in programmlisting.-->
-   <xsl:param name="callout.defaultcolumn">80</xsl:param>
-
-   <!--
-      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>
-
-   <!--
-      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>
-
-   <!-- 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">
-      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>
-
-   <!-- 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">
-            <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>
-
-      <fo:block text-align="center" space-before="15.552pt">
-         <xsl:call-template name="gentext.by" />
-         <xsl:call-template name="gentext.space" />
-         <xsl:call-template name="person.name.list">
-            <xsl:with-param name="person.list" select="bookinfo/authorgroup/author" />
-         </xsl:call-template>
-      </fo:block>
-
-      <fo:block text-align="center" space-before="15.552pt">
-         <xsl:call-template name="gentext.editors" />
-         <xsl:call-template name="gentext.space" />
-         <xsl:call-template name="person.name.list">
-            <xsl:with-param name="person.list" select="bookinfo/authorgroup/editor" />
-         </xsl:call-template>
-      </fo:block>
-
-      <fo:block text-align="center" space-before="15.552pt">
-         <xsl:call-template name="gentext.others" />
-         <xsl:call-template name="gentext.space" />
-         <xsl:call-template name="person.name.list">
-            <xsl:with-param name="person.list" select="bookinfo/authorgroup/othercredit" />
-         </xsl:call-template>
-      </fo:block>
-
-   </xsl:template>
-   
-   <xsl:template name="book.titlepage3.recto">
-
-   </xsl:template>
-
    <!-- Change the font color for titles to SeamFramework.org one -->
-
    <xsl:param name="title.color">#576C74</xsl:param>
    <xsl:param name="titlepage.color">#885324</xsl:param>
    <xsl:param name="chaptertitle.color">#BA5624</xsl:param>
    <xsl:param name="section.level1.title.color">#BA5624</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 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>
@@ -223,57 +63,4 @@
       </xsl:if>
    </xsl:template>
 
-
-   <!--###################################################
-      Custom TOC (bold chapter titles)
-      ################################################### -->
-
-   <!-- Improve the TOC. -->
-   <xsl:template name="toc.line">
-      <xsl:variable name="id">
-         <xsl:call-template name="object.id" />
-      </xsl:variable>
-
-      <xsl:variable name="label">
-         <xsl:apply-templates select="." mode="label.markup" />
-      </xsl:variable>
-
-      <fo:block text-align-last="justify" end-indent="{$toc.indent.width}pt"
-         last-line-end-indent="-{$toc.indent.width}pt">
-         <fo:inline keep-with-next.within-line="always">
-            <fo:basic-link internal-destination="{$id}">
-
-               <!-- Chapter titles should be bold. -->
-               <xsl:choose>
-                  <xsl:when test="local-name(.) = 'chapter'">
-                     <xsl:attribute name="font-weight">bold</xsl:attribute>
-                  </xsl:when>
-               </xsl:choose>
-
-               <xsl:if test="$label != ''">
-                  <xsl:copy-of select="$label" />
-                  <xsl:value-of select="$autotoc.label.separator" />
-               </xsl:if>
-               <xsl:apply-templates select="." mode="titleabbrev.markup" />
-            </fo:basic-link>
-         </fo:inline>
-         <fo:inline keep-together.within-line="always">
-            <xsl:text> </xsl:text>
-            <fo:leader leader-pattern="dots" leader-pattern-width="3pt"
-               leader-alignment="reference-area"
-               keep-with-next.within-line="always" />
-            <xsl:text> </xsl:text>
-            <fo:basic-link internal-destination="{$id}">
-               <fo:page-number-citation ref-id="{$id}" />
-            </fo:basic-link>
-         </fo:inline>
-      </fo:block>
-   </xsl:template>
-
-   <!-- Include the chapter no -->
-   <xsl:param name="section.label.includes.component.label" select="1" />
-
-   <!-- Make the section depth in the TOC 2, same as html -->
-   <xsl:param name="toc.section.depth">2</xsl:param>
-
 </xsl:stylesheet>

Modified: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/nochunk-html.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/nochunk-html.xsl	2008-04-01 13:52:25 UTC (rev 7786)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/nochunk-html.xsl	2008-04-01 17:14:49 UTC (rev 7787)
@@ -13,10 +13,9 @@
 		exclude-result-prefixes="#default">
 
    <xsl:import href="classpath:/xslt/org/jboss/nochunk-html.xsl"/>
-   <xsl:import href="common-xhtml.xsl" />
-   <xsl:import href="common.xsl" />
    
    <xsl:param name="html.stylesheet" select="'css/seamframework-nochunk.css'" />
    <xsl:param name="jbossOrgHref" select="'http://www.seamframework.org'" />
    <xsl:param name="commDocHref" select="'http://www.seamframework.org/Documentation'" />
+   
 </xsl:stylesheet>

Modified: maven-plugins/trunk/seam-jdocbook-style/src/main/css/css/seamframework.css
===================================================================
--- maven-plugins/trunk/seam-jdocbook-style/src/main/css/css/seamframework.css	2008-04-01 13:52:25 UTC (rev 7786)
+++ maven-plugins/trunk/seam-jdocbook-style/src/main/css/css/seamframework.css	2008-04-01 17:14:49 UTC (rev 7787)
@@ -120,15 +120,6 @@
 }
 
 /*
-	Simpler author style on contents page
-	*/
-.authorgroup div {
-	margin-left: 10px;
-	margin-right: 10px;
-	margin-bottom: 15px;
-}
-
-/*
 	Make the seam version info into a title
 	*/
 .releaseinfo {
@@ -137,17 +128,6 @@
 }
 
 /*
-	For highlighting, looks very odd or broken at the 0px jboss.org stylesheets use
-	*/
-PRE.JSP {
-	LINE-HEIGHT: 8px
-}
-
-PRE.XHTML {
-	LINE-HEIGHT: 8px
-}
-
-/*
 	use sfwk.org tables
 	*/
 .table-contents th {




More information about the seam-commits mailing list