[seam-commits] Seam SVN: r7771 - in maven-plugins/tags: seam-doccbook-xslt_1_1_0_BETA1 and 1 other directories.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Mar 31 15:09:35 EDT 2008
Author: pete.muir at jboss.org
Date: 2008-03-31 15:09:35 -0400 (Mon, 31 Mar 2008)
New Revision: 7771
Added:
maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/
maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/pom.xml
maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/
maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl
maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/common.xsl
maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/main-html.xsl
maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl
maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/nochunk-html.xsl
Removed:
maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/pom.xml
maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/
maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/main-html.xsl
maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl
maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/version.xsl
Log:
[maven-release-plugin] copy for tag seam-doccbook-xslt_1_1_0_BETA1
Copied: maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1 (from rev 7632, maven-plugins/trunk/seam-docbook-xslt)
Deleted: maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/pom.xml
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/pom.xml 2008-03-19 12:53:41 UTC (rev 7632)
+++ maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/pom.xml 2008-03-31 19:09:35 UTC (rev 7771)
@@ -1,61 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>org.jboss.seam</groupId>
- <artifactId>seam-docbook-xslt</artifactId>
- <packaging>jar</packaging>
- <version>1.1.0-SNAPSHOT</version>
-
- <name>SeamFramework.org DocBook XSLT</name>
- <description>
- The main project to transform DocBook XML into XHTML and other formats for
- SeamFramework.org Documentation.
- </description>
- <url>http://www.seamframework.org</url>
-
- <dependencies>
- <dependency>
- <groupId>org.jboss</groupId>
- <artifactId>jbossorg-docbook-xslt</artifactId>
- </dependency>
- </dependencies>
-
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.jboss</groupId>
- <artifactId>jbossorg-docbook-xslt</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <build>
- <extensions>
- <extension>
- <groupId>org.apache.maven.wagon</groupId>
- <artifactId>wagon-webdav</artifactId>
- <version>1.0-beta-2</version>
- </extension>
- </extensions>
- </build>
-
- <distributionManagement>
- <repository>
- <!-- Copy the dist to the local checkout of the JBoss maven2 repo ${maven.repository.root} -->
- <!-- It is anticipated that ${maven.repository.root} be set in user's settings.xml -->
- <!-- todo : replace this with direct svn access once the svnkit providers are available -->
- <id>repository.jboss.org</id>
- <url>file://${maven.repository.root}</url>
- </repository>
- <snapshotRepository>
- <id>snapshots.jboss.org</id>
- <name>JBoss Snapshot Repository</name>
- <url>dav:https://snapshots.jboss.org/maven2</url>
- </snapshotRepository>
- </distributionManagement>
-
-</project>
Copied: maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/pom.xml (from rev 7770, maven-plugins/trunk/seam-docbook-xslt/pom.xml)
===================================================================
--- maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/pom.xml (rev 0)
+++ maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/pom.xml 2008-03-31 19:09:35 UTC (rev 7771)
@@ -0,0 +1,74 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>seam-docbook-xslt</artifactId>
+ <packaging>jar</packaging>
+ <version>1.1.0.BETA1</version>
+
+ <name>SeamFramework.org DocBook XSLT</name>
+ <description>
+ The main project to transform DocBook XML into XHTML and other formats for
+ SeamFramework.org Documentation.
+ </description>
+ <url>http://www.seamframework.org</url>
+
+ <scm>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/seam/maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1</developerConnection>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/seam/maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1</connection>
+ <url>http://fisheye.jboss.org/browse/Seam/maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1</url>
+ </scm>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-docbook-xslt</artifactId>
+ </dependency>
+ </dependencies>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-docbook-xslt</artifactId>
+ <version>1.1.0-200803311754</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <build>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-webdav</artifactId>
+ <version>1.0-beta-2</version>
+ </extension>
+ </extensions>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.1.0-200803311251UTC-MPJDOCBOOK-8</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <distributionManagement>
+ <repository>
+ <!-- Copy the dist to the local checkout of the JBoss maven2 repo ${maven.repository.root} -->
+ <!-- It is anticipated that ${maven.repository.root} be set in user's settings.xml -->
+ <!-- todo : replace this with direct svn access once the svnkit providers are available -->
+ <id>repository.jboss.org</id>
+ <url>file://${maven.repository.root}</url>
+ </repository>
+ <snapshotRepository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshot Repository</name>
+ <url>dav:https://snapshots.jboss.org/maven2</url>
+ </snapshotRepository>
+ </distributionManagement>
+
+</project>
\ No newline at end of file
Copied: maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src (from rev 7631, maven-plugins/trunk/seam-docbook-xslt/src)
Copied: maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl (from rev 7764, maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl)
===================================================================
--- maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl (rev 0)
+++ maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl 2008-03-31 19:09:35 UTC (rev 7771)
@@ -0,0 +1,66 @@
+<?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>
Copied: maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/common.xsl (from rev 7764, maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common.xsl)
===================================================================
--- maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/common.xsl (rev 0)
+++ maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/common.xsl 2008-03-31 19:09:35 UTC (rev 7771)
@@ -0,0 +1,81 @@
+<?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 > $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 > 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 < $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
Deleted: maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/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 12:52:15 UTC (rev 7631)
+++ maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/main-html.xsl 2008-03-31 19:09:35 UTC (rev 7771)
@@ -1,120 +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:import href="classpath:/xslt/org/jboss/main-html.xsl"/>
- <xsl:import href="version.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'"/>
-
- <!-- 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:
--->
-<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) > 0 or (count($up) > 0 and generate-id($up) != generate-id($home) and $navig.showtitles != 0) or count($next) > 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">
- <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:if>
- <xsl:if test="$row2">
- <ul class="docnav" xmlns="http://www.w3.org/1999/xhtml">
- <li class="previous">
- <xsl:if test="count($prev)>0">
- <a accesskey="p">
- <xsl:attribute name="href">
- <xsl:call-template name="href.target">
- <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)>0">
- <a accesskey="n">
- <xsl:attribute name="href">
- <xsl:call-template name="href.target">
- <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>
- </xsl:if>
- </xsl:if>
- <xsl:if test="$header.rule != 0">
- <hr/>
- </xsl:if>
- </xsl:if>
-</xsl:template>
-
-
-
-</xsl:stylesheet>
Copied: maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/main-html.xsl (from rev 7764, maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-html.xsl)
===================================================================
--- maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/main-html.xsl (rev 0)
+++ maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/main-html.xsl 2008-03-31 19:09:35 UTC (rev 7771)
@@ -0,0 +1,23 @@
+<?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/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="jbossOrgHref" select="'http://www.seamframework.org'" />
+ <xsl:param name="commDocHref" select="'http://www.seamframework.org/Documentation'" />
+
+</xsl:stylesheet>
Deleted: maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/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 12:52:15 UTC (rev 7631)
+++ maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl 2008-03-31 19:09:35 UTC (rev 7771)
@@ -1,99 +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:import href="classpath:/xslt/org/jboss/main-pdf.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>
-
- <!-- 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:stylesheet>
Copied: maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl (from rev 7764, maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl)
===================================================================
--- maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl (rev 0)
+++ maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl 2008-03-31 19:09:35 UTC (rev 7771)
@@ -0,0 +1,279 @@
+<?xml version='1.0'?>
+
+<!--
+ 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: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>
+
+ <xsl:param name="table.frame.border.thickness">0.6pt</xsl:param>
+ <xsl:param name="table.cell.border.right.color">white</xsl:param>
+ <xsl:param name="table.cell.border.left.color">#D3D2D1</xsl:param>
+ <xsl:param name="table.frame.border.right.color">white</xsl:param>
+ <xsl:param name="table.frame.border.left.color">white</xsl:param>
+
+ <xsl:template name="table.cell.block.properties">
+ <!-- highlight this entry? -->
+ <xsl:if test="ancestor::thead or ancestor::tfoot">
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute name="background-color">#EDE8DB</xsl:attribute>
+ <xsl:attribute name="color">black</xsl:attribute>
+ </xsl:if>
+ </xsl:template>
+
+ <!--
+ From: fo/table.xsl
+ Reason: Table Header format
+ Version:1.72
+ -->
+ <!-- customize this template to add row properties -->
+ <xsl:template name="table.row.properties">
+ <xsl:variable name="bgcolor">
+ <xsl:call-template name="dbfo-attribute">
+ <xsl:with-param name="pis" select="processing-instruction('dbfo')" />
+ <xsl:with-param name="attribute" select="'bgcolor'" />
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:if test="$bgcolor != ''">
+ <xsl:attribute name="background-color">
+ <xsl:value-of select="$bgcolor" />
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:if test="ancestor::thead or ancestor::tfoot">
+ <xsl:attribute name="background-color">#EDE8DB</xsl:attribute>
+ </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>
Copied: maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/nochunk-html.xsl (from rev 7764, maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/nochunk-html.xsl)
===================================================================
--- maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/nochunk-html.xsl (rev 0)
+++ maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/nochunk-html.xsl 2008-03-31 19:09:35 UTC (rev 7771)
@@ -0,0 +1,22 @@
+<?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="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>
Deleted: maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/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-19 12:52:15 UTC (rev 7631)
+++ maven-plugins/tags/seam-doccbook-xslt_1_1_0_BETA1/src/main/resources/xslt/org/jboss/seam/version.xsl 2008-03-31 19:09:35 UTC (rev 7771)
@@ -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