[jboss-cvs] JBossAS SVN: r71562 - in trunk/docbook-support: jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Apr 1 13:17:20 EDT 2008


Author: newtonm
Date: 2008-04-01 13:17:20 -0400 (Tue, 01 Apr 2008)
New Revision: 71562

Added:
   trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/common.xsl
Modified:
   trunk/docbook-support/jbossorg-docbook-xslt/pom.xml
   trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/main-pdf.xsl
   trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/nochunk-html.xsl
   trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/redhat.xsl
   trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/xhtml-common.xsl
   trunk/docbook-support/jbossorg-jdocbook-style/src/main/css/css/codehighlight.css
   trunk/docbook-support/jbossorg-jdocbook-style/src/main/css/css/documentation.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: trunk/docbook-support/jbossorg-docbook-xslt/pom.xml
===================================================================
--- trunk/docbook-support/jbossorg-docbook-xslt/pom.xml	2008-04-01 16:45:46 UTC (rev 71561)
+++ trunk/docbook-support/jbossorg-docbook-xslt/pom.xml	2008-04-01 17:17:20 UTC (rev 71562)
@@ -68,11 +68,11 @@
             <id>repository.jboss.org</id>
             <url>file://${maven.repository.root}</url>
         </repository>
-        <!--<snapshotRepository>
+        <snapshotRepository>
             <id>snapshots.jboss.org</id>
             <name>JBoss Snapshot Repository</name>
             <url>dav:https://snapshots.jboss.org/maven2</url>
-        </snapshotRepository>-->
+        </snapshotRepository>
     </distributionManagement>
 
 </project>

Added: trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/common.xsl
===================================================================
--- trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/common.xsl	                        (rev 0)
+++ trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/common.xsl	2008-04-01 17:17:20 UTC (rev 71562)
@@ -0,0 +1,105 @@
+<?xml version='1.0'?>
+
+<!--
+   Copyright 2007 Red Hat, Inc.
+   License: GPL
+   Author: Pete Muir
+   Author: Mark Newton (mark.newton at jboss.org)
+-->
+
+<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="person.type" select="'author'" />      
+      <xsl:param name="count" select="1" />
+
+      <xsl:choose>
+         <!-- If there are no names in the list then don't do anything -->
+         <xsl:when test="$count &gt; $person.count"></xsl:when>
+         <xsl:otherwise>
+         
+            <!-- Depending on the type of people in the list print out different prefixes -->
+            <xsl:choose>
+             <xsl:when test="$count = 1 and $person.type = 'author' or $person.type = 'corpauthor'">
+               <xsl:call-template name="gentext.by" />
+               <xsl:call-template name="gentext.space" />
+             </xsl:when>
+             <xsl:when test="$count = 1 and $person.type = 'editor'">
+               <xsl:call-template name="gentext.editors" />
+               <xsl:call-template name="gentext.space" />
+             </xsl:when>
+             <xsl:when test="$count = 1 and $person.type = 'othercredit'">
+               <xsl:call-template name="gentext.others" />
+               <xsl:call-template name="gentext.space" />
+             </xsl:when>
+            </xsl:choose>
+                        
+            <!-- Output each person's name -->
+            <xsl:call-template name="person.name">
+               <xsl:with-param name="node"
+                  select="$person.list[position()=$count]" />
+            </xsl:call-template>
+
+            <xsl:choose>
+               <!-- Put parathenses around short affiliation descriptions -->
+               <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>
+               <!-- If only two names are present then insert 'and' between them -->
+               <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>
+               <!-- If we get to the last name insert 'and' before it -->
+               <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>
+               <!-- If we are in the middle of a list insert a comma between names -->
+               <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>
+
+            <!-- Recursively call the template to process all the names in the list -->
+            <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: trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/main-pdf.xsl
===================================================================
--- trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/main-pdf.xsl	2008-04-01 16:45:46 UTC (rev 71561)
+++ trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/main-pdf.xsl	2008-04-01 17:17:20 UTC (rev 71562)
@@ -6,6 +6,8 @@
 	Author: Jeff Fearn <jfearn at redhat.com>
 	Author: Tammy Fox <tfox at redhat.com>
 	Author: Andy Fitzsimon <afitzsim at redhat.com>
