[seam-commits] Seam SVN: r7634 - 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
Wed Mar 19 10:22:25 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-03-19 10:22:25 -0400 (Wed, 19 Mar 2008)
New Revision: 7634

Added:
   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/nochunk-html.xsl
Modified:
   maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-html.xsl
Log:
short author stuff, nochunk xsl

Added: 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	                        (rev 0)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl	2008-03-19 14:22:25 UTC (rev 7634)
@@ -0,0 +1,59 @@
+<?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">
+
+   <!-- These extensions are required for table printing and other stuff -->
+   <xsl:param name="use.extensions">1</xsl:param>
+   <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 -->
+   <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>
+   <xsl:param name="callout.defaultcolumn">90</xsl:param>
+
+   <!-- Place callout marks at this column in annotated areas -->
+
+   <xsl:template match="author" mode="titlepage.mode">
+      <div class="{name(.)}">
+         <xsl:call-template name="person.name" />
+         <xsl:apply-templates mode="titlepage.mode" select="./contrib" />
+         <xsl:apply-templates mode="titlepage.mode" select="./affiliation" />
+         <xsl:apply-templates mode="titlepage.mode" select="./email" />
+      </div>
+   </xsl:template>
+
+   <xsl:template match="affiliation" mode="titlepage.mode">
+      (
+      <xsl:apply-templates mode="titlepage.mode" />
+      )
+   </xsl:template>
+
+   <xsl:template match="orgname" mode="titlepage.mode">
+      <span class="{name(.)}">
+         <xsl:apply-templates mode="titlepage.mode" />
+      </span>
+   </xsl:template>
+
+<xsl:template match="jobtitle" mode="titlepage.mode">
+  <span class="{name(.)}">
+    <xsl:apply-templates mode="titlepage.mode"/>
+  </span>
+</xsl:template>
+
+</xsl:stylesheet>


Property changes on: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl
___________________________________________________________________
Name: svn:mime-type
   + text/plain

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-19 14:22:06 UTC (rev 7633)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-html.xsl	2008-03-19 14:22:25 UTC (rev 7634)
@@ -1,8 +1,8 @@
 <?xml version='1.0'?>
  
 <!--
-	Copyright 2007 Red Hat, Inc.
-	License: GPL
+	Copyright 2008 JBoss, a division of Red Hat
+	License: LGPL
 	Author: Pete Muir
 -->
 
@@ -14,35 +14,12 @@
 
    <xsl:import href="classpath:/xslt/org/jboss/main-html.xsl"/>
    <xsl:import href="version.xsl" />
+   <xsl:import href="common-xhtml.xsl" />
    
-   <!-- These extensions are required for table printing and other stuff -->
-    <xsl:param name="use.extensions">1</xsl:param>
-    <xsl:param name="tablecolumns.extension">0</xsl:param>
-    <xsl:param name="callout.extensions">1</xsl:param>
-    <xsl:param name="graphicsize.extension">0</xsl:param>
-   
-   <xsl:param name="html.stylesheet" select="'css/seamframework.css'"/>
+   <xsl:param name="html.stylesheet" select="'css/seamframework.css'" />
     
-    <!-- Placement of titles -->
-    <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>
-    <xsl:param name="callout.defaultcolumn">90</xsl:param>
-
-    <!-- Place callout marks at this column in annotated areas -->
-    
     <!--
-From: xhtml/chunk-common.xsl
-Reason: remove tables, truncate link text
-Version:
+   Replace the navigation header with our banner and link
 -->
 <xsl:template name="header.navigation">
    <xsl:param name="prev" select="/foo"/>

Added: 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	                        (rev 0)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/nochunk-html.xsl	2008-03-19 14:22:25 UTC (rev 7634)
@@ -0,0 +1,91 @@
+<?xml version='1.0'?>
+ 
+<!--
+	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:import href="classpath:/xslt/org/jboss/nochunk-html.xsl"/>
+   <xsl:import href="common-xhtml.xsl" />
+   <xsl:import href="version.xsl" />
+   
+   <xsl:param name="html.stylesheet" select="'css/seamframework-nochunk.css'" />
+   
+   <!--
+From: xhtml/titlepage-templates.xsl
+Reason: Needed to add SeamFramework.org banner
+Version: 1.72.0
+-->
+<xsl:template name="book.titlepage.recto">
+            <p xmlns="http://www.w3.org/1999/xhtml">
+               <xsl:attribute name="id">
+                  <xsl:text>title</xsl:text>
+               </xsl:attribute>
+               <a>
+                  <xsl:attribute name="href">
+                     <xsl:text>http://www.seamframework.org</xsl:text>
+                  </xsl:attribute>
+                  <xsl:attribute name="class">
+                     <xsl:text>seamFrameworkOrg_href</xsl:text>
+                  </xsl:attribute>
+                  <strong>
+                          SeamFramework.org
+                  </strong>
+               </a>
+            </p>
+  <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: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>
+
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/corpauthor"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/corpauthor"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/authorgroup"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/authorgroup"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/author"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/othercredit"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/othercredit"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/releaseinfo"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/releaseinfo"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/copyright"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/copyright"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/legalnotice"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/legalnotice"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/pubdate"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/pubdate"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/revision"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/revision"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/revhistory"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/revhistory"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/abstract"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/abstract"/>
+</xsl:template>
+
+</xsl:stylesheet>


Property changes on: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/nochunk-html.xsl
___________________________________________________________________
Name: svn:mime-type
   + text/plain




More information about the seam-commits mailing list