+	Author: Mark Newton <mark.newton at jboss.org>
+	Author: Pete Muir
 -->
 
 <!DOCTYPE xsl:stylesheet [
@@ -23,9 +25,10 @@
 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.72.0/fo/graphics.xsl"/>
 <xsl:import href="redhat.xsl"/>
 <xsl:import href="highlight-pdf.xsl"/>
+<xsl:import href="common.xsl" />
 
 <xsl:param name="alignment">justify</xsl:param>
-<xsl:param name="use.extensions" select="0"/>
+<xsl:param name="use.extensions" select="1"/>
 <xsl:param name="tablecolumns.extensions" select="0"/>
 <xsl:param name="fop.extensions" select="1"/>
 <xsl:param name="fop1.extensions" select="0"/>
@@ -41,6 +44,58 @@
 
 <xsl:param name="line-height" select="1.5"/>
 
+   <!--###################################################
+      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>
+
 <xsl:attribute-set name="xref.properties">
   <xsl:attribute name="font-style">italic</xsl:attribute>
   <xsl:attribute name="color">
@@ -127,8 +182,6 @@
 <xsl:param name="admon.graphics.extension" select="'.svg'"/>
 <xsl:attribute-set name="admonition.title.properties">
 	<xsl:attribute name="font-size">13pt</xsl:attribute>
-	<!--<xsl:attribute name="color">white</xsl:attribute>-->
-
 	<xsl:attribute name="color">
 	<xsl:choose>
 		<xsl:when test="self::note">#4C5253</xsl:when>
@@ -192,9 +245,60 @@
 article toc
 </xsl:param>
 
-<xsl:param name="toc.section.depth">3</xsl:param>
+   <!--###################################################
+      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>
+
+<!-- Make the section depth in the TOC 2, same as html -->
+<xsl:param name="toc.section.depth">2</xsl:param>
 <xsl:param name="section.autolabel" select="1"/>
 
+   <!-- Include the chapter no -->
+   <xsl:param name="section.label.includes.component.label" select="1" />
+
+
 <xsl:param name="callout.graphics.path">
     <xsl:if test="$img.src.path != ''"><xsl:value-of select="$img.src.path"/></xsl:if><xsl:text>images/</xsl:text>
 </xsl:param>
@@ -1018,7 +1122,7 @@
   </fo:block>
 </xsl:template>
 
-<xsl:template name="book.titlepage.recto">
+<!-- <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"/>
@@ -1075,9 +1179,77 @@
     <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> -->
 
-<xsl:template name="book.titlepage.verso">
+   <!-- 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="person.name.list">
+            <xsl:with-param name="person.list" select="bookinfo/authorgroup/author|bookinfo/authorgroup/corpauthor" />
+            <xsl:with-param name="person.type" select="'author'"/>
+         </xsl:call-template>
+      </fo:block>
+
+      <fo:block text-align="center" space-before="15.552pt">
+         <xsl:call-template name="person.name.list">
+            <xsl:with-param name="person.list" select="bookinfo/authorgroup/editor" />
+            <xsl:with-param name="person.type" select="'editor'"/>
+         </xsl:call-template>
+      </fo:block>
+
+      <fo:block text-align="center" space-before="15.552pt">
+         <xsl:call-template name="person.name.list">
+            <xsl:with-param name="person.list" select="bookinfo/authorgroup/othercredit" />
+            <xsl:with-param name="person.type" select="'othercredit'"/>
+         </xsl:call-template>
+      </fo:block>
+
+   </xsl:template>
+
+<!-- <xsl:template name="book.titlepage.verso">
   <xsl:choose>
     <xsl:when test="bookinfo/abstract">
       <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/abstract"/>
@@ -1087,9 +1259,12 @@
     </xsl:when>
   </xsl:choose>
 
-</xsl:template>
+</xsl:template> -->
 
-<xsl:template name="book.titlepage3.recto">
+   <xsl:template name="book.titlepage.verso"></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"/>
@@ -1100,7 +1275,7 @@
     <xsl:when test="title">
       <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="title"/>
     </xsl:when>
-  </xsl:choose>
+  </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"/>
@@ -1114,16 +1289,34 @@
   <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:template> -->
 
-<xsl:template name="book.titlepage.separator"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
-</xsl:template>
+   <xsl:template name="book.titlepage3.recto">
 
+   </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.separator"></xsl:template>
+   
+<!-- <xsl:template name="book.titlepage.separator"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
+</xsl:template> -->
+
 <xsl:template name="book.titlepage.before.recto">
 </xsl:template>
 
-<xsl:template name="book.titlepage.before.verso"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
-</xsl:template>
+<!-- <xsl:template name="book.titlepage.before.verso"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
+</xsl:template> -->
 
 <xsl:template name="book.titlepage">
   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
@@ -1244,7 +1437,18 @@
   </fo:list-item>
 </xsl:template>
 
-<xsl:param name="programlisting.font" select="'verdana,helvetica,sans-serif'" />
-<xsl:param name="programlisting.font.size" select="'100%'" />
+<!-- <xsl:param name="programlisting.font" select="'verdana,helvetica,sans-serif'" />
+<xsl:param name="programlisting.font.size" select="'100%'" /> -->
 
+   <!-- 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>
+   
 </xsl:stylesheet>

Modified: trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/nochunk-html.xsl
===================================================================
--- trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/nochunk-html.xsl	2008-04-01 16:45:46 UTC (rev 71561)
+++ trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/nochunk-html.xsl	2008-04-01 17:17:20 UTC (rev 71562)
@@ -6,7 +6,7 @@
 	Author: Jeff Fearn <jfearn at redhat.com>
 	Author: Tammy Fox <tfox at redhat.com>
 	Author: Andy Fitzsimon <afitzsim at redhat.com>
-        Author: Mark Newton <mark.newton at jboss.org>
+    Author: Mark Newton <mark.newton at jboss.org>
 -->
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

Modified: trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/redhat.xsl
===================================================================
--- trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/redhat.xsl	2008-04-01 16:45:46 UTC (rev 71561)
+++ trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/redhat.xsl	2008-04-01 17:17:20 UTC (rev 71562)
@@ -29,13 +29,13 @@
 </l:i18n>
 
 <!-- titles after all elements -->
-<xsl:param name="formal.title.placement">
+<!-- <xsl:param name="formal.title.placement">
 figure after
 example after
 equation after
 table after
 procedure before 
-</xsl:param>
+</xsl:param> -->
 
 <!--
 Copied from fo/params.xsl

Modified: trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/xhtml-common.xsl
===================================================================
--- trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/xhtml-common.xsl	2008-04-01 16:45:46 UTC (rev 71561)
+++ trunk/docbook-support/jbossorg-docbook-xslt/src/main/resources/xslt/org/jboss/xhtml-common.xsl	2008-04-01 17:17:20 UTC (rev 71562)
@@ -6,7 +6,8 @@
 	Author: Jeff Fearn <jfearn at redhat.com>
 	Author: Tammy Fox <tfox at redhat.com>
 	Author: Andy Fitzsimon <afitzsim at redhat.com>
-        Author: Mark Newton <mark.newton at jboss.org>
+    Author: Mark Newton <mark.newton at jboss.org>
+    Author: Pete Muir    
 -->
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
@@ -14,6 +15,56 @@
 				version="1.0"
 								exclude-result-prefixes="exsl">
 
+   <xsl:import href="common.xsl" />
+   
+   <!--  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="person.name.list">
+               <xsl:with-param name="person.list" select="./author|./corpauthor" />
+               <xsl:with-param name="person.type" select="'author'"/>
+            </xsl:call-template>
+         </div>
+
+         <div class="editors">
+            <xsl:call-template name="person.name.list">
+               <xsl:with-param name="person.list" select="./editor" />
+               <xsl:with-param name="person.type" select="'editor'"/>
+            </xsl:call-template>
+         </div>
+
+         <div class="others">
+            <xsl:call-template name="person.name.list">
+               <xsl:with-param name="person.list" select="./othercredit" />
+               <xsl:with-param name="person.type" select="'othercredit'"/>
+            </xsl:call-template>
+         </div>
+      </div>
+   </xsl:template>     
+   
 <!-- Admonition Graphics -->
 <xsl:param name="admon.graphics" select="1"/>
 <xsl:param name="admon.style" select="''"/>

Modified: trunk/docbook-support/jbossorg-jdocbook-style/src/main/css/css/codehighlight.css
===================================================================
--- trunk/docbook-support/jbossorg-jdocbook-style/src/main/css/css/codehighlight.css	2008-04-01 16:45:46 UTC (rev 71561)
+++ trunk/docbook-support/jbossorg-jdocbook-style/src/main/css/css/codehighlight.css	2008-04-01 17:17:20 UTC (rev 71562)
@@ -8,10 +8,10 @@
 	LINE-HEIGHT: 8px
 }
 PRE.JSP {
-	LINE-HEIGHT: 0px
+	LINE-HEIGHT: 8px
 }
 PRE.XHTML {
-	LINE-HEIGHT: 0px
+	LINE-HEIGHT: 8px
 }
 .java_type {
 	COLOR: #000000

Modified: trunk/docbook-support/jbossorg-jdocbook-style/src/main/css/css/documentation.css
===================================================================
--- trunk/docbook-support/jbossorg-jdocbook-style/src/main/css/css/documentation.css	2008-04-01 16:45:46 UTC (rev 71561)
+++ trunk/docbook-support/jbossorg-jdocbook-style/src/main/css/css/documentation.css	2008-04-01 17:17:20 UTC (rev 71562)
@@ -228,4 +228,13 @@
 .authorgroup h4{padding:0em; margin:0em;margin-top:1em;}
 .author, .editor, .translator, .othercredit{display:block;}
 
+/*
+	Simpler author style on contents page
+	*/
+.authorgroup div {
+	margin-left: 10px;
+	margin-right: 10px;
+	margin-bottom: 15px;
+}
+
 ul li p:last-child{margin-bottom:0em; padding-bottom:0em;}




More information about the jboss-cvs-commits mailing list