Seam SVN: r7660 - maven-plugins/trunk/seam-jdocbook-style/src/main/css/css.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-03-20 12:25:25 -0400 (Thu, 20 Mar 2008)
New Revision: 7660
Modified:
maven-plugins/trunk/seam-jdocbook-style/src/main/css/css/seamframework.css
Log:
comments
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-03-20 16:19:29 UTC (rev 7659)
+++ maven-plugins/trunk/seam-jdocbook-style/src/main/css/css/seamframework.css 2008-03-20 16:25:25 UTC (rev 7660)
@@ -1,9 +1,15 @@
@import url(jbossorg.css);
+/*
+Switch to monospace font for programlisting, needed for crappy callouts
+*/
pre {
font-family: monospace;
}
+/*
+ Switch to sfwk fonts, set a page width, set the grey background
+ */
body {
font-family: 'Lucida Grande', Geneva, Verdana, Arial, sans-serif;
font-size: 12px;
@@ -12,6 +18,9 @@
background-image: none;
}
+/*
+ Replace the banner
+ */
#title a.seamFrameworkOrg_href {
display: block;
height: 98px;
@@ -19,6 +28,8 @@
background: url(../images/hrd_bkgimage_fade.gif) top left no-repeat;
}
+/*
+ More sfwk styling */
a {
text-decoration: none;
}
@@ -27,16 +38,25 @@
font-size: 150%;
}
+/*
+ Use sfwk colour for title
+*/
h1,h2,h3,h4,h5,h6 {
color: #576C74;
}
+/*
+ The book title, remove the background image
+*/
.title {
color: #576C74;
background-image: none;
font-size: 175%
}
+/*
+ White page
+ */
.book {
background-color: white;
padding-top: 10px;
@@ -45,6 +65,9 @@
padding-right: 25px;
}
+/*
+ White page
+ */
.preface {
background-color: white;
padding-top: 10px;
@@ -53,6 +76,9 @@
padding-right: 25px;
}
+/*
+ White page
+ */
.chapter {
background-color: white;
padding-top: 10px;
@@ -61,6 +87,9 @@
padding-right: 25px;
}
+/*
+ Change to sfwk navigation icons
+ */
.docnav {
margin-bottom: 0px;
border-top: none;
@@ -158,12 +187,18 @@
font-size: 1em;
}
+/*
+ Use sfwk colour as background for examples
+ */
.example {
background: url(../images/leftside_bkgimage.gif) top left repeat;
padding: 5px;
margin-bottom: 10px;
}
+/*
+ Simpler author style on contents page
+ */
.author {
margin-top: 2px;
}
@@ -176,11 +211,18 @@
margin: 0px;
}
+/*
+ Make the seam version info into a title
+ */
.releaseinfo {
color: #576C74;
font-size: 150%;
}
+/*
+ For highlighting, looks very odd or broken at the 0px jboss.org stylesheets use
+ */
+
PRE.JSP {
LINE-HEIGHT: 8px
}
@@ -189,6 +231,9 @@
LINE-HEIGHT: 8px
}
+/*
+ use sfwk.org tables
+ */
.table-contents th {
background:#EDE8DB url(../images/th.bg.gif) repeat-x scroll 0pt;
color: black;
17 years, 9 months
Seam SVN: r7659 - maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-03-20 12:19:29 -0400 (Thu, 20 Mar 2008)
New Revision: 7659
Removed:
maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/version.xsl
Modified:
maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl
maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-html.xsl
maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl
Log:
Comments
Modified: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl 2008-03-20 16:05:31 UTC (rev 7658)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl 2008-03-20 16:19:29 UTC (rev 7659)
@@ -9,30 +9,33 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'
xmlns="http://www.w3.org/TR/xhtml1/transitional"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:rf="java:org.richfaces.highlight.XhtmlRendererFactory"
- xmlns:sverb="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Verbatim"
- xmlns:xverb="com.nwalsh.xalan.Verbatim"
- xmlns:lxslt="http://xml.apache.org/xslt"
- exclude-result-prefixes="sverb xverb lxslt">
+ exclude-result-prefixes="#default">
- <!-- These extensions are required for table printing and other stuff -->
+ <!-- Enable extensions (needed for callouts) -->
<xsl:param name="use.extensions">1</xsl:param>
+
+ <!-- Enable callouts -->
+ <xsl:param name="callout.extensions">1</xsl:param>
+
+ <!-- And disable these extensions -->
<xsl:param name="tablecolumns.extension">0</xsl:param>
- <xsl:param name="callout.extensions">1</xsl:param>
<xsl:param name="graphicsize.extension">0</xsl:param>
- <!-- Placement of titles -->
+ <!-- Placement of titles (Seam specific) -->
<xsl:param name="formal.title.placement">
figure after example before equation before table before procedure before
</xsl:param>
+
+
<!-- Callouts -->
-
+
<!-- Don't use graphics, use a simple number style -->
<xsl:param name="callout.graphics">0</xsl:param>
+
+ <!-- Place callout marks at this column in annotated areas -->
<xsl:param name="callout.defaultcolumn">90</xsl:param>
- <!-- Place callout marks at this column in annotated areas -->
-
+ <!-- Simple list of authors -->
<xsl:template match="author" mode="titlepage.mode">
<div class="{name(.)}">
<xsl:call-template name="person.name" />
@@ -42,12 +45,14 @@
</div>
</xsl:template>
+ <!-- Simple affiliation (put it in brackets) -->
<xsl:template match="affiliation" mode="titlepage.mode">
(
<xsl:apply-templates mode="titlepage.mode" />
)
</xsl:template>
+ <!-- And put don't put <br /> everywhere -->
<xsl:template match="orgname" mode="titlepage.mode">
<span class="{name(.)}">
<xsl:apply-templates mode="titlepage.mode" />
Modified: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-html.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-html.xsl 2008-03-20 16:05:31 UTC (rev 7658)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-html.xsl 2008-03-20 16:19:29 UTC (rev 7659)
@@ -1,99 +1,100 @@
<?xml version='1.0'?>
-
+
<!--
- Copyright 2008 JBoss, a division of Red Hat
- License: LGPL
- Author: Pete Muir
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Pete Muir
-->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version='1.0'
- xmlns="http://www.w3.org/TR/xhtml1/transitional"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- exclude-result-prefixes="#default">
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'
+ xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ exclude-result-prefixes="#default">
<!-- Needs MPJDOCBOOK-8 -->
<!-- <xsl:import href="classpath:/xslt/org/jboss/main-html.xsl"/>-->
- <xsl:import href="../main-html.xsl"/>
+ <xsl:import href="../main-html.xsl" />
<xsl:import href="version.xsl" />
<xsl:import href="common-xhtml.xsl" />
-
+
<xsl:param name="html.stylesheet" select="'css/seamframework.css'" />
-
- <!--
- Replace the navigation header with our banner and link
--->
-<xsl:template name="header.navigation">
- <xsl:param name="prev" select="/foo"/>
- <xsl:param name="next" select="/foo"/>
- <xsl:param name="nav.context"/>
- <xsl:variable name="home" select="/*[1]"/>
- <xsl:variable name="up" select="parent::*"/>
- <xsl:variable name="row1" select="$navig.showtitles != 0"/>
- <xsl:variable name="row2" select="count($prev) > 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">
+
+ <!--
+ Replace the navigation header with our banner and link
+ -->
+ <xsl:template name="header.navigation">
+ <xsl:param name="prev" select="/foo" />
+ <xsl:param name="next" select="/foo" />
+ <xsl:param name="nav.context" />
+ <xsl:variable name="home" select="/*[1]" />
+ <xsl:variable name="up" select="parent::*" />
+ <xsl:variable name="row1" select="$navig.showtitles != 0" />
+ <xsl:variable name="row2"
+ select="count($prev) > 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">
+ <a>
+ <xsl:attribute name="href">
<xsl:text>http://www.seamframework.org</xsl:text>
</xsl:attribute>
- <xsl:attribute name="class">
+ <xsl:attribute name="class">
<xsl:text>seamFrameworkOrg_href</xsl:text>
</xsl:attribute>
- <strong>
- SeamFramework.org
- </strong>
- </a>
- </p>
- </xsl:if>
- <xsl:if test="$row2">
- <ul class="docnav" xmlns="http://www.w3.org/1999/xhtml">
- <li class="previous">
- <xsl:if test="count($prev)>0">
- <a accesskey="p">
- <xsl:attribute name="href">
+ <strong>SeamFramework.org</strong>
+ </a>
+ </p>
+ </xsl:if>
+ <xsl:if test="$row2">
+ <ul class="docnav" xmlns="http://www.w3.org/1999/xhtml">
+ <li class="previous">
+ <xsl:if test="count($prev)>0">
+ <a accesskey="p">
+ <xsl:attribute name="href">
<xsl:call-template name="href.target">
- <xsl:with-param name="object" select="$prev"/>
+ <xsl:with-param name="object" select="$prev" />
</xsl:call-template>
</xsl:attribute>
- <strong>
- <xsl:call-template name="navig.content">
- <xsl:with-param name="direction" select="'prev'"/>
- </xsl:call-template>
- </strong>
- </a>
- </xsl:if>
- </li>
- <li class="next">
- <xsl:if test="count($next)>0">
- <a accesskey="n">
- <xsl:attribute name="href">
+ <strong>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction"
+ select="'prev'" />
+ </xsl:call-template>
+ </strong>
+ </a>
+ </xsl:if>
+ </li>
+ <li class="next">
+ <xsl:if test="count($next)>0">
+ <a accesskey="n">
+ <xsl:attribute name="href">
<xsl:call-template name="href.target">
- <xsl:with-param name="object" select="$next"/>
+ <xsl:with-param name="object" select="$next" />
</xsl:call-template>
</xsl:attribute>
- <strong>
- <xsl:call-template name="navig.content">
- <xsl:with-param name="direction" select="'next'"/>
- </xsl:call-template>
- </strong>
- </a>
- </xsl:if>
- </li>
- </ul>
+ <strong>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction"
+ select="'next'" />
+ </xsl:call-template>
+ </strong>
+ </a>
+ </xsl:if>
+ </li>
+ </ul>
+ </xsl:if>
</xsl:if>
+ <xsl:if test="$header.rule != 0">
+ <hr />
+ </xsl:if>
</xsl:if>
- <xsl:if test="$header.rule != 0">
- <hr/>
- </xsl:if>
- </xsl:if>
-</xsl:template>
-
-
+ </xsl:template>
+
+
</xsl:stylesheet>
Modified: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl 2008-03-20 16:05:31 UTC (rev 7658)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl 2008-03-20 16:19:29 UTC (rev 7659)
@@ -70,6 +70,11 @@
</fo:inline>
</xsl:template>
+
+ <!-- Make examples, tables etc. break across pages -->
+ <xsl:attribute-set name="formal.object.properties">
+ <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
+ </xsl:attribute-set>
<!-- Correct placement of titles for figures and examples. -->
<xsl:param name="formal.title.placement">
@@ -81,6 +86,7 @@
<xsl:template name="book.titlepage.verso"></xsl:template>
<xsl:template name="book.titlepage.separator"></xsl:template>
+ <!-- Use our own slightly simpler title page (just show title, version, authors) -->
<xsl:template name="book.titlepage.recto">
<xsl:choose>
<xsl:when test="bookinfo/title">
@@ -104,8 +110,6 @@
<xsl:apply-templates mode="book.titlepage.recto.auto.mode"
select="issuenum" />
-
-
<xsl:choose>
<xsl:when test="bookinfo/subtitle">
<xsl:apply-templates mode="book.titlepage.recto.auto.mode"
@@ -156,17 +160,25 @@
<xsl:apply-templates mode="book.titlepage.verso.auto.mode"
select="info/publisher" />
</xsl:template>
+
+ <!-- Change the font color for titles to SeamFramework.org one -->
<xsl:param name="title.color">#576C74</xsl:param>
+ <!-- Change to monospace font for programlisting, needed to workaround crappy callouts -->
<xsl:param name="programlisting.font" select="$monospace.font.family" />
+
+ <!-- Make the font for programlisting slightly smaller -->
<xsl:param name="programlisting.font.size" select="'75%'" />
+
+ <!-- Now, set enable scalefit for large images -->
<xsl:param name="graphicsize.extension" select="'1'" />
<xsl:param name="default.image.width">17.4cm</xsl:param>
- <!-- Style tables -->
+ <!-- Style tables to look like SeamFramework.org-->
+
<xsl:param name="table.cell.border.color">#D3D2D1</xsl:param>
<xsl:param name="table.frame.border.color">#D3D2D1</xsl:param>
<xsl:param name="table.cell.border.thickness">0.6pt</xsl:param>
@@ -209,9 +221,5 @@
</xsl:if>
</xsl:template>
- <xsl:attribute-set name="formal.object.properties">
- <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
- </xsl:attribute-set>
-
</xsl:stylesheet>
Deleted: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/version.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/version.xsl 2008-03-20 16:05:31 UTC (rev 7658)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/version.xsl 2008-03-20 16:19:29 UTC (rev 7659)
@@ -1,18 +0,0 @@
-<?xml version='1.0'?>
-
-<!--
- Copyright 2007 JBoss, a division of Red Hat
- License: LGPL
- Author: Pete Muir <pete.muir(a)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>
17 years, 9 months
Seam SVN: r7658 - branches/Seam_2_0/doc/Seam_Reference_Guide/en.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-03-20 12:05:31 -0400 (Thu, 20 Mar 2008)
New Revision: 7658
Modified:
branches/Seam_2_0/doc/Seam_Reference_Guide/en/Tutorial.xml
Log:
Add example blocks back in!
Modified: branches/Seam_2_0/doc/Seam_Reference_Guide/en/Tutorial.xml
===================================================================
--- branches/Seam_2_0/doc/Seam_Reference_Guide/en/Tutorial.xml 2008-03-20 16:03:21 UTC (rev 7657)
+++ branches/Seam_2_0/doc/Seam_Reference_Guide/en/Tutorial.xml 2008-03-20 16:05:31 UTC (rev 7658)
@@ -141,6 +141,8 @@
<emphasis>validation</emphasis> declaratively, via annotations. It also needs some extra
annotations that define the class as a Seam component. </para>
<!-- Can't use code hightlighting with callouts -->
+ <example>
+ <title></title>
<programlistingco>
<areaspec>
<area id="registration-entity-annotation" coords="1"/>
@@ -259,6 +261,7 @@
</callout>
</calloutlist>
</programlistingco>
+ </example>
<para> The most important things to notice in this example are the <literal>@Name</literal> and
<literal>@Scope</literal> annotations. These annotations establish that this class is a Seam component. </para>
<para> We'll see below that the properties of our <literal>User</literal> class are bound to
@@ -282,6 +285,8 @@
<para> This is the only really interesting code in the example! </para>
<!-- Can't use code hightlighting with callouts -->
+ <example>
+ <title></title>
<programlistingco>
<areaspec>
<area id="registration-stateless-annotation" coords="1"/>
@@ -386,6 +391,7 @@
</callout>
</calloutlist>
</programlistingco>
+ </example>
<para> Note that we did not explicitly specify a <literal>@Scope</literal> this time. Each Seam
component type has a default scope if not explicitly specified. For stateless session beans, the
@@ -411,12 +417,12 @@
<para>Naturally, our session bean needs a local interface.</para>
-
+ <example><title></title>
<programlisting role="JAVA"><![CDATA[@Local
public interface Register
{
public String register();
-}]]></programlisting>
+}]]></programlisting></example>
<para> That's the end of the Java code. Now onto the deployment descriptors. </para>
@@ -438,7 +444,8 @@
configuration in a file called <literal>components.xml</literal>, located in the
<literal>WEB-INF</literal> directory. We'll use the <literal>components.xml</literal> file to tell
Seam how to find our EJB components in JNDI: </para>
-
+ <example>
+ <title></title>
<programlisting role="XML"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<components xmlns="http://jboss.com/products/seam/components"
xmlns:core="http://jboss.com/products/seam/core"
@@ -449,7 +456,7 @@
<core:init jndi-pattern="@jndiPattern@"/>
-</components>]]></programlisting>
+</components>]]></programlisting></example>
<para> This code configures a property named <literal>jndiPattern</literal> of a built-in Seam component
named <literal>org.jboss.seam.core.init</literal>. The funny <literal>@</literal> symbols are
@@ -462,7 +469,7 @@
<para> The presentation layer for our mini-application will be deployed in a WAR. So we'll need a web
deployment descriptor. </para>
-
+ <example><title></title>
<programlisting role="XML"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
@@ -502,7 +509,7 @@
<session-timeout>10</session-timeout>
</session-config>
-</web-app>]]></programlisting>
+</web-app>]]></programlisting></example>
<para> This <literal>web.xml</literal> file configures Seam and JSF. The configuration you see here is
@@ -516,7 +523,9 @@
<para> Most Seam applications use JSF views as the presentation layer. So usually we'll need
<literal>faces-config.xml</literal>. In our case, we are going to use Facelets for
defining our views, so we need to tell JSF to use Facelets as its templating engine. </para>
-
+
+ <example>
+ <title></title>
<programlisting role="XML"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<faces-config version="1.2"
xmlns="http://java.sun.com/xml/ns/javaee"
@@ -529,6 +538,7 @@
</application>
</faces-config>]]></programlisting>
+ </example>
<para> Note that we don't need
@@ -606,7 +616,8 @@
<para> The view pages for a Seam application could be implemented using any technology that supports
JSF. In this example we use Facelets, because we think it's better than JSP.</para>
-
+ <example>
+ <title></title>
<programlisting role="XHTML"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -634,14 +645,15 @@
</f:view>
</body>
-</html>]]></programlisting>
+</html>]]></programlisting></example>
<para> The only thing here that is specific to Seam is the
<literal><s:validateAll></literal> tag. This JSF component tells JSF to validate all
the contained input fields against the Hibernate Validator annotations specified on the entity bean. </para>
-
+ <example>
+ <title></title>
<programlisting role="XHTML"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -659,7 +671,7 @@
</html>
]]></programlisting>
-
+ </example>
<para> This is a boring old Facelets page using some embedded EL. There is nothing specific to Seam
@@ -672,8 +684,8 @@
<para> Finally, since our application is deployed as an EAR, we need a deployment descriptor there, too. </para>
-
- <programlisting role="XML"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
+ <example id="registration-application-xml"><title>registration application</title>
+ <programlisting role="XML"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
@@ -699,7 +711,7 @@
</module>
</application>]]></programlisting>
-
+ </example>
<para> This deployment descriptor links modules in the enterprise archive and binds the web application
to the context root <literal>/seam-registration</literal>. </para>
@@ -766,7 +778,9 @@
<para> The <literal>Message</literal> entity defines the title, text, date and time of a message, and a
flag indicating whether the message has been read: </para>
- <programlisting role="JAVA"><![CDATA[@Entity
+ <example>
+ <title></title>
+ <programlisting role="JAVA"><![CDATA[@Entity
@Name("message")
@Scope(EVENT)
public class Message implements Serializable
@@ -819,6 +833,7 @@
}
}]]></programlisting>
+ </example>
</section>
@@ -839,7 +854,9 @@
<para> We want to cache the list of messages in memory between server requests, so we will make this a
stateful session bean. </para>
<!-- Can't use code hightlighting with callouts -->
- <programlistingco>
+ <example>
+ <title></title>
+ <programlistingco>
<areaspec>
<area id="messages-datamodel" coords="7"/>
<area id="messages-datamodelselection" coords="10"/>
@@ -939,7 +956,7 @@
</callout>
</calloutlist>
</programlistingco>
-
+ </example>
<para> Note that this is a session-scoped Seam component. It is associated with the user login session,
and all requests from a login session share the same instance of the component. (In Seam
@@ -975,8 +992,9 @@
<para> The JSP page is a straightforward use of the JSF <literal><h:dataTable></literal>
component. Again, nothing specific to Seam. </para>
-
- <programlisting role="XHTML"><![CDATA[<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+ <example>
+ <title></title>
+ <programlisting role="XHTML"><![CDATA[<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
<head>
@@ -1020,6 +1038,7 @@
</f:view>
</body>
</html>]]></programlisting>
+ </example>
</section>
@@ -1082,15 +1101,17 @@
JavaBeans (There was no reason to use session beans, since they do not access the database, or have any
other transactional behavior). Let's start with the process definition: </para>
<!-- Can't use code hightlighting with callouts -->
- <programlistingco>
- <areaspec>
- <area id="todo-startstate" coords="3"/>
- <area id="todo-tasknode" coords="7"/>
- <area id="todo-task" coords="8"/>
- <area id="todo-assignment" coords="9"/>
- <area id="todo-endstate" coords="14"/>
- </areaspec>
- <programlisting><![CDATA[<process-definition name="todo">
+ <example>
+ <title></title>
+ <programlistingco>
+ <areaspec>
+ <area id="todo-startstate" coords="3"/>
+ <area id="todo-tasknode" coords="7"/>
+ <area id="todo-task" coords="8"/>
+ <area id="todo-assignment" coords="9"/>
+ <area id="todo-endstate" coords="14"/>
+ </areaspec>
+ <programlisting><![CDATA[<process-definition name="todo">
<start-state name="start">
<transition to="todo"/>
@@ -1136,6 +1157,7 @@
</callout>
</calloutlist>
</programlistingco>
+ </example>
<para> If we view this process definition using the process definition editor provided by JBossIDE, this is
@@ -1157,8 +1179,9 @@
<para> The first JavaBean handles the login screen <literal>login.jsp</literal>. Its job is just to
initialize the jBPM actor id using the <literal>actor</literal> component. (In a real application, it
would also need to authenticate the user.) </para>
-
- <programlisting role="JAVA"><![CDATA[@Name("login")
+ <example>
+ <title></title>
+ <programlisting role="JAVA"><![CDATA[@Name("login")
public class Login {
@In
@@ -1180,6 +1203,7 @@
return "/todo.jsp";
}
}]]></programlisting>
+ </example>
<para> Here we see the use of <literal>@In</literal> to inject the built-in <literal>Actor</literal>
@@ -1211,11 +1235,13 @@
<para> The second JavaBean is responsible for starting business process instances, and ending tasks. </para>
<!-- Can't use code hightlighting with callouts -->
- <programlistingco>
- <areaspec>
- <area id="todo-description" coords="6"/>
- <area id="todo-createprocess-annotation" coords="15"/>
- <area id="todo-task-annotations" coords="18"/>
+ <example>
+ <title></title>
+ <programlistingco>
+ <areaspec>
+ <area id="todo-description" coords="6"/>
+ <area id="todo-createprocess-annotation" coords="15"/>
+ <area id="todo-task-annotations" coords="18"/>
</areaspec>
<programlisting><![CDATA[@Name("todoList")
public class TodoList {
@@ -1254,6 +1280,7 @@
</callout>
</calloutlist>
</programlistingco>
+ </example>
<para> In a more realistic example, <literal>@StartTask</literal> and <literal>@EndTask</literal> would not
@@ -1261,8 +1288,9 @@
complete the task. </para>
<para> Finally, the meat of the application is in <literal>todo.jsp</literal>: </para>
-
- <programlisting role="XHTML"><![CDATA[<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+ <example>
+ <title></title>
+ <programlisting role="XHTML"><![CDATA[<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://jboss.com/products/seam/taglib" prefix="s" %>
<html>
@@ -1327,14 +1355,16 @@
</f:view>
</body>
</html>]]></programlisting>
+ </example>
<para> Let's take this one piece at a time. </para>
<para> The page renders a list of tasks, which it gets from a built-in Seam component named
<literal>taskInstanceList</literal>. The list is defined inside a JSF form. </para>
-
- <programlisting role="XHTML"><![CDATA[<h:form id="list">
+ <example>
+ <title></title>
+ <programlisting role="XHTML"><![CDATA[<h:form id="list">
<div>
<h:outputText value="There are no todo items." rendered="#{empty taskInstanceList}"/>
<h:dataTable value="#{taskInstanceList}" var="task"
@@ -1343,6 +1373,7 @@
</h:dataTable>
</div>
</h:form>]]></programlisting>
+ </example>
<para> Each element of the list is an instance of the jBPM class <literal>TaskInstance</literal>. The
following code simply displays the interesting properties of each task in the list. For the description,
@@ -1440,6 +1471,8 @@
<para> The example is implemented using one JavaBean, three JSP pages and a jPDL pageflow definition. Let's
begin with the pageflow: </para>
<!-- Can't use code hightlighting with callouts -->
+ <example>
+ <title></title>
<programlistingco>
<areaspec>
<area id="numberguess-page" coords="8"/>
@@ -1514,6 +1547,7 @@
</callout>
</calloutlist>
</programlistingco>
+ </example>
<para> Here is what the pageflow looks like in the JBoss Developer Studio pageflow editor: </para>
@@ -1531,7 +1565,9 @@
<para> Here is the main page of the application, <literal>numberGuess.jspx</literal>: </para>
- <programlisting role="XHTML"><![CDATA[<<?xml version="1.0"?>
+ <example>
+ <title></title>
+ <programlisting role="XHTML"><![CDATA[<<?xml version="1.0"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
@@ -1601,14 +1637,16 @@
</body>
</html>
</jsp:root>]]></programlisting>
+ </example>
<para> Notice how the command button names the <literal>guess</literal> transition instead of calling an
action directly. </para>
<para> The <literal>win.jspx</literal> page is predictable: </para>
-
- <programlisting role="JSP"><![CDATA[<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
+ <example>
+ <title></title>
+ <programlisting role="JSP"><![CDATA[<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns="http://www.w3.org/1999/xhtml"
@@ -1635,12 +1673,15 @@
</html>
</jsp:root>
]]></programlisting>
+ </example>
<para> As is <literal>lose.jspx</literal> (which I can't be bothered copy/pasting). Finally, the JavaBean
Seam component: </para>
<!-- Can't use code hightlighting with callouts -->
- <programlistingco>
+ <example>
+ <title></title>
+ <programlistingco>
<areaspec>
<area id="numberguess-create" coords="13"/>
</areaspec>
@@ -1755,6 +1796,7 @@
</callout>
</calloutlist>
</programlistingco>
+ </example>
@@ -1965,6 +2007,8 @@
<para> The search functionality is implemented using a session-scope stateful session bean, similar to the
one we saw in the message list example above. </para>
+ <example>
+ <title></title>
<!-- Can't use code hightlighting with callouts -->
<programlistingco>
<areaspec>
@@ -2075,11 +2119,13 @@
</callout>
</calloutlist>
</programlistingco>
+ </example>
<para> The main page of the application is a Facelets page. Let's look at the fragment which relates to
searching for hotels: </para>
-
+ <example>
+ <title></title>
<!-- Can't use code hightlighting with callouts -->
<programlistingco>
<areaspec>
@@ -2186,6 +2232,7 @@
</callout>
</calloutlist>
</programlistingco>
+ </example>
<para> This page displays the search results dynamically as we type, and lets us choose a hotel and pass it
@@ -2197,7 +2244,8 @@
achieve a natural cache of persistent data related to the conversation. The following code example is
pretty long. But if you think of it as a list of scripted actions that implement the various steps of
the conversation, it's understandable. Read the class from top to bottom, as if it were a story. </para>
-
+ <example>
+ <title></title>
<!-- Can't use code hightlighting with callouts -->
<programlistingco>
<areaspec>
@@ -2330,6 +2378,7 @@
</callout>
</calloutlist>
</programlistingco>
+ </example>
<para>
@@ -2478,7 +2527,8 @@
<para> This snippet from the <literal>index.xhtml</literal> facelets page displays a list of recent blog
entries: </para>
-
+ <example>
+ <title></title>
<programlisting role="XHTML"><![CDATA[<h:dataTable value="#{blog.recentBlogEntries}" var="blogEntry" rows="3">
<h:column>
<div class="blogEntry">
@@ -2507,6 +2557,7 @@
</div>
</h:column>
</h:dataTable>]]></programlisting>
+</example>
<para> If we navigate to this page from a bookmark, how does the data used by the
@@ -2514,7 +2565,8 @@
the <literal>Blog</literal> is retrieved lazily—"pulled"—when needed, by a Seam
component named <literal>blog</literal>. This is the opposite flow of control to what is usual in
traditional web action-based frameworks like Struts. </para>
-
+ <example>
+ <title></title>
<!-- Can't use code hightlighting with callouts -->
<programlistingco>
<areaspec>
@@ -2554,6 +2606,7 @@
</callout>
</calloutlist>
</programlistingco>
+ </example>
<para> This is good so far, but what about bookmarking the result of form submissions, such as a search
@@ -2567,7 +2620,8 @@
<para> The blog example has a tiny form in the top right of each page that allows the user to search for
blog entries. This is defined in a file, <literal>menu.xhtml</literal>, included by the facelets
template, <literal>template.xhtml</literal>: </para>
-
+ <example>
+ <title></title>
<programlisting role="XHTML"><![CDATA[<div id="search">
<h:form>
<h:inputText value="#{searchAction.searchPattern}"/>
@@ -2588,8 +2642,8 @@
<redirect/>
</navigation-case>
</navigation-rule>]]></programlisting>
+ </example>
-
<para> Then the form would have looked like this: </para>
<programlisting role="XHTML"><![CDATA[<div id="search">
@@ -2605,13 +2659,15 @@
<literal>http://localhost:8080/seam-blog/search.seam?searchPattern=seam</literal>. JSF does not provide
an easy way to do this, but Seam does. We use a Seam <emphasis>page parameter</emphasis>, defined in
<literal>WEB-INF/pages.xml</literal>: </para>
-
+ <example>
+ <title></title>
<programlisting role="XML"><![CDATA[<pages>
<page view-id="/search.xhtml">
<param name="searchPattern" value="#{searchService.searchPattern}"/>
</page>
...
</pages>]]></programlisting>
+</example>
<para> This tells Seam to include the value of <literal>#{searchService.searchPattern}</literal> as a
17 years, 9 months
Seam SVN: r7657 - maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-03-20 12:03:21 -0400 (Thu, 20 Mar 2008)
New Revision: 7657
Modified:
maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl
Log:
Fix formal elements not breaking across pages
Modified: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl 2008-03-20 15:01:02 UTC (rev 7656)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl 2008-03-20 16:03:21 UTC (rev 7657)
@@ -170,13 +170,13 @@
<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: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">
@@ -209,4 +209,9 @@
</xsl:if>
</xsl:template>
+ <xsl:attribute-set name="formal.object.properties">
+ <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
+ </xsl:attribute-set>
+
+
</xsl:stylesheet>
17 years, 9 months
Seam SVN: r7656 - branches/Seam_2_0/doc/Seam_Reference_Guide/en.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-03-20 11:01:02 -0400 (Thu, 20 Mar 2008)
New Revision: 7656
Modified:
branches/Seam_2_0/doc/Seam_Reference_Guide/en/Security.xml
Log:
Fix tables
Modified: branches/Seam_2_0/doc/Seam_Reference_Guide/en/Security.xml
===================================================================
--- branches/Seam_2_0/doc/Seam_Reference_Guide/en/Security.xml 2008-03-20 15:00:44 UTC (rev 7655)
+++ branches/Seam_2_0/doc/Seam_Reference_Guide/en/Security.xml 2008-03-20 15:01:02 UTC (rev 7656)
@@ -527,7 +527,7 @@
<title>Security Message Keys</title>
<tgroup cols="2">
- <colspec colnum="1" colwidth="1*" />
+ <colspec colnum="1" colwidth="2*" />
<colspec colnum="2" colwidth="3*" />
<thead>
@@ -1365,8 +1365,8 @@
<title>Security Events</title>
<tgroup cols="2">
- <colspec colnum="1" colwidth="1*" />
- <colspec colnum="2" colwidth="3*" />
+ <colspec colnum="1" colwidth="3*" />
+ <colspec colnum="2" colwidth="2*" />
<thead>
<row>
@@ -1824,9 +1824,10 @@
<table>
<title>Identity Management API</title>
- <tgroup cols="2">
- <colspec colnum="1" colwidth="1*" />
- <colspec colnum="2" colwidth="3*" />
+ <tgroup cols="3">
+ <colspec colnum="1" colwidth="2*" />
+ <colspec colnum="2" colwidth="1*" />
+ <colspec colnum="3" colwidth="3*" />
<thead>
<row>
@@ -2148,9 +2149,10 @@
<table>
<title>Identity Management Security Permissions</title>
- <tgroup cols="2">
- <colspec colnum="1" colwidth="1*" />
- <colspec colnum="2" colwidth="3*" />
+ <tgroup cols="3">
+ <colspec colnum="1" colwidth="2*" />
+ <colspec colnum="2" colwidth="2*" />
+ <colspec colnum="2" colwidth="2*" />
<thead>
<row>
17 years, 9 months
Seam SVN: r7655 - maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-03-20 11:00:44 -0400 (Thu, 20 Mar 2008)
New Revision: 7655
Modified:
maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl
Log:
SeamFramework.org table style
Modified: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl 2008-03-20 14:13:28 UTC (rev 7654)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl 2008-03-20 15:00:44 UTC (rev 7655)
@@ -162,7 +162,51 @@
<xsl:param name="programlisting.font" select="$monospace.font.family" />
<xsl:param name="programlisting.font.size" select="'75%'" />
<xsl:param name="graphicsize.extension" select="'1'" />
-
+
<xsl:param name="default.image.width">17.4cm</xsl:param>
+ <!-- Style tables -->
+
+ <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>
+
</xsl:stylesheet>
17 years, 9 months
Seam SVN: r7654 - in branches/Seam_1_2_1_AP: drools/lib and 18 other directories.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2008-03-20 10:13:28 -0400 (Thu, 20 Mar 2008)
New Revision: 7654
Added:
branches/Seam_1_2_1_AP/drools/lib/antlr-runtime-3.0.jar
branches/Seam_1_2_1_AP/drools/lib/drools-compiler-4.0.2.jar
branches/Seam_1_2_1_AP/drools/lib/drools-core-4.0.2.jar
branches/Seam_1_2_1_AP/drools/lib/janino-2.5.10.jar
branches/Seam_1_2_1_AP/drools/lib/mvel-1.2.22-java1.4.jar
branches/Seam_1_2_1_AP/drools/lib/xpp3_min-1.1.3.4.O.jar
branches/Seam_1_2_1_AP/drools/lib/xstream-1.2.2.jar
branches/Seam_1_2_1_AP/lib/jbpm-identity.jar
branches/Seam_1_2_1_AP/lib/jbpm-jpdl.jar
Removed:
branches/Seam_1_2_1_AP/drools/lib/antlr-2.7.6.jar
branches/Seam_1_2_1_AP/drools/lib/antlr-3.0ea8.jar
branches/Seam_1_2_1_AP/drools/lib/commons-jci-core-1.0-406301.jar
branches/Seam_1_2_1_AP/drools/lib/commons-jci-janino-2.4.3.jar
branches/Seam_1_2_1_AP/drools/lib/commons-lang-2.1.jar
branches/Seam_1_2_1_AP/drools/lib/commons-logging-api-1.0.4.jar
branches/Seam_1_2_1_AP/drools/lib/drools-compiler-3.0.5.jar
branches/Seam_1_2_1_AP/drools/lib/drools-core-3.0.5.jar
branches/Seam_1_2_1_AP/drools/lib/janino-2.4.3.jar
branches/Seam_1_2_1_AP/drools/lib/stringtemplate-2.3b6.jar
branches/Seam_1_2_1_AP/lib/jbpm-3.1.4.jar
Modified:
branches/Seam_1_2_1_AP/doc/reference/en/modules/security.xml
branches/Seam_1_2_1_AP/examples/drools/resources/META-INF/application.xml
branches/Seam_1_2_1_AP/examples/dvdstore/resources/META-INF/application.xml
branches/Seam_1_2_1_AP/examples/dvdstore/resources/hibernate.cfg.xml
branches/Seam_1_2_1_AP/examples/dvdstore/resources/jbpm.cfg.xml
branches/Seam_1_2_1_AP/examples/numberguess/resources/META-INF/application.xml
branches/Seam_1_2_1_AP/examples/seambay/resources/META-INF/application.xml
branches/Seam_1_2_1_AP/examples/seamspace/resources/META-INF/application.xml
branches/Seam_1_2_1_AP/examples/takeaway/resources/META-INF/application.xml
branches/Seam_1_2_1_AP/examples/takeaway/resources/hibernate.cfg.xml
branches/Seam_1_2_1_AP/examples/todo/resources/META-INF/application.xml
branches/Seam_1_2_1_AP/examples/todo/resources/hibernate.cfg.xml
branches/Seam_1_2_1_AP/examples/todo/resources/jbpm.cfg.xml
branches/Seam_1_2_1_AP/examples/wiki/Wiki.iml
branches/Seam_1_2_1_AP/lib/readme.txt
branches/Seam_1_2_1_AP/seam-gen/build-scripts/.classpath
branches/Seam_1_2_1_AP/seam-gen/nbproject/project.xml
branches/Seam_1_2_1_AP/seam-gen/resources/META-INF/application.xml
branches/Seam_1_2_1_AP/seam-ui-cdk/pom.xml
branches/Seam_1_2_1_AP/src/main/org/jboss/seam/drools/DroolsHandler.java
branches/Seam_1_2_1_AP/src/main/org/jboss/seam/drools/ManagedWorkingMemory.java
branches/Seam_1_2_1_AP/src/main/org/jboss/seam/drools/RuleBase.java
branches/Seam_1_2_1_AP/src/main/org/jboss/seam/security/RuleBasedIdentity.java
Log:
JBPAPP-639 - upgrading libraries drools (from 3.0.5 to 4.0.2) and jBpm (3.1.4 to 3.2.2)project.xml
Modified: branches/Seam_1_2_1_AP/doc/reference/en/modules/security.xml
===================================================================
--- branches/Seam_1_2_1_AP/doc/reference/en/modules/security.xml 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/doc/reference/en/modules/security.xml 2008-03-20 14:13:28 UTC (rev 7654)
@@ -56,32 +56,20 @@
<itemizedlist>
<listitem>
- <para>drools-compiler-3.0.5.jar</para>
+ <para>drools-compiler-4.0.2.jar</para>
</listitem>
<listitem>
- <para>drools-core-3.0.5.jar</para>
+ <para>drools-core-4.0.2.jar</para>
</listitem>
<listitem>
- <para>commons-jci-core-1.0-406301.jar</para>
- </listitem>
+ <para>janino-2.5.10.jar</para>
+ </listitem>
<listitem>
- <para>commons-jci-janino-2.4.3.jar</para>
- </listitem>
+ <para>antlr-runtime-3.0.jar</para>
+ </listitem>
<listitem>
- <para>commons-lang-2.1.jar</para>
+ <para>mvel-1.2.22-java1.4.jar</para>
</listitem>
- <listitem>
- <para>janino-2.4.3.jar</para>
- </listitem>
- <listitem>
- <para>stringtemplate-2.3b6.jar</para>
- </listitem>
- <listitem>
- <para>antlr-2.7.6.jar</para>
- </listitem>
- <listitem>
- <para>antlr-3.0ea8.jar</para>
- </listitem>
</itemizedlist>
<para>
Deleted: branches/Seam_1_2_1_AP/drools/lib/antlr-2.7.6.jar
===================================================================
(Binary files differ)
Deleted: branches/Seam_1_2_1_AP/drools/lib/antlr-3.0ea8.jar
===================================================================
(Binary files differ)
Added: branches/Seam_1_2_1_AP/drools/lib/antlr-runtime-3.0.jar
===================================================================
(Binary files differ)
Property changes on: branches/Seam_1_2_1_AP/drools/lib/antlr-runtime-3.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: branches/Seam_1_2_1_AP/drools/lib/commons-jci-core-1.0-406301.jar
===================================================================
(Binary files differ)
Deleted: branches/Seam_1_2_1_AP/drools/lib/commons-jci-janino-2.4.3.jar
===================================================================
(Binary files differ)
Deleted: branches/Seam_1_2_1_AP/drools/lib/commons-lang-2.1.jar
===================================================================
(Binary files differ)
Deleted: branches/Seam_1_2_1_AP/drools/lib/commons-logging-api-1.0.4.jar
===================================================================
(Binary files differ)
Deleted: branches/Seam_1_2_1_AP/drools/lib/drools-compiler-3.0.5.jar
===================================================================
(Binary files differ)
Added: branches/Seam_1_2_1_AP/drools/lib/drools-compiler-4.0.2.jar
===================================================================
(Binary files differ)
Property changes on: branches/Seam_1_2_1_AP/drools/lib/drools-compiler-4.0.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: branches/Seam_1_2_1_AP/drools/lib/drools-core-3.0.5.jar
===================================================================
(Binary files differ)
Added: branches/Seam_1_2_1_AP/drools/lib/drools-core-4.0.2.jar
===================================================================
(Binary files differ)
Property changes on: branches/Seam_1_2_1_AP/drools/lib/drools-core-4.0.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: branches/Seam_1_2_1_AP/drools/lib/janino-2.4.3.jar
===================================================================
(Binary files differ)
Added: branches/Seam_1_2_1_AP/drools/lib/janino-2.5.10.jar
===================================================================
(Binary files differ)
Property changes on: branches/Seam_1_2_1_AP/drools/lib/janino-2.5.10.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/Seam_1_2_1_AP/drools/lib/mvel-1.2.22-java1.4.jar
===================================================================
(Binary files differ)
Property changes on: branches/Seam_1_2_1_AP/drools/lib/mvel-1.2.22-java1.4.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: branches/Seam_1_2_1_AP/drools/lib/stringtemplate-2.3b6.jar
===================================================================
(Binary files differ)
Added: branches/Seam_1_2_1_AP/drools/lib/xpp3_min-1.1.3.4.O.jar
===================================================================
(Binary files differ)
Property changes on: branches/Seam_1_2_1_AP/drools/lib/xpp3_min-1.1.3.4.O.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/Seam_1_2_1_AP/drools/lib/xstream-1.2.2.jar
===================================================================
(Binary files differ)
Property changes on: branches/Seam_1_2_1_AP/drools/lib/xstream-1.2.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: branches/Seam_1_2_1_AP/examples/drools/resources/META-INF/application.xml
===================================================================
--- branches/Seam_1_2_1_AP/examples/drools/resources/META-INF/application.xml 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/examples/drools/resources/META-INF/application.xml 2008-03-20 14:13:28 UTC (rev 7654)
@@ -26,35 +26,23 @@
</module>
<module>
- <java>jbpm-3.1.4.jar</java>
+ <java>jbpm-jpdl.jar</java>
</module>
<module>
- <java>drools-compiler-3.0.5.jar</java>
+ <java>drools-compiler-4.0.2.jar</java>
</module>
<module>
- <java>drools-core-3.0.5.jar</java>
+ <java>drools-core-4.0.2.jar</java>
</module>
<module>
- <java>antlr-2.7.6.jar</java>
+ <java>antlr-runtime-3.0.jar</java>
</module>
<module>
- <java>antlr-3.0ea8.jar</java>
+ <java>janino-2.5.10.jar</java>
</module>
<module>
- <java>commons-jci-core-1.0-406301.jar</java>
+ <java>mvel-1.2.22-java1.4.jar</java>
</module>
- <module>
- <java>commons-jci-janino-2.4.3.jar</java>
- </module>
- <module>
- <java>commons-lang-2.1.jar</java>
- </module>
- <module>
- <java>janino-2.4.3.jar</java>
- </module>
- <module>
- <java>stringtemplate-2.3b6.jar</java>
- </module>
</application>
\ No newline at end of file
Modified: branches/Seam_1_2_1_AP/examples/dvdstore/resources/META-INF/application.xml
===================================================================
--- branches/Seam_1_2_1_AP/examples/dvdstore/resources/META-INF/application.xml 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/examples/dvdstore/resources/META-INF/application.xml 2008-03-20 14:13:28 UTC (rev 7654)
@@ -22,6 +22,6 @@
<java>el-ri.jar</java>
</module>
<module>
- <java>jbpm-3.1.4.jar</java>
+ <java>jbpm-jpdl.jar</java>
</module>
</application>
Modified: branches/Seam_1_2_1_AP/examples/dvdstore/resources/hibernate.cfg.xml
===================================================================
--- branches/Seam_1_2_1_AP/examples/dvdstore/resources/hibernate.cfg.xml 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/examples/dvdstore/resources/hibernate.cfg.xml 2008-03-20 14:13:28 UTC (rev 7654)
@@ -24,29 +24,36 @@
<!-- uncomment this if you don't have bsh on your -->
<!-- classpath. you won't be able to use the -->
<!-- script element in process definition files -->
- <!--
<mapping resource="org/jbpm/graph/action/Script.hbm.xml"/>
- -->
<!-- following mapping files have a dependendy on -->
- <!-- 'jbpm-identity-{version}.jar', mapping files -->
+ <!-- 'jbpm-identity.jar', mapping files -->
<!-- of the pluggable jbpm identity component. -->
- <!-- comment out the following 3 lines if you don't-->
- <!-- want to use the default jBPM identity mgmgt -->
- <!-- component -->
-
- <!--
+ <!-- Uncomment the following 3 lines if you -->
+ <!-- want to use the jBPM identity mgmgt -->
+ <!-- component. -->
+ <!-- identity mappings (begin) ===
<mapping resource="org/jbpm/identity/User.hbm.xml"/>
<mapping resource="org/jbpm/identity/Group.hbm.xml"/>
<mapping resource="org/jbpm/identity/Membership.hbm.xml"/>
- -->
+ ==== identity mappings (end) -->
+
+ <!-- following mapping files have a dependendy on -->
+ <!-- the JCR API -->
+ <!-- jcr mappings (begin) ===
+ <mapping resource="org/jbpm/context/exe/variableinstance/JcrNodeInstance.hbm.xml"/>
+ ==== jcr mappings (end) -->
+
<!-- ###################### -->
<!-- # jbpm mapping files # -->
<!-- ###################### -->
<!-- hql queries and type defs -->
<mapping resource="org/jbpm/db/hibernate.queries.hbm.xml" />
+
+ <!-- graph.action mapping files -->
+ <mapping resource="org/jbpm/graph/action/MailAction.hbm.xml"/>
<!-- graph.def mapping files -->
<mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
@@ -65,6 +72,7 @@
<mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/Fork.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/Join.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/MailNode.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/State.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/>
@@ -113,13 +121,11 @@
<mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>
- <!-- msg.db mapping files -->
- <mapping resource="org/jbpm/msg/Message.hbm.xml"/>
- <mapping resource="org/jbpm/msg/db/TextMessage.hbm.xml"/>
- <mapping resource="org/jbpm/command/ExecuteActionCommand.hbm.xml"/>
- <mapping resource="org/jbpm/command/ExecuteNodeCommand.hbm.xml"/>
- <mapping resource="org/jbpm/command/SignalCommand.hbm.xml"/>
- <mapping resource="org/jbpm/command/TaskInstanceEndCommand.hbm.xml"/>
+ <!-- job mapping files -->
+ <mapping resource="org/jbpm/job/Job.hbm.xml"/>
+ <mapping resource="org/jbpm/job/Timer.hbm.xml"/>
+ <mapping resource="org/jbpm/job/ExecuteNodeJob.hbm.xml"/>
+ <mapping resource="org/jbpm/job/ExecuteActionJob.hbm.xml"/>
<!-- taskmgmt.exe mapping files -->
<mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
@@ -127,9 +133,6 @@
<mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/>
- <!-- scheduler.exe mapping files -->
- <mapping resource="org/jbpm/scheduler/exe/Timer.hbm.xml"/>
-
<!-- logging mapping files -->
<mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
<mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/>
@@ -138,6 +141,7 @@
<mapping resource="org/jbpm/graph/log/NodeLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/ProcessStateLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/SignalLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/TokenCreateLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/TokenEndLog.hbm.xml"/>
Modified: branches/Seam_1_2_1_AP/examples/dvdstore/resources/jbpm.cfg.xml
===================================================================
--- branches/Seam_1_2_1_AP/examples/dvdstore/resources/jbpm.cfg.xml 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/examples/dvdstore/resources/jbpm.cfg.xml 2008-03-20 14:13:28 UTC (rev 7654)
@@ -10,6 +10,7 @@
</service>
<service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
<service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
+ <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
<service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
<service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
</jbpm-context>
Modified: branches/Seam_1_2_1_AP/examples/numberguess/resources/META-INF/application.xml
===================================================================
--- branches/Seam_1_2_1_AP/examples/numberguess/resources/META-INF/application.xml 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/examples/numberguess/resources/META-INF/application.xml 2008-03-20 14:13:28 UTC (rev 7654)
@@ -19,7 +19,7 @@
<java>jboss-seam.jar</java>
</module>
<module>
- <java>jbpm-3.1.4.jar</java>
+ <java>jbpm-jpdl.jar</java>
</module>
<module>
<java>el-ri.jar</java>
Modified: branches/Seam_1_2_1_AP/examples/seambay/resources/META-INF/application.xml
===================================================================
--- branches/Seam_1_2_1_AP/examples/seambay/resources/META-INF/application.xml 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/examples/seambay/resources/META-INF/application.xml 2008-03-20 14:13:28 UTC (rev 7654)
@@ -29,43 +29,23 @@
<java>el-ri.jar</java>
</module>
- <module>
- <java>drools-compiler-3.0.5.jar</java>
- </module>
-
- <module>
- <java>drools-core-3.0.5.jar</java>
- </module>
+ <module>
+ <java>drools-compiler-4.0.2.jar</java>
+ </module>
+ <module>
+ <java>drools-core-4.0.2.jar</java>
+ </module>
+ <module>
+ <java>antlr-runtime-3.0.jar</java>
+ </module>
+ <module>
+ <java>janino-2.5.10.jar</java>
+ </module>
+ <module>
+ <java>mvel-1.2.22-java1.4.jar</java>
+ </module>
<module>
- <java>commons-jci-core-1.0-406301.jar</java>
- </module>
-
- <module>
- <java>commons-jci-janino-2.4.3.jar</java>
- </module>
-
- <module>
- <java>commons-lang-2.1.jar</java>
- </module>
-
- <module>
- <java>janino-2.4.3.jar</java>
- </module>
-
- <module>
- <java>stringtemplate-2.3b6.jar</java>
- </module>
-
- <module>
- <java>antlr-2.7.6.jar</java>
- </module>
-
- <module>
- <java>antlr-3.0ea8.jar</java>
- </module>
-
- <module>
<java>jcaptcha-all-1.0-RC3.jar</java>
</module>
Modified: branches/Seam_1_2_1_AP/examples/seamspace/resources/META-INF/application.xml
===================================================================
--- branches/Seam_1_2_1_AP/examples/seamspace/resources/META-INF/application.xml 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/examples/seamspace/resources/META-INF/application.xml 2008-03-20 14:13:28 UTC (rev 7654)
@@ -26,43 +26,23 @@
<java>el-ri.jar</java>
</module>
- <module>
- <java>drools-compiler-3.0.5.jar</java>
- </module>
-
- <module>
- <java>drools-core-3.0.5.jar</java>
- </module>
+ <module>
+ <java>drools-compiler-4.0.2.jar</java>
+ </module>
+ <module>
+ <java>drools-core-4.0.2.jar</java>
+ </module>
+ <module>
+ <java>antlr-runtime-3.0.jar</java>
+ </module>
+ <module>
+ <java>janino-2.5.10.jar</java>
+ </module>
+ <module>
+ <java>mvel-1.2.22-java1.4.jar</java>
+ </module>
<module>
- <java>commons-jci-core-1.0-406301.jar</java>
- </module>
-
- <module>
- <java>commons-jci-janino-2.4.3.jar</java>
- </module>
-
- <module>
- <java>commons-lang-2.1.jar</java>
- </module>
-
- <module>
- <java>janino-2.4.3.jar</java>
- </module>
-
- <module>
- <java>stringtemplate-2.3b6.jar</java>
- </module>
-
- <module>
- <java>antlr-2.7.6.jar</java>
- </module>
-
- <module>
- <java>antlr-3.0ea8.jar</java>
- </module>
-
- <module>
<java>jcaptcha-all-1.0-RC4.jar</java>
</module>
Modified: branches/Seam_1_2_1_AP/examples/takeaway/resources/META-INF/application.xml
===================================================================
--- branches/Seam_1_2_1_AP/examples/takeaway/resources/META-INF/application.xml 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/examples/takeaway/resources/META-INF/application.xml 2008-03-20 14:13:28 UTC (rev 7654)
@@ -26,6 +26,6 @@
<java>el-ri.jar</java>
</module>
<module>
- <java>jbpm-3.1.4.jar</java>
+ <java>jbpm-jpdl.jar</java>
</module>
</application>
Modified: branches/Seam_1_2_1_AP/examples/takeaway/resources/hibernate.cfg.xml
===================================================================
--- branches/Seam_1_2_1_AP/examples/takeaway/resources/hibernate.cfg.xml 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/examples/takeaway/resources/hibernate.cfg.xml 2008-03-20 14:13:28 UTC (rev 7654)
@@ -24,29 +24,36 @@
<!-- uncomment this if you don't have bsh on your -->
<!-- classpath. you won't be able to use the -->
<!-- script element in process definition files -->
- <!--
<mapping resource="org/jbpm/graph/action/Script.hbm.xml"/>
- -->
<!-- following mapping files have a dependendy on -->
- <!-- 'jbpm-identity-{version}.jar', mapping files -->
+ <!-- 'jbpm-identity.jar', mapping files -->
<!-- of the pluggable jbpm identity component. -->
- <!-- comment out the following 3 lines if you don't-->
- <!-- want to use the default jBPM identity mgmgt -->
- <!-- component -->
-
- <!--
+ <!-- Uncomment the following 3 lines if you -->
+ <!-- want to use the jBPM identity mgmgt -->
+ <!-- component. -->
+ <!-- identity mappings (begin) ===
<mapping resource="org/jbpm/identity/User.hbm.xml"/>
<mapping resource="org/jbpm/identity/Group.hbm.xml"/>
<mapping resource="org/jbpm/identity/Membership.hbm.xml"/>
- -->
+ ==== identity mappings (end) -->
+
+ <!-- following mapping files have a dependendy on -->
+ <!-- the JCR API -->
+ <!-- jcr mappings (begin) ===
+ <mapping resource="org/jbpm/context/exe/variableinstance/JcrNodeInstance.hbm.xml"/>
+ ==== jcr mappings (end) -->
+
<!-- ###################### -->
<!-- # jbpm mapping files # -->
<!-- ###################### -->
<!-- hql queries and type defs -->
<mapping resource="org/jbpm/db/hibernate.queries.hbm.xml" />
+
+ <!-- graph.action mapping files -->
+ <mapping resource="org/jbpm/graph/action/MailAction.hbm.xml"/>
<!-- graph.def mapping files -->
<mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
@@ -65,6 +72,7 @@
<mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/Fork.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/Join.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/MailNode.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/State.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/>
@@ -113,13 +121,11 @@
<mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>
- <!-- msg.db mapping files -->
- <mapping resource="org/jbpm/msg/Message.hbm.xml"/>
- <mapping resource="org/jbpm/msg/db/TextMessage.hbm.xml"/>
- <mapping resource="org/jbpm/command/ExecuteActionCommand.hbm.xml"/>
- <mapping resource="org/jbpm/command/ExecuteNodeCommand.hbm.xml"/>
- <mapping resource="org/jbpm/command/SignalCommand.hbm.xml"/>
- <mapping resource="org/jbpm/command/TaskInstanceEndCommand.hbm.xml"/>
+ <!-- job mapping files -->
+ <mapping resource="org/jbpm/job/Job.hbm.xml"/>
+ <mapping resource="org/jbpm/job/Timer.hbm.xml"/>
+ <mapping resource="org/jbpm/job/ExecuteNodeJob.hbm.xml"/>
+ <mapping resource="org/jbpm/job/ExecuteActionJob.hbm.xml"/>
<!-- taskmgmt.exe mapping files -->
<mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
@@ -127,9 +133,6 @@
<mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/>
- <!-- scheduler.exe mapping files -->
- <mapping resource="org/jbpm/scheduler/exe/Timer.hbm.xml"/>
-
<!-- logging mapping files -->
<mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
<mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/>
@@ -138,6 +141,7 @@
<mapping resource="org/jbpm/graph/log/NodeLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/ProcessStateLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/SignalLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/TokenCreateLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/TokenEndLog.hbm.xml"/>
Modified: branches/Seam_1_2_1_AP/examples/todo/resources/META-INF/application.xml
===================================================================
--- branches/Seam_1_2_1_AP/examples/todo/resources/META-INF/application.xml 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/examples/todo/resources/META-INF/application.xml 2008-03-20 14:13:28 UTC (rev 7654)
@@ -19,7 +19,7 @@
<java>jboss-seam.jar</java>
</module>
<module>
- <java>jbpm-3.1.4.jar</java>
+ <java>jbpm-jpdl.jar</java>
</module>
<module>
<java>el-ri.jar</java>
Modified: branches/Seam_1_2_1_AP/examples/todo/resources/hibernate.cfg.xml
===================================================================
--- branches/Seam_1_2_1_AP/examples/todo/resources/hibernate.cfg.xml 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/examples/todo/resources/hibernate.cfg.xml 2008-03-20 14:13:28 UTC (rev 7654)
@@ -13,7 +13,7 @@
<property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
<property name="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
<property name="hbm2ddl.auto">create-drop</property>
- <!-- property name="transaction.flush_before_completion">true</property-->
+ <!--property name="transaction.flush_before_completion">true</property-->
<!-- ############################################ -->
<!-- # mapping files with external dependencies # -->
@@ -24,29 +24,36 @@
<!-- uncomment this if you don't have bsh on your -->
<!-- classpath. you won't be able to use the -->
<!-- script element in process definition files -->
- <!--
<mapping resource="org/jbpm/graph/action/Script.hbm.xml"/>
- -->
<!-- following mapping files have a dependendy on -->
- <!-- 'jbpm-identity-{version}.jar', mapping files -->
+ <!-- 'jbpm-identity.jar', mapping files -->
<!-- of the pluggable jbpm identity component. -->
- <!-- comment out the following 3 lines if you don't-->
- <!-- want to use the default jBPM identity mgmgt -->
- <!-- component -->
-
- <!--
+ <!-- Uncomment the following 3 lines if you -->
+ <!-- want to use the jBPM identity mgmgt -->
+ <!-- component. -->
+ <!-- identity mappings (begin) ===
<mapping resource="org/jbpm/identity/User.hbm.xml"/>
<mapping resource="org/jbpm/identity/Group.hbm.xml"/>
<mapping resource="org/jbpm/identity/Membership.hbm.xml"/>
- -->
+ ==== identity mappings (end) -->
+
+ <!-- following mapping files have a dependendy on -->
+ <!-- the JCR API -->
+ <!-- jcr mappings (begin) ===
+ <mapping resource="org/jbpm/context/exe/variableinstance/JcrNodeInstance.hbm.xml"/>
+ ==== jcr mappings (end) -->
+
<!-- ###################### -->
<!-- # jbpm mapping files # -->
<!-- ###################### -->
<!-- hql queries and type defs -->
<mapping resource="org/jbpm/db/hibernate.queries.hbm.xml" />
+
+ <!-- graph.action mapping files -->
+ <mapping resource="org/jbpm/graph/action/MailAction.hbm.xml"/>
<!-- graph.def mapping files -->
<mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
@@ -65,6 +72,7 @@
<mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/Fork.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/Join.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/MailNode.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/State.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/>
@@ -113,13 +121,11 @@
<mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>
- <!-- msg.db mapping files -->
- <mapping resource="org/jbpm/msg/Message.hbm.xml"/>
- <mapping resource="org/jbpm/msg/db/TextMessage.hbm.xml"/>
- <mapping resource="org/jbpm/command/ExecuteActionCommand.hbm.xml"/>
- <mapping resource="org/jbpm/command/ExecuteNodeCommand.hbm.xml"/>
- <mapping resource="org/jbpm/command/SignalCommand.hbm.xml"/>
- <mapping resource="org/jbpm/command/TaskInstanceEndCommand.hbm.xml"/>
+ <!-- job mapping files -->
+ <mapping resource="org/jbpm/job/Job.hbm.xml"/>
+ <mapping resource="org/jbpm/job/Timer.hbm.xml"/>
+ <mapping resource="org/jbpm/job/ExecuteNodeJob.hbm.xml"/>
+ <mapping resource="org/jbpm/job/ExecuteActionJob.hbm.xml"/>
<!-- taskmgmt.exe mapping files -->
<mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
@@ -127,9 +133,6 @@
<mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/>
- <!-- scheduler.exe mapping files -->
- <mapping resource="org/jbpm/scheduler/exe/Timer.hbm.xml"/>
-
<!-- logging mapping files -->
<mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
<mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/>
@@ -138,6 +141,7 @@
<mapping resource="org/jbpm/graph/log/NodeLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/ProcessStateLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/SignalLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/TokenCreateLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/TokenEndLog.hbm.xml"/>
Modified: branches/Seam_1_2_1_AP/examples/todo/resources/jbpm.cfg.xml
===================================================================
--- branches/Seam_1_2_1_AP/examples/todo/resources/jbpm.cfg.xml 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/examples/todo/resources/jbpm.cfg.xml 2008-03-20 14:13:28 UTC (rev 7654)
@@ -8,6 +8,7 @@
</bean>
</factory>
</service>
+ <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
<service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
<service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
<service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
Modified: branches/Seam_1_2_1_AP/examples/wiki/Wiki.iml
===================================================================
--- branches/Seam_1_2_1_AP/examples/wiki/Wiki.iml 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/examples/wiki/Wiki.iml 2008-03-20 14:13:28 UTC (rev 7654)
@@ -278,7 +278,7 @@
<orderEntry type="module-library">
<library>
<CLASSES>
- <root url="jar://$MODULE_DIR$/../../lib/jbpm-3.1.4.jar!/" />
+ <root url="jar://$MODULE_DIR$/../../lib/jbpm-jpdl.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
@@ -386,7 +386,7 @@
<orderEntry type="module-library">
<library>
<CLASSES>
- <root url="jar://$MODULE_DIR$/../../drools/lib/drools-compiler-3.0.5.jar!/" />
+ <root url="jar://$MODULE_DIR$/../../drools/lib/drools-compiler-4.0.2.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
@@ -395,7 +395,7 @@
<orderEntry type="module-library">
<library>
<CLASSES>
- <root url="jar://$MODULE_DIR$/../../drools/lib/commons-jci-core-1.0-406301.jar!/" />
+ <root url="jar://$MODULE_DIR$/../../drools/lib/janino-2.5.10.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
@@ -404,7 +404,7 @@
<orderEntry type="module-library">
<library>
<CLASSES>
- <root url="jar://$MODULE_DIR$/../../drools/lib/janino-2.4.3.jar!/" />
+ <root url="jar://$MODULE_DIR$/../../drools/lib/mvel-1.2.22-java1.4.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
@@ -413,7 +413,7 @@
<orderEntry type="module-library">
<library>
<CLASSES>
- <root url="jar://$MODULE_DIR$/../../drools/lib/commons-logging-api-1.0.4.jar!/" />
+ <root url="jar://$MODULE_DIR$/../../drools/lib/antlr-runtime-3.0.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
@@ -422,7 +422,7 @@
<orderEntry type="module-library">
<library>
<CLASSES>
- <root url="jar://$MODULE_DIR$/../../drools/lib/commons-lang-2.1.jar!/" />
+ <root url="jar://$MODULE_DIR$/../../drools/lib/drools-core-4.0.2.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
@@ -431,51 +431,6 @@
<orderEntry type="module-library">
<library>
<CLASSES>
- <root url="jar://$MODULE_DIR$/../../drools/lib/commons-jci-janino-2.4.3.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library">
- <library>
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../drools/lib/antlr-2.7.6.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library">
- <library>
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../drools/lib/stringtemplate-2.3b6.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library">
- <library>
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../drools/lib/antlr-3.0ea8.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library">
- <library>
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../drools/lib/drools-core-3.0.5.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library">
- <library>
- <CLASSES>
<root url="jar://$MODULE_DIR$/../../lib/testng-5.5-jdk15.jar!/" />
</CLASSES>
<JAVADOC />
@@ -528,55 +483,30 @@
<component name="WebModuleProperties">
<containerElement type="library" level="module">
<attribute name="method" value="1" />
- <attribute name="URI" value="/WEB-INF/lib/antlr-2.7.6.jar" />
- <url>jar://$MODULE_DIR$/../../drools/lib/antlr-2.7.6.jar!/</url>
+ <attribute name="URI" value="/WEB-INF/lib/antlr-runtime-3.0.jar" />
+ <url>jar://$MODULE_DIR$/../../drools/lib/antlr-runtime-3.0.jar!/</url>
</containerElement>
<containerElement type="library" level="module">
<attribute name="method" value="1" />
- <attribute name="URI" value="/WEB-INF/lib/antlr-3.0ea8.jar" />
- <url>jar://$MODULE_DIR$/../../drools/lib/antlr-3.0ea8.jar!/</url>
+ <attribute name="URI" value="/WEB-INF/lib/mvel-1.2.22-java1.4.jar" />
+ <url>jar://$MODULE_DIR$/../../drools/lib/mvel-1.2.22-java1.4.jar!/</url>
</containerElement>
<containerElement type="library" level="module">
<attribute name="method" value="1" />
- <attribute name="URI" value="/WEB-INF/lib/commons-jci-core-1.0-406301.jar" />
- <url>jar://$MODULE_DIR$/../../drools/lib/commons-jci-core-1.0-406301.jar!/</url>
+ <attribute name="URI" value="/WEB-INF/lib/drools-compiler-4.0.2.jar" />
+ <url>jar://$MODULE_DIR$/../../drools/lib/drools-compiler-4.0.2.jar!/</url>
</containerElement>
<containerElement type="library" level="module">
<attribute name="method" value="1" />
- <attribute name="URI" value="/WEB-INF/lib/commons-jci-janino-2.4.3.jar" />
- <url>jar://$MODULE_DIR$/../../drools/lib/commons-jci-janino-2.4.3.jar!/</url>
+ <attribute name="URI" value="/WEB-INF/lib/drools-core-4.0.2.jar" />
+ <url>jar://$MODULE_DIR$/../../drools/lib/drools-core-4.0.2.jar!/</url>
</containerElement>
<containerElement type="library" level="module">
<attribute name="method" value="1" />
- <attribute name="URI" value="/WEB-INF/lib/commons-lang-2.1.jar" />
- <url>jar://$MODULE_DIR$/../../drools/lib/commons-lang-2.1.jar!/</url>
+ <attribute name="URI" value="/WEB-INF/lib/janino-2.5.10.jar" />
+ <url>jar://$MODULE_DIR$/../../drools/lib/janino-2.5.10.jar!/</url>
</containerElement>
<containerElement type="library" level="module">
- <attribute name="method" value="1" />
- <attribute name="URI" value="/WEB-INF/lib/commons-logging-api-1.0.4.jar" />
- <url>jar://$MODULE_DIR$/../../drools/lib/commons-logging-api-1.0.4.jar!/</url>
- </containerElement>
- <containerElement type="library" level="module">
- <attribute name="method" value="1" />
- <attribute name="URI" value="/WEB-INF/lib/drools-compiler-3.0.5.jar" />
- <url>jar://$MODULE_DIR$/../../drools/lib/drools-compiler-3.0.5.jar!/</url>
- </containerElement>
- <containerElement type="library" level="module">
- <attribute name="method" value="1" />
- <attribute name="URI" value="/WEB-INF/lib/drools-core-3.0.5.jar" />
- <url>jar://$MODULE_DIR$/../../drools/lib/drools-core-3.0.5.jar!/</url>
- </containerElement>
- <containerElement type="library" level="module">
- <attribute name="method" value="1" />
- <attribute name="URI" value="/WEB-INF/lib/janino-2.4.3.jar" />
- <url>jar://$MODULE_DIR$/../../drools/lib/janino-2.4.3.jar!/</url>
- </containerElement>
- <containerElement type="library" level="module">
- <attribute name="method" value="1" />
- <attribute name="URI" value="/WEB-INF/lib/stringtemplate-2.3b6.jar" />
- <url>jar://$MODULE_DIR$/../../drools/lib/stringtemplate-2.3b6.jar!/</url>
- </containerElement>
- <containerElement type="library" level="module">
<attribute name="method" value="0" />
<attribute name="URI" value="/WEB-INF/lib/urlrewrite-3.0.3.jar" />
<url>jar://$MODULE_DIR$/src/etc/WEB-INF/lib/urlrewrite-3.0.3.jar!/</url>
@@ -723,8 +653,8 @@
</containerElement>
<containerElement type="library" level="module">
<attribute name="method" value="1" />
- <attribute name="URI" value="/WEB-INF/lib/jbpm-3.1.4.jar" />
- <url>jar://$MODULE_DIR$/../../lib/jbpm-3.1.4.jar!/</url>
+ <attribute name="URI" value="/WEB-INF/lib/jbpm-jpdl.jar" />
+ <url>jar://$MODULE_DIR$/../../lib/jbpm-jpdl.jar!/</url>
</containerElement>
<containerElement type="library" level="module">
<attribute name="method" value="1" />
@@ -756,7 +686,7 @@
<attribute name="URI" value="/WEB-INF/lib/mail.jar" />
<url>jar://$MODULE_DIR$/../../lib/mail.jar!/</url>
</containerElement>
- <containerElement type="library" level="module">
+ <containerElement type="library" level="module">
<attribute name="method" value="1" />
<attribute name="URI" value="/WEB-INF/lib/myfaces-api-1.1.4.jar" />
<url>jar://$MODULE_DIR$/../../lib/myfaces-api-1.1.4.jar!/</url>
Deleted: branches/Seam_1_2_1_AP/lib/jbpm-3.1.4.jar
===================================================================
(Binary files differ)
Added: branches/Seam_1_2_1_AP/lib/jbpm-identity.jar
===================================================================
(Binary files differ)
Property changes on: branches/Seam_1_2_1_AP/lib/jbpm-identity.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/Seam_1_2_1_AP/lib/jbpm-jpdl.jar
===================================================================
(Binary files differ)
Property changes on: branches/Seam_1_2_1_AP/lib/jbpm-jpdl.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: branches/Seam_1_2_1_AP/lib/readme.txt
===================================================================
--- branches/Seam_1_2_1_AP/lib/readme.txt 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/lib/readme.txt 2008-03-20 14:13:28 UTC (rev 7654)
@@ -4,7 +4,7 @@
The only jars required to run Seam in a full Java EE 5
environment are:
- jbpm-3.1.1.jar
+ jbpm-jpdl.jar
thirdparty-all.jar
To use Seam with Hibernate3 in a J2EE 1.4 environment,
Modified: branches/Seam_1_2_1_AP/seam-gen/build-scripts/.classpath
===================================================================
--- branches/Seam_1_2_1_AP/seam-gen/build-scripts/.classpath 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/seam-gen/build-scripts/.classpath 2008-03-20 14:13:28 UTC (rev 7654)
@@ -12,15 +12,12 @@
<classpathentry kind="lib" path="lib/jboss-ejb3-all.jar"/>
<classpathentry kind="lib" path="lib/jboss-seam.jar"/>
<classpathentry kind="lib" path="lib/jboss-seam-debug.jar"/>
- <classpathentry kind="lib" path="lib/jbpm-3.1.4.jar"/>
- <classpathentry kind="lib" path="lib/drools-core-3.0.5.jar"/>
- <classpathentry kind="lib" path="lib/drools-compiler-3.0.5.jar"/>
- <classpathentry kind="lib" path="lib/janino-2.4.3.jar"/>
+ <classpathentry kind="lib" path="lib/jbpm-jpdl.jar"/>
+ <classpathentry kind="lib" path="lib/drools-core-4.0.2.jar"/>
+ <classpathentry kind="lib" path="lib/drools-compiler-4.0.2.jar"/>
+ <classpathentry kind="lib" path="lib/drools/janino-2.5.10.jar"/>
+ <classpathentry kind="lib" path="lib/drools/antlr-runtime-3.0.jar"/>
<classpathentry kind="lib" path="lib/antlr-2.7.6.jar"/>
- <classpathentry kind="lib" path="lib/antlr-3.0ea8.jar"/>
- <classpathentry kind="lib" path="lib/commons-jci-core-1.0-406301.jar"/>
- <classpathentry kind="lib" path="lib/commons-jci-janino-2.4.3.jar"/>
- <classpathentry kind="lib" path="lib/stringtemplate-2.3b6.jar"/>
<classpathentry kind="lib" path="lib/jgroups.jar"/>
<classpathentry kind="lib" path="lib/jsf-facelets.jar"/>
<classpathentry kind="lib" path="lib/jstl-1.1.0.jar"/>
Modified: branches/Seam_1_2_1_AP/seam-gen/nbproject/project.xml
===================================================================
--- branches/Seam_1_2_1_AP/seam-gen/nbproject/project.xml 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/seam-gen/nbproject/project.xml 2008-03-20 14:13:28 UTC (rev 7654)
@@ -80,7 +80,7 @@
<java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/1">
<compilation-unit>
<package-root>src</package-root>
- <classpath mode="compile">lib/ant.jar:lib/commons-beanutils-1.7.0.jar:lib/commons-codec-1.3.jar:lib/commons-collections-3.1.jar:lib/commons-digester-1.6.jar:lib/commons-el-1.0.jar:lib/commons-lang-2.1.jar:lib/el-api.jar:lib/el-ri.jar:lib/hibernate-all.jar:lib/hsqldb.jar:lib/javax.servlet.jsp.jar:lib/jboss-aop-jdk50.jar:lib/jboss-cache-jdk50.jar:lib/jboss-ejb3-all.jar:lib/jboss-seam-debug.jar:lib/jboss-seam-ui.jar:lib/jboss-seam.jar:lib/jbpm-3.1.4.jar:lib/jgroups.jar:lib/jsf-facelets.jar:lib/jstl-1.1.0.jar:lib/mailstuff.jar:lib/myfaces-api-1.1.4.jar:lib/myfaces-impl-1.1.4.jar:lib/portlet-api-lib.jar:lib/servlet-api.jar:lib/testng-4.5.1-jdk15.jar:lib/thirdparty-all.jar</classpath>
+ <classpath mode="compile">lib/ant.jar:lib/commons-beanutils-1.7.0.jar:lib/commons-codec-1.3.jar:lib/commons-collections-3.1.jar:lib/commons-digester-1.6.jar:lib/commons-el-1.0.jar:lib/commons-lang-2.1.jar:lib/el-api.jar:lib/el-ri.jar:lib/hibernate-all.jar:lib/hsqldb.jar:lib/javax.servlet.jsp.jar:lib/jboss-aop-jdk50.jar:lib/jboss-cache-jdk50.jar:lib/jboss-ejb3-all.jar:lib/jboss-seam-debug.jar:lib/jboss-seam-ui.jar:lib/jboss-seam.jar:lib/jbpm-jpdl.jar:lib/jgroups.jar:lib/jsf-facelets.jar:lib/jstl-1.1.0.jar:lib/mailstuff.jar:lib/myfaces-api-1.1.4.jar:lib/myfaces-impl-1.1.4.jar:lib/portlet-api-lib.jar:lib/servlet-api.jar:lib/testng-4.5.1-jdk15.jar:lib/thirdparty-all.jar</classpath>
<source-level>1.5</source-level>
</compilation-unit>
</java-data>
Modified: branches/Seam_1_2_1_AP/seam-gen/resources/META-INF/application.xml
===================================================================
--- branches/Seam_1_2_1_AP/seam-gen/resources/META-INF/application.xml 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/seam-gen/resources/META-INF/application.xml 2008-03-20 14:13:28 UTC (rev 7654)
@@ -27,33 +27,24 @@
<!-- jBPM -->
<module>
- <java>jbpm-3.1.4.jar</java>
+ <java>jbpm-jpdl.jar</java>
</module>
<!-- Drools and dependencies -->
- <module>
- <java>drools-core-3.0.5.jar</java>
- </module>
- <module>
- <java>drools-compiler-3.0.5.jar</java>
- </module>
- <module>
- <java>janino-2.4.3.jar</java>
- </module>
- <module>
- <java>antlr-2.7.6.jar</java>
- </module>
- <module>
- <java>antlr-3.0ea8.jar</java>
- </module>
- <module>
- <java>commons-jci-core-1.0-406301.jar</java>
- </module>
- <module>
- <java>commons-jci-janino-2.4.3.jar</java>
- </module>
- <module>
- <java>stringtemplate-2.3b6.jar</java>
- </module>
+ <module>
+ <java>drools-compiler-4.0.2.jar</java>
+ </module>
+ <module>
+ <java>drools-core-4.0.2.jar</java>
+ </module>
+ <module>
+ <java>antlr-runtime-3.0.jar</java>
+ </module>
+ <module>
+ <java>janino-2.5.10.jar</java>
+ </module>
+ <module>
+ <java>mvel-1.2.22-java1.4.jar</java>
+ </module>
</application>
Modified: branches/Seam_1_2_1_AP/seam-ui-cdk/pom.xml
===================================================================
--- branches/Seam_1_2_1_AP/seam-ui-cdk/pom.xml 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/seam-ui-cdk/pom.xml 2008-03-20 14:13:28 UTC (rev 7654)
@@ -112,7 +112,7 @@
<version>transient</version>
<scope>system</scope>
<systemPath>
- ${seam.dir}/lib/jbpm-3.1.4.jar
+ ${seam.dir}/lib/jbpm-jpdl.jar
</systemPath>
</dependency>
<dependency>
Modified: branches/Seam_1_2_1_AP/src/main/org/jboss/seam/drools/DroolsHandler.java
===================================================================
--- branches/Seam_1_2_1_AP/src/main/org/jboss/seam/drools/DroolsHandler.java 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/src/main/org/jboss/seam/drools/DroolsHandler.java 2008-03-20 14:13:28 UTC (rev 7654)
@@ -26,7 +26,6 @@
for (String objectName: expressions)
{
- //TODO: delegate to jBPM instead of to JSF
Object object = Expressions.instance().createValueBinding(objectName).getValue();
//Object object = new SeamVariableResolver().resolveVariable(objectName);
// assert the object into the rules engine
@@ -44,7 +43,7 @@
}
//workingMemory.setGlobal( "contextInstance", executionContext.getContextInstance() );
- workingMemory.assertObject( Actor.instance() );
+ workingMemory.insert( Actor.instance() );
return workingMemory;
}
@@ -54,11 +53,11 @@
FactHandle fact = workingMemory.getFactHandle(element);
if (fact==null)
{
- workingMemory.assertObject(element);
+ workingMemory.insert(element);
}
else
{
- workingMemory.modifyObject(fact, element);
+ workingMemory.update(fact, element);
}
}
}
Modified: branches/Seam_1_2_1_AP/src/main/org/jboss/seam/drools/ManagedWorkingMemory.java
===================================================================
--- branches/Seam_1_2_1_AP/src/main/org/jboss/seam/drools/ManagedWorkingMemory.java 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/src/main/org/jboss/seam/drools/ManagedWorkingMemory.java 2008-03-20 14:13:28 UTC (rev 7654)
@@ -5,7 +5,7 @@
import java.io.Serializable;
import org.drools.RuleBase;
-import org.drools.WorkingMemory;
+import org.drools.StatefulSession;
import org.jboss.seam.Component;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Destroy;
@@ -28,7 +28,7 @@
private static final long serialVersionUID = -1746942080571374743L;
private String ruleBaseName;
- private WorkingMemory workingMemory;
+ private StatefulSession statefulSession;
private ValueBinding<RuleBase> ruleBase;
public boolean clearDirty()
{
@@ -59,9 +59,9 @@
}
@Unwrap
- public WorkingMemory getWorkingMemory()
+ public StatefulSession getStatefulSession()
{
- if (workingMemory==null)
+ if (statefulSession==null)
{
RuleBase ruleBase;
if (this.ruleBase!=null)
@@ -82,15 +82,15 @@
{
throw new IllegalStateException("RuleBase not found: " + ruleBaseName);
}
- workingMemory = ruleBase.newWorkingMemory();
+ statefulSession = ruleBase.newStatefulSession();
}
- return workingMemory;
+ return statefulSession;
}
@Destroy
public void destroy()
{
- workingMemory.dispose();
+ statefulSession.dispose();
}
public ValueBinding<RuleBase> getRuleBase()
{
Modified: branches/Seam_1_2_1_AP/src/main/org/jboss/seam/drools/RuleBase.java
===================================================================
--- branches/Seam_1_2_1_AP/src/main/org/jboss/seam/drools/RuleBase.java 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/src/main/org/jboss/seam/drools/RuleBase.java 2008-03-20 14:13:28 UTC (rev 7654)
@@ -35,8 +35,7 @@
@Create
public void compileRuleBase() throws Exception
{
- PackageBuilderConfiguration conf = new PackageBuilderConfiguration();
- conf.setCompiler(PackageBuilderConfiguration.JANINO);
+ PackageBuilderConfiguration conf = new PackageBuilderConfiguration();
PackageBuilder builder = new PackageBuilder(conf);
if (ruleFiles!=null)
Modified: branches/Seam_1_2_1_AP/src/main/org/jboss/seam/security/RuleBasedIdentity.java
===================================================================
--- branches/Seam_1_2_1_AP/src/main/org/jboss/seam/security/RuleBasedIdentity.java 2008-03-20 14:12:24 UTC (rev 7653)
+++ branches/Seam_1_2_1_AP/src/main/org/jboss/seam/security/RuleBasedIdentity.java 2008-03-20 14:13:28 UTC (rev 7654)
@@ -9,11 +9,13 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.Enumeration;
+import java.util.Iterator;
import java.util.List;
import org.drools.FactHandle;
import org.drools.RuleBase;
-import org.drools.WorkingMemory;
+import org.drools.StatefulSession;
+import org.drools.base.ClassObjectFilter;
import org.jboss.seam.Component;
import org.jboss.seam.annotations.Install;
import org.jboss.seam.annotations.Intercept;
@@ -30,11 +32,14 @@
@Startup
public class RuleBasedIdentity extends Identity
{
+
+ private static final long serialVersionUID = -2798083003251077858L;
+
public static final String RULES_COMPONENT_NAME = "securityRules";
private static final LogProvider log = Logging.getLogProvider(RuleBasedIdentity.class);
- private WorkingMemory securityContext;
+ private StatefulSession securityContext;
private RuleBase securityRules;
@@ -54,7 +59,7 @@
if (securityRules != null)
{
- securityContext = securityRules.newWorkingMemory(false);
+ securityContext = securityRules.newStatefulSession(false);
}
if (securityContext == null)
@@ -69,7 +74,7 @@
{
super.postAuthenticate();
- WorkingMemory securityContext = getSecurityContext();
+ StatefulSession securityContext = getSecurityContext();
if (securityContext != null)
{
@@ -82,12 +87,12 @@
while ( e.hasMoreElements() )
{
Principal role = (Principal) e.nextElement();
- securityContext.assertObject( new Role( role.getName() ) );
+ securityContext.insert( new Role( role.getName() ) );
}
}
}
- securityContext.assertObject(getPrincipal());
+ securityContext.insert(getPrincipal());
}
}
@@ -102,17 +107,19 @@
@Override
public boolean hasPermission(String name, String action, Object...arg)
{
- WorkingMemory securityContext = getSecurityContext();
+ StatefulSession securityContext = getSecurityContext();
if (securityContext == null) return false;
+ synchronizeContext();
+
List<FactHandle> handles = new ArrayList<FactHandle>();
PermissionCheck check = new PermissionCheck(name, action);
synchronized( securityContext )
{
- handles.add( securityContext.assertObject(check) );
+ handles.add( securityContext.insert(check) );
for (int i = 0; i < arg.length; i++)
{
@@ -122,35 +129,57 @@
{
if ( securityContext.getFactHandle(value) == null )
{
- handles.add( securityContext.assertObject(value) );
+ handles.add( securityContext.insert(value) );
}
}
}
else
{
- handles.add( securityContext.assertObject(arg[i]) );
+ handles.add( securityContext.insert(arg[i]) );
}
}
securityContext.fireAllRules();
for (FactHandle handle : handles)
- securityContext.retractObject(handle);
+ securityContext.retract(handle);
}
return check.isGranted();
}
+ /**
+ * Overridden version of hasRole() that checks for the existence of the role
+ * in the security context first. If it is not found there, then the super
+ * method is invoked instead.
+ */
@Override
+ public boolean hasRole(String role)
+ {
+ if (securityContext != null)
+ {
+ Iterator<Role> iter = securityContext.iterateObjects(new ClassObjectFilter(Role.class));
+
+ while (iter.hasNext())
+ {
+ Role r = iter.next();
+ if (r.getName().equals(role)) return true;
+ }
+ }
+ return super.hasRole(role);
+ }
+
+ @Override
protected void unAuthenticate()
{
- WorkingMemory securityContext = getSecurityContext();
+ StatefulSession securityContext = getSecurityContext();
if (securityContext != null)
{
- for (Role role : (List<Role>) securityContext.getObjects(Role.class))
+ Iterator<Role> iter = securityContext.iterateObjects(new ClassObjectFilter(Role.class));
+ while (iter.hasNext())
{
- getSecurityContext().retractObject(securityContext.getFactHandle(role));
+ getSecurityContext().retract(securityContext.getFactHandle(iter.next()));
}
}
@@ -162,13 +191,8 @@
{
if (super.addRole(role))
{
- WorkingMemory securityContext = getSecurityContext();
-
- if (securityContext != null)
- {
- getSecurityContext().assertObject(new Role(role));
- return true;
- }
+ synchronizeContext();
+ return true;
}
return false;
@@ -177,31 +201,68 @@
@Override
public void removeRole(String role)
{
- WorkingMemory securityContext = getSecurityContext();
+ super.removeRole(role);
+ synchronizeContext();
+ }
+
+ /**
+ * Synchronizes the state of the security context with that of the subject
+ */
+ private void synchronizeContext()
+ {
+ if (getSecurityContext() != null)
+ {
+
+ for ( Group sg : getSubject().getPrincipals(Group.class) )
+ {
+ if ( ROLES_GROUP.equals( sg.getName() ) )
+ {
+ Enumeration e = sg.members();
+ while (e.hasMoreElements())
+ {
+ Principal role = (Principal) e.nextElement();
- if (securityContext != null)
+ boolean found = false;
+ Iterator<Role> iter = getSecurityContext().iterateObjects(new ClassObjectFilter(Role.class));
+ while (iter.hasNext())
+ {
+ Role r = iter.next();
+ if (r.getName().equals(role.getName()))
+ {
+ found = true;
+ break;
+ }
+ }
+
+ if (!found)
+ {
+ getSecurityContext().insert(new Role(role.getName()));
+ }
+
+ }
+ }
+ }
+ }
+
+ Iterator<Role> iter = getSecurityContext().iterateObjects(new ClassObjectFilter(Role.class));
+ while (iter.hasNext())
{
- for (Role r : (List<Role>) getSecurityContext().getObjects(Role.class))
+ Role r = iter.next();
+ if (!super.hasRole(r.getName()))
{
- if (r.getName().equals(role))
- {
- FactHandle fh = getSecurityContext().getFactHandle(r);
- getSecurityContext().retractObject(fh);
- break;
- }
+ FactHandle fh = getSecurityContext().getFactHandle(r);
+ getSecurityContext().retract(fh);
}
}
-
- super.removeRole(role);
}
+
-
- public WorkingMemory getSecurityContext()
+ public StatefulSession getSecurityContext()
{
return securityContext;
}
- public void setSecurityContext(WorkingMemory securityContext)
+ public void setSecurityContext(StatefulSession securityContext)
{
this.securityContext = securityContext;
}
@@ -215,5 +276,18 @@
public void setSecurityRules(RuleBase securityRules)
{
this.securityRules = securityRules;
- }
+ }
+
+ @Override
+ public void logout()
+ {
+ // Explicitly destroy the security context
+ if (securityContext != null)
+ {
+ securityContext.dispose();
+ securityContext = null;
+ }
+
+ super.logout();
+ }
}
17 years, 9 months
Seam SVN: r7653 - in maven-plugins/trunk/seam-jdocbook-style/src/main: images/images and 1 other directory.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-03-20 10:12:24 -0400 (Thu, 20 Mar 2008)
New Revision: 7653
Added:
maven-plugins/trunk/seam-jdocbook-style/src/main/images/images/th.bg.gif
Modified:
maven-plugins/trunk/seam-jdocbook-style/src/main/css/css/seamframework.css
Log:
seamframework.org style tables
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-03-20 13:51:42 UTC (rev 7652)
+++ maven-plugins/trunk/seam-jdocbook-style/src/main/css/css/seamframework.css 2008-03-20 14:12:24 UTC (rev 7653)
@@ -184,6 +184,19 @@
PRE.JSP {
LINE-HEIGHT: 8px
}
+
PRE.XHTML {
LINE-HEIGHT: 8px
+}
+
+.table-contents th {
+ background:#EDE8DB url(../images/th.bg.gif) repeat-x scroll 0pt;
+ color: black;
+ font-weight:bold;
+ padding:2px 5px;
+ white-space:nowrap;
+}
+
+.table-contents th td {
+ border-right:1px solid #D3D2D1;
}
\ No newline at end of file
Added: maven-plugins/trunk/seam-jdocbook-style/src/main/images/images/th.bg.gif
===================================================================
(Binary files differ)
Property changes on: maven-plugins/trunk/seam-jdocbook-style/src/main/images/images/th.bg.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 9 months
Seam SVN: r7652 - in branches/Seam_2_0/doc/Seam_Reference_Guide/en: styles and 1 other directory.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-03-20 09:51:42 -0400 (Thu, 20 Mar 2008)
New Revision: 7652
Modified:
branches/Seam_2_0/doc/Seam_Reference_Guide/en/Conversations.xml
branches/Seam_2_0/doc/Seam_Reference_Guide/en/Gwt.xml
branches/Seam_2_0/doc/Seam_Reference_Guide/en/Jbpm.xml
branches/Seam_2_0/doc/Seam_Reference_Guide/en/Security.xml
branches/Seam_2_0/doc/Seam_Reference_Guide/en/Testing.xml
branches/Seam_2_0/doc/Seam_Reference_Guide/en/Tools.xml
branches/Seam_2_0/doc/Seam_Reference_Guide/en/Tutorial.xml
branches/Seam_2_0/doc/Seam_Reference_Guide/en/Webservices.xml
branches/Seam_2_0/doc/Seam_Reference_Guide/en/styles/html.xsl
Log:
Fix image scaling
Modified: branches/Seam_2_0/doc/Seam_Reference_Guide/en/Conversations.xml
===================================================================
--- branches/Seam_2_0/doc/Seam_Reference_Guide/en/Conversations.xml 2008-03-20 13:40:49 UTC (rev 7651)
+++ branches/Seam_2_0/doc/Seam_Reference_Guide/en/Conversations.xml 2008-03-20 13:51:42 UTC (rev 7652)
@@ -904,7 +904,7 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/list.png" align="center"/>
+ <imagedata fileref="images/list.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/list.png" align="center"/>
@@ -938,7 +938,7 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/breadcrumbs.png" align="center"/>
+ <imagedata fileref="images/breadcrumbs.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/breadcrumbs.png" align="center"/>
Modified: branches/Seam_2_0/doc/Seam_Reference_Guide/en/Gwt.xml
===================================================================
--- branches/Seam_2_0/doc/Seam_Reference_Guide/en/Gwt.xml 2008-03-20 13:40:49 UTC (rev 7651)
+++ branches/Seam_2_0/doc/Seam_Reference_Guide/en/Gwt.xml 2008-03-20 13:51:42 UTC (rev 7652)
@@ -170,7 +170,7 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/gwt-helloworld.png" align="center"/>
+ <imagedata fileref="images/gwt-helloworld.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/gwt-helloworld.png" align="center"/>
Modified: branches/Seam_2_0/doc/Seam_Reference_Guide/en/Jbpm.xml
===================================================================
--- branches/Seam_2_0/doc/Seam_Reference_Guide/en/Jbpm.xml 2008-03-20 13:40:49 UTC (rev 7651)
+++ branches/Seam_2_0/doc/Seam_Reference_Guide/en/Jbpm.xml 2008-03-20 13:51:42 UTC (rev 7652)
@@ -209,7 +209,7 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/plugin-jbpm-numguess.png" align="center"/>
+ <imagedata fileref="images/plugin-jbpm-numguess.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/plugin-jbpm-numguess.png" align="center"/>
@@ -632,7 +632,7 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/plugin-jbpm-todo.png" align="center"/>
+ <imagedata fileref="images/plugin-jbpm-todo.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/plugin-jbpm-todo.png" align="center"/>
Modified: branches/Seam_2_0/doc/Seam_Reference_Guide/en/Security.xml
===================================================================
--- branches/Seam_2_0/doc/Seam_Reference_Guide/en/Security.xml 2008-03-20 13:40:49 UTC (rev 7651)
+++ branches/Seam_2_0/doc/Seam_Reference_Guide/en/Security.xml 2008-03-20 13:51:42 UTC (rev 7652)
@@ -219,7 +219,7 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/security-addrole.png" align="center"/>
+ <imagedata fileref="images/security-addrole.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/security-addrole.png" align="center"/>
@@ -1636,7 +1636,7 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/security-identitymanager.png" align="center"/>
+ <imagedata fileref="images/security-identitymanager.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/security-identitymanager.png" align="center"/>
@@ -2411,7 +2411,7 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/security-usermanager1.png" align="center"/>
+ <imagedata fileref="images/security-usermanager1.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/security-usermanager1.png" align="center"/>
@@ -2424,7 +2424,7 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/security-usermanager2.png" align="center"/>
+ <imagedata fileref="images/security-usermanager2.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/security-usermanager2.png" align="center"/>
Modified: branches/Seam_2_0/doc/Seam_Reference_Guide/en/Testing.xml
===================================================================
--- branches/Seam_2_0/doc/Seam_Reference_Guide/en/Testing.xml 2008-03-20 13:40:49 UTC (rev 7651)
+++ branches/Seam_2_0/doc/Seam_Reference_Guide/en/Testing.xml 2008-03-20 13:51:42 UTC (rev 7652)
@@ -301,7 +301,7 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/plugin-testng.png" align="center"/>
+ <imagedata fileref="images/plugin-testng.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/plugin-testng.png" align="center"/>
Modified: branches/Seam_2_0/doc/Seam_Reference_Guide/en/Tools.xml
===================================================================
--- branches/Seam_2_0/doc/Seam_Reference_Guide/en/Tools.xml 2008-03-20 13:40:49 UTC (rev 7651)
+++ branches/Seam_2_0/doc/Seam_Reference_Guide/en/Tools.xml 2008-03-20 13:51:42 UTC (rev 7652)
@@ -20,7 +20,7 @@
<screeninfo>Business process designer</screeninfo>
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/bpmd.png" align="center"/>
+ <imagedata fileref="images/bpmd.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/bpmd.png" align="center"/>
@@ -42,7 +42,7 @@
<screeninfo>Business process designer</screeninfo>
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/bpmpfv.png" align="center"/>
+ <imagedata fileref="images/bpmpfv.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/bpmpfv.png" align="center"/>
Modified: branches/Seam_2_0/doc/Seam_Reference_Guide/en/Tutorial.xml
===================================================================
--- branches/Seam_2_0/doc/Seam_Reference_Guide/en/Tutorial.xml 2008-03-20 13:40:49 UTC (rev 7651)
+++ branches/Seam_2_0/doc/Seam_Reference_Guide/en/Tutorial.xml 2008-03-20 13:51:42 UTC (rev 7652)
@@ -125,7 +125,7 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/register.png" align="center"/>
+ <imagedata fileref="images/register.png" align="center" />
</imageobject>
<imageobject role="html">
<imagedata fileref="images/register.png" align="center"/>
@@ -140,8 +140,7 @@
<para> We need an EJB entity bean for user data. This class defines <emphasis>persistence</emphasis> and
<emphasis>validation</emphasis> declaratively, via annotations. It also needs some extra
annotations that define the class as a Seam component. </para>
-
- <example><title>user data</title>
+ <!-- Can't use code hightlighting with callouts -->
<programlistingco>
<areaspec>
<area id="registration-entity-annotation" coords="1"/>
@@ -153,7 +152,7 @@
<area id="registration-notnull" coords="22"/>
<area id="registration-id-annotation" coords="44"/>
</areaspec>
- <programlisting role="JAVA"><![CDATA[@Entity
+ <programlisting><![CDATA[@Entity
@Name("user")
@Scope(SESSION)
@Table(name="users")
@@ -268,13 +267,8 @@
entity bean domain model. </para>
<para> However, entity beans shouldn't do transaction management or database access. So we can't use
this component as a JSF action listener. For that we need a session bean. </para>
-
- </example>
-
-
-
</section>
<section>
@@ -287,8 +281,7 @@
held by the <literal>User</literal> bean. </para>
<para> This is the only really interesting code in the example! </para>
-
- <example><title></title>
+ <!-- Can't use code hightlighting with callouts -->
<programlistingco>
<areaspec>
<area id="registration-stateless-annotation" coords="1"/>
@@ -301,7 +294,7 @@
<area id="registration-outcome" coords="25"/>
<area id="registration-builtin" coords="29"/>
</areaspec>
- <programlisting role="JAVA"><![CDATA[@Stateless
+ <programlisting><![CDATA[@Stateless
@Name("register")
public class RegisterAction implements Register
{
@@ -410,8 +403,6 @@
from traditional J2EE architectures. Again, if you are more comfortable with the traditional
J2EE layering, you can certainly implement that in a Seam application. But for many
applications, it's simply not very useful. </para>
-
- </example>
</section>
@@ -420,13 +411,13 @@
<para>Naturally, our session bean needs a local interface.</para>
- <example><title></title>
- <programlisting role="JAVA"><![CDATA[@Local
+
+ <programlisting role="JAVA"><![CDATA[@Local
public interface Register
{
public String register();
}]]></programlisting>
- </example>
+
<para> That's the end of the Java code. Now onto the deployment descriptors. </para>
@@ -448,8 +439,7 @@
<literal>WEB-INF</literal> directory. We'll use the <literal>components.xml</literal> file to tell
Seam how to find our EJB components in JNDI: </para>
- <example><title></title>
- <programlisting role="XML"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
+ <programlisting role="XML"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<components xmlns="http://jboss.com/products/seam/components"
xmlns:core="http://jboss.com/products/seam/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -460,7 +450,6 @@
<core:init jndi-pattern="@jndiPattern@"/>
</components>]]></programlisting>
- </example>
<para> This code configures a property named <literal>jndiPattern</literal> of a built-in Seam component
named <literal>org.jboss.seam.core.init</literal>. The funny <literal>@</literal> symbols are
@@ -474,7 +463,6 @@
<para> The presentation layer for our mini-application will be deployed in a WAR. So we'll need a web
deployment descriptor. </para>
- <example><title>web deployment descriptor config</title>
<programlisting role="XML"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
@@ -515,7 +503,7 @@
</session-config>
</web-app>]]></programlisting>
- </example>
+
<para> This <literal>web.xml</literal> file configures Seam and JSF. The configuration you see here is
pretty much identical in all Seam applications. </para>
@@ -529,7 +517,6 @@
<literal>faces-config.xml</literal>. In our case, we are going to use Facelets for
defining our views, so we need to tell JSF to use Facelets as its templating engine. </para>
- <example id="registration-faces-config-xml"><title>registration faces configuration</title>
<programlisting role="XML"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<faces-config version="1.2"
xmlns="http://java.sun.com/xml/ns/javaee"
@@ -542,7 +529,7 @@
</application>
</faces-config>]]></programlisting>
- </example>
+
<para> Note that we don't need
any JSF managed bean declarations! Our managed beans are annotated Seam components. In Seam applications,
@@ -619,7 +606,7 @@
<para> The view pages for a Seam application could be implemented using any technology that supports
JSF. In this example we use Facelets, because we think it's better than JSP.</para>
- <example id="registration-simpleform"><title>registration form</title>
+
<programlisting role="XHTML"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -648,14 +635,14 @@
</body>
</html>]]></programlisting>
- </example>
+
<para> The only thing here that is specific to Seam is the
<literal><s:validateAll></literal> tag. This JSF component tells JSF to validate all
the contained input fields against the Hibernate Validator annotations specified on the entity bean. </para>
- <example id="registration-simplepage"><title>registration page</title>
- <programlisting role="XML"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
+
+ <programlisting role="XHTML"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
@@ -672,7 +659,7 @@
</html>
]]></programlisting>
- </example>
+
<para> This is a boring old Facelets page using some embedded EL. There is nothing specific to Seam
@@ -685,8 +672,8 @@
<para> Finally, since our application is deployed as an EAR, we need a deployment descriptor there, too. </para>
- <example id="registration-application-xml"><title>registration application</title>
- <programlisting><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
+
+ <programlisting role="XML"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
@@ -712,7 +699,7 @@
</module>
</application>]]></programlisting>
- </example>
+
<para> This deployment descriptor links modules in the enterprise archive and binds the web application
to the context root <literal>/seam-registration</literal>. </para>
@@ -761,7 +748,7 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/messages.png" align="center"/>
+ <imagedata fileref="images/messages.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/messages.png" align="center"/>
@@ -779,8 +766,7 @@
<para> The <literal>Message</literal> entity defines the title, text, date and time of a message, and a
flag indicating whether the message has been read: </para>
- <example><title></title>
- <programlisting><![CDATA[@Entity
+ <programlisting role="JAVA"><![CDATA[@Entity
@Name("message")
@Scope(EVENT)
public class Message implements Serializable
@@ -833,7 +819,6 @@
}
}]]></programlisting>
- </example>
</section>
@@ -853,9 +838,8 @@
<para> We want to cache the list of messages in memory between server requests, so we will make this a
stateful session bean. </para>
-
- <example><title></title>
- <programlistingco>
+ <!-- Can't use code hightlighting with callouts -->
+ <programlistingco>
<areaspec>
<area id="messages-datamodel" coords="7"/>
<area id="messages-datamodelselection" coords="10"/>
@@ -955,7 +939,7 @@
</callout>
</calloutlist>
</programlistingco>
- </example>
+
<para> Note that this is a session-scoped Seam component. It is associated with the user login session,
and all requests from a login session share the same instance of the component. (In Seam
@@ -968,7 +952,7 @@
<para> All session beans have a business interface, of course. </para>
- <programlisting><![CDATA[@Local
+ <programlisting role="JAVA"><![CDATA[@Local
public interface MessageManager
{
public void findMessages();
@@ -992,8 +976,7 @@
<para> The JSP page is a straightforward use of the JSF <literal><h:dataTable></literal>
component. Again, nothing specific to Seam. </para>
- <example><title></title>
- <programlisting><![CDATA[<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+ <programlisting role="XHTML"><![CDATA[<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
<head>
@@ -1037,7 +1020,7 @@
</f:view>
</body>
</html>]]></programlisting>
- </example>
+
</section>
@@ -1086,7 +1069,7 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/todo.png" align="center"/>
+ <imagedata fileref="images/todo.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/todo.png" align="center"/>
@@ -1098,17 +1081,16 @@
<para> The center of this example is the jBPM process definition. There are also two JSPs and two trivial
JavaBeans (There was no reason to use session beans, since they do not access the database, or have any
other transactional behavior). Let's start with the process definition: </para>
-
- <example><title></title>
- <programlistingco>
- <areaspec>
- <area id="todo-startstate" coords="3"/>
- <area id="todo-tasknode" coords="7"/>
- <area id="todo-task" coords="8"/>
- <area id="todo-assignment" coords="9"/>
- <area id="todo-endstate" coords="14"/>
- </areaspec>
- <programlisting><![CDATA[<process-definition name="todo">
+ <!-- Can't use code hightlighting with callouts -->
+ <programlistingco>
+ <areaspec>
+ <area id="todo-startstate" coords="3"/>
+ <area id="todo-tasknode" coords="7"/>
+ <area id="todo-task" coords="8"/>
+ <area id="todo-assignment" coords="9"/>
+ <area id="todo-endstate" coords="14"/>
+ </areaspec>
+ <programlisting><![CDATA[<process-definition name="todo">
<start-state name="start">
<transition to="todo"/>
@@ -1154,7 +1136,7 @@
</callout>
</calloutlist>
</programlistingco>
- </example>
+
<para> If we view this process definition using the process definition editor provided by JBossIDE, this is
what it looks like: </para>
@@ -1176,8 +1158,7 @@
initialize the jBPM actor id using the <literal>actor</literal> component. (In a real application, it
would also need to authenticate the user.) </para>
- <example><title></title>
- <programlisting><![CDATA[@Name("login")
+ <programlisting role="JAVA"><![CDATA[@Name("login")
public class Login {
@In
@@ -1199,15 +1180,14 @@
return "/todo.jsp";
}
}]]></programlisting>
- </example>
+
<para> Here we see the use of <literal>@In</literal> to inject the built-in <literal>Actor</literal>
component. </para>
<para> The JSP itself is trivial: </para>
- <example><title></title>
- <programlisting><![CDATA[<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+ <programlisting role="XHTML"><![CDATA[<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<html>
<head>
@@ -1226,18 +1206,18 @@
</body>
</html>]]></programlisting>
- </example>
+
<para> The second JavaBean is responsible for starting business process instances, and ending tasks. </para>
- <example><title></title>
- <programlistingco>
- <areaspec>
- <area id="todo-description" coords="6"/>
- <area id="todo-createprocess-annotation" coords="15"/>
- <area id="todo-task-annotations" coords="18"/>
- </areaspec>
- <programlisting><![CDATA[@Name("todoList")
+ <!-- Can't use code hightlighting with callouts -->
+ <programlistingco>
+ <areaspec>
+ <area id="todo-description" coords="6"/>
+ <area id="todo-createprocess-annotation" coords="15"/>
+ <area id="todo-task-annotations" coords="18"/>
+ </areaspec>
+ <programlisting><![CDATA[@Name("todoList")
public class TodoList {
private String description;
@@ -1274,7 +1254,7 @@
</callout>
</calloutlist>
</programlistingco>
- </example>
+
<para> In a more realistic example, <literal>@StartTask</literal> and <literal>@EndTask</literal> would not
appear on the same method, because there is usually work to be done using the application in order to
@@ -1282,8 +1262,7 @@
<para> Finally, the meat of the application is in <literal>todo.jsp</literal>: </para>
- <example><title></title>
- <programlisting><![CDATA[<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+ <programlisting role="XHTML"><![CDATA[<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://jboss.com/products/seam/taglib" prefix="s" %>
<html>
@@ -1348,14 +1327,14 @@
</f:view>
</body>
</html>]]></programlisting>
- </example>
+
<para> Let's take this one piece at a time. </para>
<para> The page renders a list of tasks, which it gets from a built-in Seam component named
<literal>taskInstanceList</literal>. The list is defined inside a JSF form. </para>
- <programlisting><![CDATA[<h:form id="list">
+ <programlisting role="XHTML"><![CDATA[<h:form id="list">
<div>
<h:outputText value="There are no todo items." rendered="#{empty taskInstanceList}"/>
<h:dataTable value="#{taskInstanceList}" var="task"
@@ -1369,7 +1348,7 @@
following code simply displays the interesting properties of each task in the list. For the description,
priority and due date, we use input controls, to allow the user to update these values. </para>
- <programlisting><![CDATA[<h:column>
+ <programlisting role="XHTML"><![CDATA[<h:column>
<f:facet name="header">
<h:outputText value="Description"/>
</f:facet>
@@ -1402,7 +1381,7 @@
<para> This button ends the task by calling the action method annotated <literal>@StartTask
@EndTask</literal>. It passes the task id to Seam as a request parameter: </para>
- <programlisting><![CDATA[<h:column>
+ <programlisting role="XHTML"><![CDATA[<h:column>
<s:button value="Done" action="#{todoList.done}" taskInstance="#{task}"/>
</h:column>]]></programlisting>
@@ -1412,12 +1391,12 @@
<para> This button is used to update the properties of the tasks. When the form is submitted, Seam and jBPM
will make any changes to the tasks persistent. There is no need for any action listener method: </para>
- <programlisting><![CDATA[<h:commandButton value="Update Items" action="update"/>]]></programlisting>
+ <programlisting role="XHTML"><![CDATA[<h:commandButton value="Update Items" action="update"/>]]></programlisting>
<para> A second form on the page is used to create new items, by calling the action method annotated
<literal>@CreateProcess</literal>. </para>
- <programlisting><![CDATA[<h:form id="new">
+ <programlisting role="XHTML"><![CDATA[<h:form id="new">
<div>
<h:inputText value="#{todoList.description}"/>
<h:commandButton value="Create New Item" action="#{todoList.createTodo}"/>
@@ -1449,7 +1428,7 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/numberguess.png" align="center"/>
+ <imagedata fileref="images/numberguess.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/numberguess.png" align="center"/>
@@ -1460,16 +1439,15 @@
<title>Understanding the code</title>
<para> The example is implemented using one JavaBean, three JSP pages and a jPDL pageflow definition. Let's
begin with the pageflow: </para>
-
- <example><title></title>
- <programlistingco>
- <areaspec>
- <area id="numberguess-page" coords="8"/>
- <area id="numberguess-transition" coords="10"/>
- <area id="numberguess-action" coords="11"/>
- <area id="numberguess-decision" coords="16"/>
- </areaspec>
- <programlisting><![CDATA[<pageflow-definition
+ <!-- Can't use code hightlighting with callouts -->
+ <programlistingco>
+ <areaspec>
+ <area id="numberguess-page" coords="8"/>
+ <area id="numberguess-transition" coords="10"/>
+ <area id="numberguess-action" coords="11"/>
+ <area id="numberguess-decision" coords="16"/>
+ </areaspec>
+ <programlisting><![CDATA[<pageflow-definition
xmlns="http://jboss.com/products/seam/pageflow"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.com/products/seam/pageflow
@@ -1536,13 +1514,13 @@
</callout>
</calloutlist>
</programlistingco>
- </example>
+
- <para> Here is what the pageflow looks like in the JBossIDE pageflow editor: </para>
+ <para> Here is what the pageflow looks like in the JBoss Developer Studio pageflow editor: </para>
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/numberguess-pageflow.png" align="center"/>
+ <imagedata fileref="images/numberguess-pageflow.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/numberguess-pageflow.png" align="center"/>
@@ -1553,8 +1531,7 @@
<para> Here is the main page of the application, <literal>numberGuess.jspx</literal>: </para>
- <example><title></title>
- <programlisting><![CDATA[<<?xml version="1.0"?>
+ <programlisting role="XHTML"><![CDATA[<<?xml version="1.0"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
@@ -1624,15 +1601,14 @@
</body>
</html>
</jsp:root>]]></programlisting>
- </example>
+
<para> Notice how the command button names the <literal>guess</literal> transition instead of calling an
action directly. </para>
<para> The <literal>win.jspx</literal> page is predictable: </para>
- <example><title></title>
- <programlisting><![CDATA[<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
+ <programlisting role="JSP"><![CDATA[<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns="http://www.w3.org/1999/xhtml"
@@ -1659,17 +1635,16 @@
</html>
</jsp:root>
]]></programlisting>
- </example>
+
<para> As is <literal>lose.jspx</literal> (which I can't be bothered copy/pasting). Finally, the JavaBean
Seam component: </para>
-
- <example><title></title>
- <programlistingco>
- <areaspec>
- <area id="numberguess-create" coords="13"/>
- </areaspec>
- <programlisting><![CDATA[@Name("numberGuess")
+ <!-- Can't use code hightlighting with callouts -->
+ <programlistingco>
+ <areaspec>
+ <area id="numberguess-create" coords="13"/>
+ </areaspec>
+ <programlisting><![CDATA[@Name("numberGuess")
@Scope(ScopeType.CONVERSATION)
public class NumberGuess implements Serializable {
@@ -1780,7 +1755,7 @@
</callout>
</calloutlist>
</programlistingco>
- </example>
+
<para>The <literal>pages.xml</literal> file starts a Seam
@@ -1789,8 +1764,7 @@
</para>
- <example><title></title>
- <programlisting><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
+ <programlisting role="XML"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<pages xmlns="http://jboss.com/products/seam/pages"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.1.xsd">
@@ -1805,8 +1779,8 @@
</pages>
]]></programlisting>
- </example>
+
<para> As you can see, this Seam component is pure business logic! It doesn't need to know anything at all
about the user interaction flow. This makes the component potentially more reuseable. </para>
@@ -1862,7 +1836,7 @@
<screeninfo>Booking example</screeninfo>
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/booking.png" align="center"/>
+ <imagedata fileref="images/booking.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/booking.png" align="center"/>
@@ -1990,16 +1964,16 @@
<para> The search functionality is implemented using a session-scope stateful session bean, similar to the
one we saw in the message list example above. </para>
-
- <example><title></title>
- <programlistingco>
- <areaspec>
- <area id="booking-stateful-annotation" coords="1"/>
- <area id="booking-restrict-annotation" coords="4"/>
- <area id="booking-datamodel-annotation" coords="15"/>
- <area id="booking-destroy-annotation" coords="70"/>
- </areaspec>
- <programlisting><![CDATA[@Stateful
+
+ <!-- Can't use code hightlighting with callouts -->
+ <programlistingco>
+ <areaspec>
+ <area id="booking-stateful-annotation" coords="1"/>
+ <area id="booking-restrict-annotation" coords="4"/>
+ <area id="booking-datamodel-annotation" coords="15"/>
+ <area id="booking-destroy-annotation" coords="70"/>
+ </areaspec>
+ <programlisting><![CDATA[@Stateful
@Name("hotelSearch")
@Scope(ScopeType.SESSION)
@Restrict("#{identity.loggedIn}")
@@ -2101,20 +2075,20 @@
</callout>
</calloutlist>
</programlistingco>
- </example>
+
<para> The main page of the application is a Facelets page. Let's look at the fragment which relates to
searching for hotels: </para>
- <example><title></title>
- <programlistingco>
- <areaspec>
- <area id="booking-support-element" coords="14"/>
- <area id="booking-status-element" coords="20"/>
- <area id="booking-outputpanel-element" coords="37"/>
- <area id="booking-link-element" coords="61"/>
- </areaspec>
- <programlisting><![CDATA[<div class="section">
+ <!-- Can't use code hightlighting with callouts -->
+ <programlistingco>
+ <areaspec>
+ <area id="booking-support-element" coords="14"/>
+ <area id="booking-status-element" coords="20"/>
+ <area id="booking-outputpanel-element" coords="37"/>
+ <area id="booking-link-element" coords="61"/>
+ </areaspec>
+ <programlisting><![CDATA[<div class="section">
<span class="errors">
<h:messages globalOnly="true"/>
@@ -2212,7 +2186,7 @@
</callout>
</calloutlist>
</programlistingco>
- </example>
+
<para> This page displays the search results dynamically as we type, and lets us choose a hotel and pass it
to the <literal>selectHotel()</literal> method of the <literal>HotelBookingAction</literal>, which is
@@ -2224,16 +2198,16 @@
pretty long. But if you think of it as a list of scripted actions that implement the various steps of
the conversation, it's understandable. Read the class from top to bottom, as if it were a story. </para>
- <example><title></title>
- <programlistingco>
- <areaspec>
- <area id="booking-extendedpersistencecontext-annotation" coords="7"/>
- <area id="booking-out-annotation" coords="17"/>
- <area id="booking-begin-annotation" coords="31"/>
- <area id="booking-end-annotation" coords="72"/>
- <area id="booking-dest-annotation" coords="85"/>
- </areaspec>
- <programlisting><![CDATA[@Stateful
+ <!-- Can't use code hightlighting with callouts -->
+ <programlistingco>
+ <areaspec>
+ <area id="booking-extendedpersistencecontext-annotation" coords="7"/>
+ <area id="booking-out-annotation" coords="17"/>
+ <area id="booking-begin-annotation" coords="31"/>
+ <area id="booking-end-annotation" coords="72"/>
+ <area id="booking-dest-annotation" coords="85"/>
+ </areaspec>
+ <programlisting><![CDATA[@Stateful
@Name("hotelBooking")
@Restrict("#{identity.loggedIn}")
public class HotelBookingAction implements HotelBooking
@@ -2356,7 +2330,7 @@
</callout>
</calloutlist>
</programlistingco>
- </example>
+
<para>
<literal>HotelBookingAction</literal> contains all the action listener methods that implement selection,
@@ -2381,7 +2355,7 @@
<literal><s:link></literal> control for navigation from the search screen to the hotel
page: </para>
- <programlisting><![CDATA[<s:link value="View Hotel" action="#{hotelBooking.selectHotel(hot)}"/>]]></programlisting>
+ <programlisting role="JAVA"><![CDATA[<s:link value="View Hotel" action="#{hotelBooking.selectHotel(hot)}"/>]]></programlisting>
<para> The use of <literal><s:link></literal> here allows us to attach an action listener to a
HTML link without breaking the browser's "open in new window" feature. The standard JSF
@@ -2403,7 +2377,7 @@
<literal>WEB-INF/lib</literal>, along with the Facelets, and if you set the debug property
of the <literal>init</literal> component:</para>
- <programlisting><![CDATA[<core:init jndi-pattern="@jndiPattern@" debug="true"/>]]></programlisting>
+ <programlisting role="XML"><![CDATA[<core:init jndi-pattern="@jndiPattern@" debug="true"/>]]></programlisting>
<para> This page lets you browse and inspect the Seam components
in any of the Seam contexts associated with your current login session. Just point your browser at
@@ -2413,7 +2387,7 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/debug.png" align="center"/>
+ <imagedata fileref="images/debug.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/debug.png" align="center"/>
@@ -2436,7 +2410,7 @@
<screeninfo>DVD Store example</screeninfo>
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/dvdsearch.png" align="center"/>
+ <imagedata fileref="images/dvdsearch.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/dvdsearch.png" align="center"/>
@@ -2451,7 +2425,7 @@
<screeninfo>DVD Store example</screeninfo>
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/dvdtasks.png" align="center"/>
+ <imagedata fileref="images/dvdtasks.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/dvdtasks.png" align="center"/>
@@ -2487,7 +2461,7 @@
<screeninfo>Blog example</screeninfo>
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/blog.png" align="center"/>
+ <imagedata fileref="images/blog.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/blog.png" align="center"/>
@@ -2505,8 +2479,7 @@
<para> This snippet from the <literal>index.xhtml</literal> facelets page displays a list of recent blog
entries: </para>
- <example><title></title>
- <programlisting><![CDATA[<h:dataTable value="#{blog.recentBlogEntries}" var="blogEntry" rows="3">
+ <programlisting role="XHTML"><![CDATA[<h:dataTable value="#{blog.recentBlogEntries}" var="blogEntry" rows="3">
<h:column>
<div class="blogEntry">
<h3>#{blogEntry.title}</h3>
@@ -2534,7 +2507,7 @@
</div>
</h:column>
</h:dataTable>]]></programlisting>
- </example>
+
<para> If we navigate to this page from a bookmark, how does the data used by the
<literal><h:dataTable></literal> actually get initialized? Well, what happens is that
@@ -2542,13 +2515,13 @@
component named <literal>blog</literal>. This is the opposite flow of control to what is usual in
traditional web action-based frameworks like Struts. </para>
- <example><title></title>
- <programlistingco>
- <areaspec>
- <area id="blog-seampc" coords="7"/>
- <area id="blog-unwrap" coords="9"/>
- </areaspec>
- <programlisting><![CDATA[@Name("blog")
+ <!-- Can't use code hightlighting with callouts -->
+ <programlistingco>
+ <areaspec>
+ <area id="blog-seampc" coords="7"/>
+ <area id="blog-unwrap" coords="9"/>
+ </areaspec>
+ <programlisting role="JAVA"><![CDATA[@Name("blog")
@Scope(ScopeType.STATELESS)
@AutoCreate
public class BlogService
@@ -2581,7 +2554,7 @@
</callout>
</calloutlist>
</programlistingco>
- </example>
+
<para> This is good so far, but what about bookmarking the result of form submissions, such as a search
results page? </para>
@@ -2595,40 +2568,37 @@
blog entries. This is defined in a file, <literal>menu.xhtml</literal>, included by the facelets
template, <literal>template.xhtml</literal>: </para>
- <example><title></title>
- <programlisting><![CDATA[<div id="search">
+ <programlisting role="XHTML"><![CDATA[<div id="search">
<h:form>
<h:inputText value="#{searchAction.searchPattern}"/>
<h:commandButton value="Search" action="/search.xhtml"/>
</h:form>
</div>]]></programlisting>
- </example>
+
<para> To implement a bookmarkable search results page, we need to perform a browser redirect after
processing the search form submission. Because we used the JSF view id as the action outcome, Seam
automatically redirects to the view id when the form is submitted. Alternatively, we could have defined
a navigation rule like this: </para>
-
- <example><title></title>
- <programlisting><![CDATA[<navigation-rule>
+
+ <programlisting role="XML"><![CDATA[<navigation-rule>
<navigation-case>
<from-outcome>searchResults</from-outcome>
<to-view-id>/search.xhtml</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>]]></programlisting>
-</example>
- <para> Then the form would have looked like this: </para>
- <example><title></title>
- <programlisting><![CDATA[<div id="search">
+ <para> Then the form would have looked like this: </para>
+
+ <programlisting role="XHTML"><![CDATA[<div id="search">
<h:form>
<h:inputText value="#{searchAction.searchPattern}"/>
<h:commandButton value="Search" action="searchResults"/>
</h:form>
</div>]]></programlisting>
- </example>
+
<para> But when we redirect, we need to include the values submitted with the form as request parameters, to
get a bookmarkable URL like
@@ -2636,23 +2606,21 @@
an easy way to do this, but Seam does. We use a Seam <emphasis>page parameter</emphasis>, defined in
<literal>WEB-INF/pages.xml</literal>: </para>
- <example><title></title>
- <programlisting><![CDATA[<pages>
+ <programlisting role="XML"><![CDATA[<pages>
<page view-id="/search.xhtml">
<param name="searchPattern" value="#{searchService.searchPattern}"/>
</page>
...
</pages>]]></programlisting>
- </example>
+
<para> This tells Seam to include the value of <literal>#{searchService.searchPattern}</literal> as a
request parameter named <literal>searchPattern</literal> when redirecting to the page, and then re-apply
the value of that parameter to the model before rendering the page. </para>
<para> The redirect takes us to the <literal>search.xhtml</literal> page: </para>
-
- <example><title></title>
- <programlisting><![CDATA[<h:dataTable value="#{searchResults}" var="blogEntry">
+
+ <programlisting role="XHTML"><![CDATA[<h:dataTable value="#{searchResults}" var="blogEntry">
<h:column>
<div>
<h:outputLink value="entry.seam">
@@ -2666,12 +2634,11 @@
</div>
</h:column>
</h:dataTable>]]></programlisting>
- </example>
+
<para> Which again uses "pull"-style MVC to retrieve the actual search results: </para>
- <example><title></title>
- <programlisting><![CDATA[@Name("searchService")
+ <programlisting role="JAVA"><![CDATA[@Name("searchService")
public class SearchService
{
@@ -2715,7 +2682,7 @@
}
}]]></programlisting>
- </example>
+
</section>
@@ -2730,8 +2697,7 @@
<para> The <literal>entryAction</literal> component works much like an action class in a traditional
push-MVC action-oriented framework like Struts: </para>
- <example><title></title>
- <programlisting><![CDATA[@Name("entryAction")
+ <programlisting role="JAVA"><![CDATA[@Name("entryAction")
@Scope(STATELESS)
public class EntryAction
{
@@ -2748,12 +2714,11 @@
}
}]]></programlisting>
- </example>
+
<para> Page actions are also declared in <literal>pages.xml</literal>: </para>
- <example><title></title>
- <programlisting><![CDATA[<pages>
+ <programlisting role="XML"><![CDATA[<pages>
...
<page view-id="/entry.xhtml" action="#{entryAction.loadBlogEntry(blogEntry.id)}">
@@ -2765,7 +2730,7 @@
<page view-id="*" action="#{blog.hitCount.hit}"/>
</pages>]]></programlisting>
- </example>
+
<para> Notice that the example is using page actions for some other functionality—the login
challenge, and the pageview counter. Also notice the use of a parameter in the page action method
@@ -2777,8 +2742,7 @@
data—the <literal>blogEntry</literal>—and places it in the Seam event context.
Finally, the following is rendered: </para>
- <example><title></title>
- <programlisting><![CDATA[<div class="blogEntry">
+ <programlisting role="XHTML"><![CDATA[<div class="blogEntry">
<h3>#{blogEntry.title}</h3>
<div>
<h:outputText escape="false" value="#{blogEntry.body}"/>
@@ -2791,15 +2755,13 @@
</h:outputText>]
</p>
</div>]]></programlisting>
- </example>
+
<para> If the blog entry is not found in the database, the <literal>EntryNotFoundException</literal>
exception is thrown. We want this exception to result in a 404 error, not a 505, so we annotate the
exception class: </para>
-
- <example><title></title>
- <programlisting><![CDATA[@ApplicationException(rollback=true)
+ <programlisting role="JAVA"><![CDATA[@ApplicationException(rollback=true)
@HttpError(errorCode=HttpServletResponse.SC_NOT_FOUND)
public class EntryNotFoundException extends Exception
{
@@ -2808,12 +2770,11 @@
super("entry not found: " + id);
}
}]]></programlisting>
- </example>
+
<para> An alternative implementation of the example does not use the parameter in the method binding: </para>
- <example><title></title>
- <programlisting><![CDATA[@Name("entryAction")
+ <programlisting role="JAVA"><![CDATA[@Name("entryAction")
@Scope(STATELESS)
public class EntryAction
{
@@ -2831,7 +2792,7 @@
}]]></programlisting>
- <programlisting><![CDATA[<pages>
+ <programlisting role="XML"><![CDATA[<pages>
...
<page view-id="/entry.xhtml" action="#{entryAction.loadBlogEntry}">
@@ -2839,7 +2800,7 @@
</page>
...
-</pages>]]></programlisting></example>
+</pages>]]></programlisting>
<para> It is a matter of taste which implementation you prefer. </para>
Modified: branches/Seam_2_0/doc/Seam_Reference_Guide/en/Webservices.xml
===================================================================
--- branches/Seam_2_0/doc/Seam_Reference_Guide/en/Webservices.xml 2008-03-20 13:40:49 UTC (rev 7651)
+++ branches/Seam_2_0/doc/Seam_Reference_Guide/en/Webservices.xml 2008-03-20 13:51:42 UTC (rev 7652)
@@ -99,7 +99,7 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="images/ws-strategy.png" align="center"/>
+ <imagedata fileref="images/ws-strategy.png" align="center" scalefit="1"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="images/ws-strategy.png" align="center"/>
Modified: branches/Seam_2_0/doc/Seam_Reference_Guide/en/styles/html.xsl
===================================================================
--- branches/Seam_2_0/doc/Seam_Reference_Guide/en/styles/html.xsl 2008-03-20 13:40:49 UTC (rev 7651)
+++ branches/Seam_2_0/doc/Seam_Reference_Guide/en/styles/html.xsl 2008-03-20 13:51:42 UTC (rev 7652)
@@ -61,7 +61,7 @@
<!--###################################################
Callouts
################################################### -->
-
+ <xsl:param name="callout.extensions">1</xsl:param>
<!-- Don't use graphics, use a simple number style -->
<xsl:param name="callout.graphics">0</xsl:param>
@@ -79,6 +79,6 @@
equation before
table before
procedure before
- </xsl:param>
+ </xsl:param>
</xsl:stylesheet>
17 years, 9 months
Seam SVN: r7651 - in maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss: seam and 1 other directory.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-03-20 09:40:49 -0400 (Thu, 20 Mar 2008)
New Revision: 7651
Added:
maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/highlight-pdf.xsl
maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/main-pdf.xsl
Removed:
maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/highlight-pdf.xsl
maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/main-pdf.xsl
Modified:
maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl
maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl
Log:
various fixes
Deleted: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/highlight-pdf.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/highlight-pdf.xsl 2008-03-20 13:40:48 UTC (rev 7650)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/highlight-pdf.xsl 2008-03-20 13:40:49 UTC (rev 7651)
@@ -1,101 +0,0 @@
-<?xml version='1.0'?>
-
-<!--
- Copyright 2007 Red Hat, Inc.
- License: GPL
- Author: Mark Newton <mark.newton(a)jboss.org>
--->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version="1.0"
- xmlns:jbh="java:org.jboss.highlight.renderer.FORenderer"
- exclude-result-prefixes="jbh">
-
- <xsl:template match="programlisting|programlisting[@role='XML']|programlisting[@role='JAVA']|programlisting[@role='XHTML']|programlisting[@role='JSP']|programlisting[@role='CSS']">
-
- <xsl:variable name="role">
- <xsl:value-of select="s:toUpperCase(string(@role))" xmlns:s="java:java.lang.String"/>
- </xsl:variable>
-
- <xsl:variable name="child.content">
- <xsl:apply-templates/>
- </xsl:variable>
-
- <fo:block background-color="#F5F5F5"
- border-style="solid"
- border-width=".3mm"
- border-color="#CCCCCC"
- font-family="verdana,helvetica,sans-serif"
- space-before="12pt"
- space-after="12pt"
- linefeed-treatment="preserve"
- white-space-collapse="false"
- white-space-treatment="preserve"
- padding-bottom="12pt"
- padding-top="12pt"
- padding-right="12pt"
- padding-left="12pt">
-
- <xsl:variable name="hilighter" select="jbh:new()"/>
- <xsl:variable name="parsable" select="jbh:isParsable($role)"/>
-
- <xsl:choose>
- <xsl:when test="$parsable = 'true'">
- <xsl:variable name="caller" select="jbh:parseText($hilighter, $role, string($child.content), 'UTF-8')"/>
- <xsl:variable name="noOfTokens" select="jbh:getNoOfTokens($caller)"/>
-
- <xsl:call-template name="iterator">
- <xsl:with-param name="caller" select="$caller"/>
- <xsl:with-param name="noOfTokens" select="$noOfTokens"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$child.content"/>
- </xsl:otherwise>
- </xsl:choose>
-
- </fo:block>
- </xsl:template>
-
-
- <xsl:template name="iterator">
- <xsl:param name="caller"/>
- <xsl:param name="noOfTokens"/>
- <xsl:param name="i" select="0"/>
-
- <xsl:variable name="style" select="jbh:getStyle($caller, $i)"/>
- <xsl:variable name="token" select="jbh:getToken($caller, $i)"/>
-
- <xsl:choose>
- <xsl:when test="$style = 'java_keyword'"> <fo:inline color="#7F1B55" font-weight="bold"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'java_plain'"> <fo:inline color="#000000"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'java_type'"> <fo:inline color="#000000"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'java_separator'"> <fo:inline color="#000000"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'java_literal'"> <fo:inline color="#2A00FF"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'java_comment'"> <fo:inline color="#3F7F5F"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'java_javadoc_comment'"> <fo:inline color="#3F5FBF" font-style="italic"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'java_operator'"> <fo:inline color="#000000"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'java_javadoc_tag'"> <fo:inline color="#7F9FBF" font-weight="bold" font-style="italic"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'xml_plain'"> <fo:inline color="#000000"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'xml_char_data'"> <fo:inline color="#000000"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'xml_tag_symbols'"> <fo:inline color="#008080"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'xml_comment'"> <fo:inline color="#3F5FBF"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'xml_attribute_value'"> <fo:inline color="#2A00FF"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'xml_attribute_name'"> <fo:inline color="#7F007F" font-weight="bold"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'xml_processing_instruction'"> <fo:inline color="#000000" font-weight="bold" font-style="italic"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'xml_tag_name'"> <fo:inline color="#3F7F7F"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'xml_rife_tag'"> <fo:inline color="#000000"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:when test="$style = 'xml_rife_name'"> <fo:inline color="#008CCA"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
- <xsl:otherwise> <fo:inline color="black"> <xsl:value-of select="$token"/> </fo:inline></xsl:otherwise>
- </xsl:choose>
-
- <xsl:if test="$i < $noOfTokens - 1">
- <xsl:call-template name="iterator">
- <xsl:with-param name="caller" select="$caller"/>
- <xsl:with-param name="noOfTokens" select="$noOfTokens"/>
- <xsl:with-param name="i" select="$i + 1"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:template>
-
-</xsl:stylesheet>
Added: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/highlight-pdf.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/highlight-pdf.xsl (rev 0)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/highlight-pdf.xsl 2008-03-20 13:40:49 UTC (rev 7651)
@@ -0,0 +1,102 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2007 Red Hat, Inc.
+ License: GPL
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ version="1.0"
+ xmlns:jbh="java:org.jboss.highlight.renderer.FORenderer"
+ exclude-result-prefixes="jbh">
+
+ <xsl:template match="programlisting|programlisting[@role='XML']|programlisting[@role='JAVA']|programlisting[@role='XHTML']|programlisting[@role='JSP']|programlisting[@role='CSS']">
+
+ <xsl:variable name="role">
+ <xsl:value-of select="s:toUpperCase(string(@role))" xmlns:s="java:java.lang.String"/>
+ </xsl:variable>
+
+ <xsl:variable name="child.content">
+ <xsl:apply-templates/>
+ </xsl:variable>
+
+ <fo:block background-color="#F5F5F5"
+ border-style="solid"
+ border-width=".3mm"
+ border-color="#CCCCCC"
+ font-family="{$programlisting.font}"
+ font-size="{$programlisting.font.size}"
+ space-before="12pt"
+ space-after="12pt"
+ linefeed-treatment="preserve"
+ white-space-collapse="false"
+ white-space-treatment="preserve"
+ padding-bottom="12pt"
+ padding-top="12pt"
+ padding-right="12pt"
+ padding-left="12pt">
+
+ <xsl:variable name="hilighter" select="jbh:new()"/>
+ <xsl:variable name="parsable" select="jbh:isParsable($role)"/>
+
+ <xsl:choose>
+ <xsl:when test="$parsable = 'true'">
+ <xsl:variable name="caller" select="jbh:parseText($hilighter, $role, string($child.content), 'UTF-8')"/>
+ <xsl:variable name="noOfTokens" select="jbh:getNoOfTokens($caller)"/>
+
+ <xsl:call-template name="iterator">
+ <xsl:with-param name="caller" select="$caller"/>
+ <xsl:with-param name="noOfTokens" select="$noOfTokens"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$child.content"/>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ </fo:block>
+ </xsl:template>
+
+
+ <xsl:template name="iterator">
+ <xsl:param name="caller"/>
+ <xsl:param name="noOfTokens"/>
+ <xsl:param name="i" select="0"/>
+
+ <xsl:variable name="style" select="jbh:getStyle($caller, $i)"/>
+ <xsl:variable name="token" select="jbh:getToken($caller, $i)"/>
+
+ <xsl:choose>
+ <xsl:when test="$style = 'java_keyword'"> <fo:inline color="#7F1B55" font-weight="bold"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'java_plain'"> <fo:inline color="#000000"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'java_type'"> <fo:inline color="#000000"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'java_separator'"> <fo:inline color="#000000"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'java_literal'"> <fo:inline color="#2A00FF"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'java_comment'"> <fo:inline color="#3F7F5F"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'java_javadoc_comment'"> <fo:inline color="#3F5FBF" font-style="italic"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'java_operator'"> <fo:inline color="#000000"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'java_javadoc_tag'"> <fo:inline color="#7F9FBF" font-weight="bold" font-style="italic"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'xml_plain'"> <fo:inline color="#000000"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'xml_char_data'"> <fo:inline color="#000000"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'xml_tag_symbols'"> <fo:inline color="#008080"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'xml_comment'"> <fo:inline color="#3F5FBF"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'xml_attribute_value'"> <fo:inline color="#2A00FF"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'xml_attribute_name'"> <fo:inline color="#7F007F" font-weight="bold"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'xml_processing_instruction'"> <fo:inline color="#000000" font-weight="bold" font-style="italic"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'xml_tag_name'"> <fo:inline color="#3F7F7F"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'xml_rife_tag'"> <fo:inline color="#000000"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:when test="$style = 'xml_rife_name'"> <fo:inline color="#008CCA"> <xsl:value-of select="$token"/> </fo:inline></xsl:when>
+ <xsl:otherwise> <fo:inline color="black"> <xsl:value-of select="$token"/> </fo:inline></xsl:otherwise>
+ </xsl:choose>
+
+ <xsl:if test="$i < $noOfTokens - 1">
+ <xsl:call-template name="iterator">
+ <xsl:with-param name="caller" select="$caller"/>
+ <xsl:with-param name="noOfTokens" select="$noOfTokens"/>
+ <xsl:with-param name="i" select="$i + 1"/>
+ </xsl:call-template>
+ </xsl:if>
+ </xsl:template>
+
+</xsl:stylesheet>
Deleted: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/main-pdf.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/main-pdf.xsl 2008-03-20 13:40:48 UTC (rev 7650)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/main-pdf.xsl 2008-03-20 13:40:49 UTC (rev 7651)
@@ -1,1218 +0,0 @@
-<?xml version='1.0'?>
-
-<!--
- Copyright 2007 Red Hat, Inc.
- License: GPL
- Author: Jeff Fearn <jfearn(a)redhat.com>
- Author: Tammy Fox <tfox(a)redhat.com>
- Author: Andy Fitzsimon <afitzsim(a)redhat.com>
--->
-
-<!DOCTYPE xsl:stylesheet [
-<!ENTITY lowercase "'abcdefghijklmnopqrstuvwxyz'">
-<!ENTITY uppercase "'ABCDEFGHIJKLMNOPQRSTUVWXYZ'">
- ]>
-
-<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="http://docbook.sourceforge.net/release/xsl/1.72.0/fo/docbook.xsl"/>
-<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:param name="alignment">justify</xsl:param>
-<xsl:param name="use.extensions" select="0"/>
-<xsl:param name="tablecolumns.extensions" select="0"/>
-<xsl:param name="fop.extensions" select="1"/>
-<xsl:param name="fop1.extensions" select="0"/>
-<xsl:param name="img.src.path"/>
-<xsl:param name="confidential" select="0"/>
-<xsl:param name="qandadiv.autolabel" select="0"/>
-
-<xsl:param name="hyphenation-character">-</xsl:param>
-
-<!--xsl:param name="hyphenate.verbatim" select="0"/-->
-<xsl:param name="hyphenate">true</xsl:param>
-<!--xsl:param name="ulink.hyphenate" select="1"/-->
-
-<xsl:param name="line-height" select="1.5"/>
-
-<xsl:attribute-set name="xref.properties">
- <xsl:attribute name="font-style">italic</xsl:attribute>
- <xsl:attribute name="color">
- <xsl:choose>
- <xsl:when test="ancestor::note or ancestor::caution or ancestor::important or ancestor::warning or ancestor::tip">
- <xsl:text>#aee6ff</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>#0066cc</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
-</xsl:attribute-set>
-
-<xsl:attribute-set name="monospace.properties">
- <xsl:attribute name="font-size">9pt</xsl:attribute>
- <xsl:attribute name="font-family">
- <xsl:value-of select="$monospace.font.family"/>
- </xsl:attribute>
-</xsl:attribute-set>
-
-<xsl:attribute-set name="monospace.verbatim.properties" use-attribute-sets="verbatim.properties monospace.properties">
- <xsl:attribute name="text-align">start</xsl:attribute>
- <xsl:attribute name="wrap-option">wrap</xsl:attribute>
- <xsl:attribute name="hyphenation-character">►</xsl:attribute>
-</xsl:attribute-set>
-
-<xsl:param name="shade.verbatim" select="1"/>
-<xsl:attribute-set name="shade.verbatim.style">
- <xsl:attribute name="wrap-option">wrap</xsl:attribute>
- <xsl:attribute name="background-color">
- <xsl:choose>
- <xsl:when test="ancestor::note"> <xsl:text>#B5BCBD</xsl:text> </xsl:when>
- <xsl:when test="ancestor::caution"> <xsl:text>#E3A835</xsl:text> </xsl:when>
- <xsl:when test="ancestor::important"> <xsl:text>#4A5D75</xsl:text> </xsl:when>
- <xsl:when test="ancestor::warning"> <xsl:text>#7B1E1E</xsl:text> </xsl:when>
- <xsl:when test="ancestor::tip"> <xsl:text>#7E917F</xsl:text> </xsl:when>
- <xsl:otherwise>
- <xsl:text>black</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:attribute name="color">
- <xsl:choose>
- <xsl:when test="ancestor::note"> <xsl:text>#4C5253</xsl:text> </xsl:when>
- <xsl:when test="ancestor::caution"> <xsl:text>#533500</xsl:text> </xsl:when>
- <xsl:when test="ancestor::important"> <xsl:text>white</xsl:text> </xsl:when>
- <xsl:when test="ancestor::warning"> <xsl:text>white</xsl:text> </xsl:when>
- <xsl:when test="ancestor::tip"> <xsl:text>white</xsl:text> </xsl:when>
- <xsl:otherwise>
- <xsl:text>red</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:attribute name="padding-left">12pt</xsl:attribute>
- <xsl:attribute name="padding-right">12pt</xsl:attribute>
- <xsl:attribute name="padding-top">6pt</xsl:attribute>
- <xsl:attribute name="padding-bottom">6pt</xsl:attribute>
- <xsl:attribute name="margin-left">
- <xsl:value-of select="$title.margin.left"/>
- </xsl:attribute>
-</xsl:attribute-set>
-
-<xsl:attribute-set name="verbatim.properties">
- <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
- <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
- <xsl:attribute name="space-after.minimum">0.8em</xsl:attribute>
- <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
- <xsl:attribute name="space-after.maximum">1.2em</xsl:attribute>
- <xsl:attribute name="hyphenate">false</xsl:attribute>
- <xsl:attribute name="wrap-option">wrap</xsl:attribute>
- <xsl:attribute name="white-space-collapse">false</xsl:attribute>
- <xsl:attribute name="white-space-treatment">preserve</xsl:attribute>
- <xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
- <xsl:attribute name="text-align">start</xsl:attribute>
-</xsl:attribute-set>
-
-<!-- Admonitions -->
-<xsl:param name="admon.graphics" select="1"/>
-<xsl:param name="admon.graphics.path">
- <xsl:if test="$img.src.path != ''"><xsl:value-of select="$img.src.path"/></xsl:if><xsl:text>images/</xsl:text>
-</xsl:param>
-<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>
- <xsl:when test="self::caution">#533500</xsl:when>
- <xsl:when test="self::important">white</xsl:when>
- <xsl:when test="self::warning">white</xsl:when>
- <xsl:when test="self::tip">white</xsl:when>
- <xsl:otherwise>white</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
-
- <xsl:attribute name="font-weight">bold</xsl:attribute>
- <xsl:attribute name="hyphenate">false</xsl:attribute>
- <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
-
-</xsl:attribute-set>
-
-<!--xsl:attribute-set name="admonition.properties"></xsl:attribute-set-->
-
-<xsl:attribute-set name="graphical.admonition.properties">
-
- <xsl:attribute name="color">
- <xsl:choose>
- <xsl:when test="self::note">#4C5253</xsl:when>
- <xsl:when test="self::caution">#533500</xsl:when>
- <xsl:when test="self::important">white</xsl:when>
- <xsl:when test="self::warning">white</xsl:when>
- <xsl:when test="self::tip">white</xsl:when>
- <xsl:otherwise>white</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:attribute name="background-color">
- <xsl:choose>
- <xsl:when test="self::note">#B5BCBD</xsl:when>
- <xsl:when test="self::caution">#E3A835</xsl:when>
- <xsl:when test="self::important">#4A5D75</xsl:when>
- <xsl:when test="self::warning">#7B1E1E</xsl:when>
- <xsl:when test="self::tip">#7E917F</xsl:when>
- <xsl:otherwise>#404040</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
-
- <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
- <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
- <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
- <xsl:attribute name="space-after.minimum">0.8em</xsl:attribute>
- <xsl:attribute name="space-after.maximum">1em</xsl:attribute>
- <xsl:attribute name="padding-bottom">12pt</xsl:attribute>
- <xsl:attribute name="padding-top">12pt</xsl:attribute>
- <xsl:attribute name="padding-right">12pt</xsl:attribute>
- <xsl:attribute name="padding-left">12pt</xsl:attribute>
- <xsl:attribute name="margin-left">
- <xsl:value-of select="$title.margin.left"/>
- </xsl:attribute>
-</xsl:attribute-set>
-
-<xsl:param name="generate.toc">
-set toc
-book toc
-article toc
-</xsl:param>
-
-<xsl:param name="toc.section.depth">3</xsl:param>
-<xsl:param name="section.autolabel" 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>
-
-<!-- Format Variable Lists as Blocks (prevents horizontal overflow). -->
-<xsl:param name="variablelist.as.blocks">1</xsl:param>
-
-<!-- The horrible list spacing problems, this is much better. -->
-<xsl:attribute-set name="list.block.spacing">
- <xsl:attribute name="space-before.optimum">2em</xsl:attribute>
- <xsl:attribute name="space-before.minimum">1em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">3em</xsl:attribute>
- <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
- <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
- <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
-</xsl:attribute-set>
-
-<!-- Some padding inside tables -->
-<xsl:attribute-set name="table.cell.padding">
-<xsl:attribute name="padding-left">4pt</xsl:attribute>
-<xsl:attribute name="padding-right">4pt</xsl:attribute>
-<xsl:attribute name="padding-top">2pt</xsl:attribute>
-<xsl:attribute name="padding-bottom">2pt</xsl:attribute>
-</xsl:attribute-set>
-
-<!-- Only hairlines as frame and cell borders in tables -->
-<xsl:param name="table.frame.border.thickness">0.3pt</xsl:param>
-<xsl:param name="table.cell.border.thickness">0.15pt</xsl:param>
-<xsl:param name="table.cell.border.color">#5c5c4f</xsl:param>
-<xsl:param name="table.frame.border.color">#5c5c4f</xsl:param>
-<xsl:param name="table.cell.border.right.color">white</xsl:param>
-<xsl:param name="table.cell.border.left.color">white</xsl:param>
-<xsl:param name="table.frame.border.right.color">white</xsl:param>
-<xsl:param name="table.frame.border.left.color">white</xsl:param>
-<!-- Paper type, no headers on blank pages, no double sided printing -->
-<xsl:param name="paper.type" select="'A4'"/>
-<xsl:param name="double.sided">1</xsl:param>
-<xsl:param name="headers.on.blank.pages">1</xsl:param>
-<xsl:param name="footers.on.blank.pages">1</xsl:param>
-<!--xsl:param name="header.column.widths" select="'1 4 1'"/-->
-<xsl:param name="header.column.widths" select="'1 0 1'"/>
-<xsl:param name="footer.column.widths" select="'1 1 1'"/>
-<xsl:param name="header.rule" select="1"/>
-
-<!-- Space between paper border and content (chaotic stuff, don't touch) -->
-<xsl:param name="page.margin.top">15mm</xsl:param>
-<xsl:param name="region.before.extent">10mm</xsl:param>
-<xsl:param name="body.margin.top">15mm</xsl:param>
-
-<xsl:param name="body.margin.bottom">15mm</xsl:param>
-<xsl:param name="region.after.extent">10mm</xsl:param>
-<xsl:param name="page.margin.bottom">15mm</xsl:param>
-
-<xsl:param name="page.margin.outer">30mm</xsl:param>
-<xsl:param name="page.margin.inner">30mm</xsl:param>
-
-<!-- No intendation of Titles -->
-<!--<xsl:param name="title.margin.left">0pc</xsl:param>-->
-<xsl:param name="body.start.indent">0pt</xsl:param>
-
-<xsl:param name="title.color">#4a5d75</xsl:param>
-
-<xsl:attribute-set name="section.title.level1.properties">
- <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
- <xsl:attribute name="font-size">
- <xsl:value-of select="$body.font.master * 1.6"/>
- <xsl:text>pt</xsl:text>
- </xsl:attribute>
-</xsl:attribute-set>
-<xsl:attribute-set name="section.title.level2.properties">
- <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
- <xsl:attribute name="font-size">
- <xsl:value-of select="$body.font.master * 1.4"/>
- <xsl:text>pt</xsl:text>
- </xsl:attribute>
-</xsl:attribute-set>
-<xsl:attribute-set name="section.title.level3.properties">
- <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
- <xsl:attribute name="font-size">
- <xsl:value-of select="$body.font.master * 1.3"/>
- <xsl:text>pt</xsl:text>
- </xsl:attribute>
-</xsl:attribute-set>
-<xsl:attribute-set name="section.title.level4.properties">
- <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
- <xsl:attribute name="font-size">
- <xsl:value-of select="$body.font.master * 1.2"/>
- <xsl:text>pt</xsl:text>
- </xsl:attribute>
-</xsl:attribute-set>
-<xsl:attribute-set name="section.title.level5.properties">
- <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
- <xsl:attribute name="font-size">
- <xsl:value-of select="$body.font.master * 1.1"/>
- <xsl:text>pt</xsl:text>
- </xsl:attribute>
-</xsl:attribute-set>
-<xsl:attribute-set name="section.title.level6.properties">
- <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
- <xsl:attribute name="font-size">
- <xsl:value-of select="$body.font.master"/>
- <xsl:text>pt</xsl:text>
- </xsl:attribute>
-</xsl:attribute-set>
-
-<xsl:attribute-set name="section.title.properties">
- <xsl:attribute name="font-family">
- <xsl:value-of select="$title.font.family"/>
- </xsl:attribute>
- <xsl:attribute name="font-weight">bold</xsl:attribute>
- <!-- font size is calculated dynamically by section.heading template -->
- <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
- <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
- <xsl:attribute name="space-before.optimum">1.0em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
- <xsl:attribute name="text-align">left</xsl:attribute>
- <xsl:attribute name="start-indent"><xsl:value-of select="$title.margin.left"/></xsl:attribute>
-</xsl:attribute-set>
-
-<xsl:attribute-set name="book.titlepage.recto.style">
- <xsl:attribute name="font-family">
- <xsl:value-of select="$title.fontset"/>
- </xsl:attribute>
- <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
- <xsl:attribute name="font-weight">bold</xsl:attribute>
- <xsl:attribute name="font-size">12pt</xsl:attribute>
- <xsl:attribute name="text-align">center</xsl:attribute>
-</xsl:attribute-set>
-
-<xsl:attribute-set name="component.title.properties">
- <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
- <xsl:attribute name="space-before.optimum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute>
- <xsl:attribute name="space-before.minimum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute>
- <xsl:attribute name="space-before.maximum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute>
- <xsl:attribute name="hyphenate">false</xsl:attribute>
- <xsl:attribute name="color">
- <xsl:choose>
- <xsl:when test="not(parent::chapter | parent::article | parent::appendix)"><xsl:value-of select="$title.color"/></xsl:when>
- </xsl:choose>
- </xsl:attribute>
- <xsl:attribute name="text-align">
- <xsl:choose>
- <xsl:when test="((parent::article | parent::articleinfo) and not(ancestor::book) and not(self::bibliography)) or (parent::slides | parent::slidesinfo)">center</xsl:when>
- <xsl:otherwise>left</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:attribute name="start-indent"><xsl:value-of select="$title.margin.left"/></xsl:attribute>
-</xsl:attribute-set>
-
-<xsl:attribute-set name="chapter.titlepage.recto.style">
- <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
- <xsl:attribute name="background-color">white</xsl:attribute>
- <xsl:attribute name="font-size">
- <xsl:choose>
- <xsl:when test="$l10n.gentext.language = 'ja-JP'">
- <xsl:value-of select="$body.font.master * 1.7"/>
- <xsl:text>pt</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>24pt</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:attribute name="font-weight">bold</xsl:attribute>
- <xsl:attribute name="text-align">left</xsl:attribute>
- <!--xsl:attribute name="wrap-option">no-wrap</xsl:attribute-->
- <xsl:attribute name="padding-left">1em</xsl:attribute>
- <xsl:attribute name="padding-right">1em</xsl:attribute>
-</xsl:attribute-set>
-
-<xsl:attribute-set name="preface.titlepage.recto.style">
- <xsl:attribute name="font-family">
- <xsl:value-of select="$title.fontset"/>
- </xsl:attribute>
- <xsl:attribute name="color">#4a5d75</xsl:attribute>
- <xsl:attribute name="font-size">12pt</xsl:attribute>
- <xsl:attribute name="font-weight">bold</xsl:attribute>
-</xsl:attribute-set>
-
-<xsl:attribute-set name="part.titlepage.recto.style">
- <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
- <xsl:attribute name="text-align">center</xsl:attribute>
-</xsl:attribute-set>
-
-
-<!--
-From: fo/table.xsl
-Reason: Table Header format
-Version:1.72
--->
-<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">#4a5d75</xsl:attribute>
- <xsl:attribute name="color">white</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">#4a5d75</xsl:attribute>
- </xsl:if>
-</xsl:template>
-
-<!--
-From: fo/titlepage.templates.xsl
-Reason: Switch to using chapter.titlepage.recto.style
-Version:1.72
--->
-<xsl:template match="title" mode="appendix.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
-<xsl:call-template name="component.title.nomarkup">
-<xsl:with-param name="node" select="ancestor-or-self::appendix[1]"/>
-</xsl:call-template>
-</fo:block>
-</xsl:template>
-
-<!--
-From: fo/titlepage.templates.xsl
-Reason: Remove font size and weight overrides
-Version:1.72
--->
-<xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
-<xsl:value-of select="."/>
-</fo:block>
-</xsl:template>
-
-<!--
-From: fo/titlepage.templates.xsl
-Reason: Remove font family, size and weight overrides
-Version:1.72
--->
-<xsl:template name="preface.titlepage.recto">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style" margin-left="{$title.margin.left}">
-<xsl:call-template name="component.title.nomarkup">
-<xsl:with-param name="node" select="ancestor-or-self::preface[1]"/>
-</xsl:call-template></fo:block>
- <xsl:choose>
- <xsl:when test="prefaceinfo/subtitle">
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="docinfo/subtitle">
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
- </xsl:when>
- <xsl:when test="info/subtitle">
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/subtitle"/>
- </xsl:when>
- <xsl:when test="subtitle">
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="subtitle"/>
- </xsl:when>
- </xsl:choose>
-
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/corpauthor"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/corpauthor"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/authorgroup"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/authorgroup"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/author"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/author"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/author"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/othercredit"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/othercredit"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/releaseinfo"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/releaseinfo"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/copyright"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/copyright"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/copyright"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/legalnotice"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/legalnotice"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/pubdate"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/pubdate"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revision"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revision"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/revision"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revhistory"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/revhistory"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/abstract"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/abstract"/>
- <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/abstract"/>
-</xsl:template>
-
-
-<xsl:template name="pickfont-sans">
- <xsl:variable name="font">
- <xsl:choose>
- <xsl:when test="$l10n.gentext.language = 'ja-JP'">
- <xsl:text>KochiMincho,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'ko-KR'">
- <xsl:text>BaekmukBatang,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'zh-CN'">
- <xsl:text>ARPLKaitiMGB,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'bn-IN'">
- <xsl:text>LohitBengali,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'ta-IN'">
- <xsl:text>LohitTamil,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'pa-IN'">
- <xsl:text>LohitPunjabi,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'hi-IN'">
- <xsl:text>LohitHindi,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'gu-IN'">
- <xsl:text>LohitGujarati,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'zh-TW'">
- <xsl:text>ARPLMingti2LBig5,</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$fop1.extensions != 0">
- <xsl:copy-of select="$font"/><xsl:text>DejaVuLGCSans,sans-serif</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$font"/><xsl:text>sans-serif</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template name="pickfont-serif">
- <xsl:variable name="font">
- <xsl:choose>
- <xsl:when test="$l10n.gentext.language = 'ja-JP'">
- <xsl:text>KochiMincho,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'ko-KR'">
- <xsl:text>BaekmukBatang,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'zh-CN'">
- <xsl:text>ARPLKaitiMGB,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'bn-IN'">
- <xsl:text>LohitBengali,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'ta-IN'">
- <xsl:text>LohitTamil,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'pa-IN'">
- <xsl:text>LohitPunjabi,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'hi-IN'">
- <xsl:text>LohitHindi,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'gu-IN'">
- <xsl:text>LohitGujarati,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'zh-TW'">
- <xsl:text>ARPLMingti2LBig5,</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$fop1.extensions != 0">
- <xsl:copy-of select="$font"/><xsl:text>DejaVuLGCSans,serif</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$font"/><xsl:text>serif</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template name="pickfont-mono">
- <xsl:variable name="font">
- <xsl:choose>
- <xsl:when test="$l10n.gentext.language = 'ja-JP'">
- <xsl:text>KochiMincho,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'ko-KR'">
- <xsl:text>BaekmukBatang,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'zh-CN'">
- <xsl:text>ARPLKaitiMGB,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'bn-IN'">
- <xsl:text>LohitBengali,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'ta-IN'">
- <xsl:text>LohitTamil,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'pa-IN'">
- <xsl:text>LohitPunjabi,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'hi-IN'">
- <xsl:text>LohitHindi,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'gu-IN'">
- <xsl:text>LohitGujarati,</xsl:text>
- </xsl:when>
- <xsl:when test="$l10n.gentext.language = 'zh-TW'">
- <xsl:text>ARPLMingti2LBig5,</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$fop1.extensions != 0">
- <xsl:copy-of select="$font"/><xsl:text>DejaVuLGCSans,monospace</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$font"/><xsl:text>monospace</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!--xsl:param name="symbol.font.family">
- <xsl:choose>
- <xsl:when test="$l10n.gentext.language = 'ja-JP'">
- <xsl:text>Symbol,ZapfDingbats</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>Symbol,ZapfDingbats</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:param-->
-
-<xsl:param name="title.font.family">
- <xsl:call-template name="pickfont-sans"/>
-</xsl:param>
-
-<xsl:param name="body.font.family">
- <xsl:call-template name="pickfont-sans"/>
-</xsl:param>
-
-<xsl:param name="monospace.font.family">
- <xsl:call-template name="pickfont-mono"/>
-</xsl:param>
-
-<xsl:param name="sans.font.family">
- <xsl:call-template name="pickfont-sans"/>
-</xsl:param>
-
-<!--xsl:param name="callout.unicode.font">
- <xsl:call-template name="pickfont-sans"/>
-</xsl:param-->
-
-<!--
-From: fo/verbatim.xsl
-Reason: Left align address
-Version: 1.72
--->
-
-<xsl:template match="address">
- <xsl:param name="suppress-numbers" select="'0'"/>
-
- <xsl:variable name="content">
- <xsl:choose>
- <xsl:when test="$suppress-numbers = '0'
- and @linenumbering = 'numbered'
- and $use.extensions != '0'
- and $linenumbering.extension != '0'">
- <xsl:call-template name="number.rtf.lines">
- <xsl:with-param name="rtf">
- <xsl:apply-templates/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <fo:block wrap-option='no-wrap'
- white-space-collapse='false'
- white-space-treatment='preserve'
- linefeed-treatment="preserve"
- text-align="start"
- xsl:use-attribute-sets="verbatim.properties">
- <xsl:copy-of select="$content"/>
- </fo:block>
-</xsl:template>
-
-<xsl:template name="component.title.nomarkup">
- <xsl:param name="node" select="."/>
-
- <xsl:variable name="id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="$node"/>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:variable name="title">
- <xsl:apply-templates select="$node" mode="object.title.markup">
- <xsl:with-param name="allow-anchors" select="1"/>
- </xsl:apply-templates>
- </xsl:variable>
- <xsl:copy-of select="$title"/>
-</xsl:template>
-
-<!--
-From: fo/pagesetup.xsl
-Reason: Custom Header
-Version: 1.72
--->
-<xsl:template name="header.content">
- <xsl:param name="pageclass" select="''"/>
- <xsl:param name="sequence" select="''"/>
- <xsl:param name="position" select="''"/>
- <xsl:param name="gentext-key" select="''"/>
- <xsl:param name="title-limit" select="'30'"/>
-<!--
- <fo:block>
- <xsl:value-of select="$pageclass"/>
- <xsl:text>, </xsl:text>
- <xsl:value-of select="$sequence"/>
- <xsl:text>, </xsl:text>
- <xsl:value-of select="$position"/>
- <xsl:text>, </xsl:text>
- <xsl:value-of select="$gentext-key"/>
- </fo:block>
-body, blank, left, chapter
--->
- <!-- sequence can be odd, even, first, blank -->
- <!-- position can be left, center, right -->
- <xsl:choose>
- <!--xsl:when test="($sequence='blank' and $position='left' and $gentext-key='chapter')">
- <xsl:variable name="text">
- <xsl:call-template name="component.title.nomarkup"/>
- </xsl:variable>
- <fo:inline keep-together.within-line="always" font-weight="bold">
- <xsl:choose>
- <xsl:when test="string-length($text) > '33'">
- <xsl:value-of select="concat(substring($text, 0, $title-limit), '...')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$text"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:inline>
- </xsl:when-->
- <xsl:when test="$confidential = 1 and (($sequence='odd' and $position='left') or ($sequence='even' and $position='right'))">
- <fo:inline keep-together.within-line="always" font-weight="bold">
- <xsl:text>RED HAT CONFIDENTIAL</xsl:text>
- </fo:inline>
- </xsl:when>
- <xsl:when test="$sequence = 'blank'">
- <!-- nothing -->
- </xsl:when>
- <!-- Extracting 'Chapter' + Chapter Number from the full Chapter title, with a dirty, dirty hack -->
- <xsl:when test="($sequence='first' and $position='left' and $gentext-key='chapter')">
- <xsl:variable name="text">
- <xsl:call-template name="component.title.nomarkup"/>
- </xsl:variable>
- <xsl:variable name="chapt">
- <xsl:value-of select="substring-before($text, ' ')"/>
- </xsl:variable>
- <xsl:variable name="remainder">
- <xsl:value-of select="substring-after($text, ' ')"/>
- </xsl:variable>
- <xsl:variable name="chapt-num">
- <xsl:value-of select="substring-before($remainder, ' ')"/>
- </xsl:variable>
- <xsl:variable name="text1">
- <xsl:value-of select="concat($chapt, ' ', $chapt-num)"/>
- </xsl:variable>
- <fo:inline keep-together.within-line="always" font-weight="bold">
- <xsl:value-of select="$text1"/>
- </fo:inline>
- </xsl:when>
- <!--xsl:when test="($sequence='odd' or $sequence='even') and $position='center'"-->
- <xsl:when test="($sequence='even' and $position='left')">
- <!--xsl:if test="$pageclass != 'titlepage'"-->
- <xsl:variable name="text">
- <xsl:call-template name="component.title.nomarkup"/>
- </xsl:variable>
- <fo:inline keep-together.within-line="always" font-weight="bold">
- <xsl:choose>
- <xsl:when test="string-length($text) > '33'">
- <xsl:value-of select="concat(substring($text, 0, $title-limit), '...')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$text"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:inline>
- <!--xsl:if-->
- </xsl:when>
- <xsl:when test="($sequence='odd' and $position='right')">
- <!--xsl:if test="$pageclass != 'titlepage'"-->
- <fo:inline keep-together.within-line="always"><fo:retrieve-marker retrieve-class-name="section.head.marker" retrieve-position="first-including-carryover" retrieve-boundary="page-sequence"/></fo:inline>
- <!--/xsl:if-->
- </xsl:when>
- <xsl:when test="$position='left'">
- <!-- Same for odd, even, empty, and blank sequences -->
- <xsl:call-template name="draft.text"/>
- </xsl:when>
- <xsl:when test="$position='center'">
- <!-- nothing for empty and blank sequences -->
- </xsl:when>
- <xsl:when test="$position='right'">
- <!-- Same for odd, even, empty, and blank sequences -->
- <xsl:call-template name="draft.text"/>
- </xsl:when>
- <xsl:when test="$sequence = 'first'">
- <!-- nothing for first pages -->
- </xsl:when>
- <xsl:when test="$sequence = 'blank'">
- <!-- nothing for blank pages -->
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!--
-From: fo/pagesetup.xsl
-Reason: Override colour
-Version: 1.72
--->
-<xsl:template name="head.sep.rule">
- <xsl:param name="pageclass"/>
- <xsl:param name="sequence"/>
- <xsl:param name="gentext-key"/>
-
- <xsl:if test="$header.rule != 0">
- <xsl:attribute name="border-bottom-width">0.5pt</xsl:attribute>
- <xsl:attribute name="border-bottom-style">solid</xsl:attribute>
- <xsl:attribute name="border-bottom-color">#4a5d75</xsl:attribute>
- </xsl:if>
-</xsl:template>
-
-<!--
-From: fo/pagesetup.xsl
-Reason: Override colour
-Version: 1.72
--->
-<xsl:template name="foot.sep.rule">
- <xsl:param name="pageclass"/>
- <xsl:param name="sequence"/>
- <xsl:param name="gentext-key"/>
-
- <xsl:if test="$footer.rule != 0">
- <xsl:attribute name="border-top-width">0.5pt</xsl:attribute>
- <xsl:attribute name="border-top-style">solid</xsl:attribute>
- <xsl:attribute name="border-top-color">#4a5d75</xsl:attribute>
- </xsl:if>
-</xsl:template>
-
-<xsl:param name="footnote.font.size">
- <xsl:value-of select="$body.font.master * 0.8"/><xsl:text>pt</xsl:text>
-</xsl:param>
-<xsl:param name="footnote.number.format" select="'1'"/>
-<xsl:param name="footnote.number.symbols" select="''"/>
-<xsl:attribute-set name="footnote.mark.properties">
- <xsl:attribute name="font-size">75%</xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="font-style">normal</xsl:attribute>
-</xsl:attribute-set>
-<xsl:attribute-set name="footnote.properties">
- <xsl:attribute name="padding-top">48pt</xsl:attribute>
- <xsl:attribute name="font-family"><xsl:value-of select="$body.fontset"/></xsl:attribute>
- <xsl:attribute name="font-size"><xsl:value-of select="$footnote.font.size"/></xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="font-style">normal</xsl:attribute>
- <xsl:attribute name="text-align"><xsl:value-of select="$alignment"/></xsl:attribute>
- <xsl:attribute name="start-indent">0pt</xsl:attribute>
-</xsl:attribute-set>
-<xsl:attribute-set name="footnote.sep.leader.properties">
- <xsl:attribute name="color">black</xsl:attribute>
- <xsl:attribute name="leader-pattern">rule</xsl:attribute>
- <xsl:attribute name="leader-length">1in</xsl:attribute>
-</xsl:attribute-set>
-
-<xsl:template match="author" mode="tablerow.titlepage.mode">
- <fo:table-row>
- <fo:table-cell>
- <fo:block>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'Author'"/>
- </xsl:call-template>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>
- <xsl:call-template name="person.name">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>
- <xsl:apply-templates select="email"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
-</xsl:template>
-
-<xsl:template match="author" mode="titlepage.mode">
- <fo:block>
- <xsl:call-template name="person.name">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
- </fo:block>
-</xsl:template>
-
-<xsl:param name="editedby.enabled">0</xsl:param>
-
-<xsl:template match="editor" mode="tablerow.titlepage.mode">
- <fo:table-row>
- <fo:table-cell>
- <fo:block>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'Editor'"/>
- </xsl:call-template>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>
- <xsl:call-template name="person.name">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>
- <xsl:apply-templates select="email"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
-</xsl:template>
-
-<xsl:template match="othercredit" mode="tablerow.titlepage.mode">
- <fo:table-row>
- <fo:table-cell>
- <fo:block>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'translator'"/>
- </xsl:call-template>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>
- <xsl:call-template name="person.name">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>
- <xsl:apply-templates select="email"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </xsl:template>
-
-<!--
-From: fo/titlepage.xsl
-Reason:
-Version:1.72
--->
-<!-- Omitted to get JBossOrg style working - TODO
-<xsl:template name="verso.authorgroup">
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
- <fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
- <fo:table-column column-number="3" column-width="proportional-column-width(1)"/>
- <fo:table-body>
- <xsl:apply-templates select="author" mode="tablerow.titlepage.mode"/>
- <xsl:apply-templates select="editor" mode="tablerow.titlepage.mode"/>
- <xsl:apply-templates select="othercredit" mode="tablerow.titlepage.mode"/>
- </fo:table-body>
- </fo:table>
-</xsl:template> -->
-
-<xsl:template match="title" mode="book.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="20pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.fontset}">
-<xsl:call-template name="division.title">
-<xsl:with-param name="node" select="ancestor-or-self::book[1]"/>
-</xsl:call-template>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="subtitle" mode="book.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="34pt" space-before="30pt" font-family="{$title.fontset}">
-<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="issuenum" mode="book.titlepage.recto.auto.mode">
-<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="16pt" space-before="15.552pt" font-family="{$title.fontset}">
-<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
-</fo:block>
-</xsl:template>
-
-<xsl:template match="author" mode="book.titlepage.recto.auto.mode">
- <fo:block xsl:use-attribute-sets="book.titlepage.recto.style" font-size="14pt" space-before="15.552pt">
- <xsl:call-template name="person.name">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
- </fo:block>
-</xsl:template>
-
-<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:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/releaseinfo"/>
-
- <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/author"/>
- <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/authorgroup/author"/>
- <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/>
- <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/author"/>
-
- <fo:block xsl:use-attribute-sets="book.titlepage.recto.style" color="black">
- <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/invpartnumber"/>
- <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/invpartnumber"/>
- </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"/>
- </xsl:when>
- <xsl:when test="info/abstract">
- <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/abstract"/>
- </xsl:when>
- </xsl:choose>
-
-</xsl:template>
-
-<xsl:template name="book.titlepage3.recto">
-
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/authorgroup"/>
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/authorgroup"/>
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/author"/>
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/author"/>
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/othercredit"/>
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/othercredit"/>
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/copyright"/>
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/copyright"/>
- <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/legalnotice"/>
- <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 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">
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:call-template name="book.titlepage.before.recto"/>
- <fo:block><xsl:call-template name="book.titlepage.recto"/></fo:block>
- <xsl:call-template name="book.titlepage.separator"/>
- <fo:block><xsl:call-template name="book.titlepage.verso"/></fo:block>
- <xsl:call-template name="book.titlepage.separator"/>
- <fo:block><xsl:call-template name="book.titlepage3.recto"/></fo:block>
- <xsl:call-template name="book.titlepage.separator"/>
- </fo:block>
-</xsl:template>
-
-<!--
-From: fo/qandaset.xsl
-Reason: Id in list-item-label causes fop crash
-Version:1.72
--->
-
-<xsl:template match="question">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
-
- <xsl:variable name="entry.id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="parent::*"/>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:variable name="deflabel">
- <xsl:choose>
- <xsl:when test="ancestor-or-self::*[@defaultlabel]">
- <xsl:value-of select="(ancestor-or-self::*[@defaultlabel])[last()]
- /@defaultlabel"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$qanda.defaultlabel"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <fo:list-item id="{$entry.id}" xsl:use-attribute-sets="list.item.spacing">
- <fo:list-item-label end-indent="label-end()">
- <xsl:choose>
- <xsl:when test="$deflabel = 'none'">
- <fo:block/>
- </xsl:when>
- <xsl:otherwise>
- <fo:block>
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:if test="$deflabel = 'number' and not(label)">
- <xsl:apply-templates select="." mode="intralabel.punctuation"/>
- </xsl:if>
- </fo:block>
- </xsl:otherwise>
- </xsl:choose>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <xsl:choose>
- <xsl:when test="$deflabel = 'none'">
- <fo:block font-weight="bold">
- <xsl:apply-templates select="*[local-name(.)!='label']"/>
- </fo:block>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="*[local-name(.)!='label']"/>
- </xsl:otherwise>
- </xsl:choose>
- <!-- Uncomment this line to get revhistory output in the question -->
- <!-- <xsl:apply-templates select="preceding-sibling::revhistory"/> -->
- </fo:list-item-body>
- </fo:list-item>
-</xsl:template>
-
-<!--
-From: fo/qandaset.xsl
-Reason: Id in list-item-label causes fop crash
-Version:1.72
--->
-<xsl:template match="answer">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
- <xsl:variable name="entry.id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="parent::*"/>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:variable name="deflabel">
- <xsl:choose>
- <xsl:when test="ancestor-or-self::*[@defaultlabel]">
- <xsl:value-of select="(ancestor-or-self::*[@defaultlabel])[last()]
- /@defaultlabel"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$qanda.defaultlabel"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <fo:list-item xsl:use-attribute-sets="list.item.spacing">
- <fo:list-item-label end-indent="label-end()">
- <xsl:choose>
- <xsl:when test="$deflabel = 'none'">
- <fo:block/>
- </xsl:when>
- <xsl:otherwise>
- <fo:block>
- <xsl:variable name="answer.label">
- <xsl:apply-templates select="." mode="label.markup"/>
- </xsl:variable>
- <xsl:copy-of select="$answer.label"/>
- </fo:block>
- </xsl:otherwise>
- </xsl:choose>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <xsl:apply-templates select="*[local-name(.)!='label']"/>
- </fo:list-item-body>
- </fo:list-item>
-</xsl:template>
-
-</xsl:stylesheet>
Added: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/main-pdf.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/main-pdf.xsl (rev 0)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/main-pdf.xsl 2008-03-20 13:40:49 UTC (rev 7651)
@@ -0,0 +1,1245 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2007 Red Hat, Inc.
+ License: GPL
+ Author: Jeff Fearn <jfearn(a)redhat.com>
+ Author: Tammy Fox <tfox(a)redhat.com>
+ Author: Andy Fitzsimon <afitzsim(a)redhat.com>
+-->
+
+<!DOCTYPE xsl:stylesheet [
+<!ENTITY lowercase "'abcdefghijklmnopqrstuvwxyz'">
+<!ENTITY uppercase "'ABCDEFGHIJKLMNOPQRSTUVWXYZ'">
+ ]>
+
+<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="http://docbook.sourceforge.net/release/xsl/1.72.0/fo/docbook.xsl"/>
+<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:param name="alignment">justify</xsl:param>
+<xsl:param name="use.extensions" select="0"/>
+<xsl:param name="tablecolumns.extensions" select="0"/>
+<xsl:param name="fop.extensions" select="1"/>
+<xsl:param name="fop1.extensions" select="0"/>
+<xsl:param name="img.src.path"/>
+<xsl:param name="confidential" select="0"/>
+<xsl:param name="qandadiv.autolabel" select="0"/>
+
+<xsl:param name="hyphenation-character">-</xsl:param>
+
+<!--xsl:param name="hyphenate.verbatim" select="0"/-->
+<xsl:param name="hyphenate">true</xsl:param>
+<!--xsl:param name="ulink.hyphenate" select="1"/-->
+
+<xsl:param name="line-height" select="1.5"/>
+
+<xsl:attribute-set name="xref.properties">
+ <xsl:attribute name="font-style">italic</xsl:attribute>
+ <xsl:attribute name="color">
+ <xsl:choose>
+ <xsl:when test="ancestor::note or ancestor::caution or ancestor::important or ancestor::warning or ancestor::tip">
+ <xsl:text>#aee6ff</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>#0066cc</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="monospace.properties">
+ <xsl:attribute name="font-size">9pt</xsl:attribute>
+ <xsl:attribute name="font-family">
+ <xsl:value-of select="$monospace.font.family"/>
+ </xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="monospace.verbatim.properties" use-attribute-sets="verbatim.properties monospace.properties">
+ <xsl:attribute name="text-align">start</xsl:attribute>
+ <xsl:attribute name="wrap-option">wrap</xsl:attribute>
+ <xsl:attribute name="hyphenation-character">►</xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:param name="shade.verbatim" select="1"/>
+<xsl:attribute-set name="shade.verbatim.style">
+ <xsl:attribute name="wrap-option">wrap</xsl:attribute>
+ <xsl:attribute name="background-color">
+ <xsl:choose>
+ <xsl:when test="ancestor::note"> <xsl:text>#B5BCBD</xsl:text> </xsl:when>
+ <xsl:when test="ancestor::caution"> <xsl:text>#E3A835</xsl:text> </xsl:when>
+ <xsl:when test="ancestor::important"> <xsl:text>#4A5D75</xsl:text> </xsl:when>
+ <xsl:when test="ancestor::warning"> <xsl:text>#7B1E1E</xsl:text> </xsl:when>
+ <xsl:when test="ancestor::tip"> <xsl:text>#7E917F</xsl:text> </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>black</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:attribute name="color">
+ <xsl:choose>
+ <xsl:when test="ancestor::note"> <xsl:text>#4C5253</xsl:text> </xsl:when>
+ <xsl:when test="ancestor::caution"> <xsl:text>#533500</xsl:text> </xsl:when>
+ <xsl:when test="ancestor::important"> <xsl:text>white</xsl:text> </xsl:when>
+ <xsl:when test="ancestor::warning"> <xsl:text>white</xsl:text> </xsl:when>
+ <xsl:when test="ancestor::tip"> <xsl:text>white</xsl:text> </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>red</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:attribute name="padding-left">12pt</xsl:attribute>
+ <xsl:attribute name="padding-right">12pt</xsl:attribute>
+ <xsl:attribute name="padding-top">6pt</xsl:attribute>
+ <xsl:attribute name="padding-bottom">6pt</xsl:attribute>
+ <xsl:attribute name="margin-left">
+ <xsl:value-of select="$title.margin.left"/>
+ </xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="verbatim.properties">
+ <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">1.2em</xsl:attribute>
+ <xsl:attribute name="hyphenate">false</xsl:attribute>
+ <xsl:attribute name="wrap-option">wrap</xsl:attribute>
+ <xsl:attribute name="white-space-collapse">false</xsl:attribute>
+ <xsl:attribute name="white-space-treatment">preserve</xsl:attribute>
+ <xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
+ <xsl:attribute name="text-align">start</xsl:attribute>
+</xsl:attribute-set>
+
+<!-- Admonitions -->
+<xsl:param name="admon.graphics" select="1"/>
+<xsl:param name="admon.graphics.path">
+ <xsl:if test="$img.src.path != ''"><xsl:value-of select="$img.src.path"/></xsl:if><xsl:text>images/</xsl:text>
+</xsl:param>
+<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>
+ <xsl:when test="self::caution">#533500</xsl:when>
+ <xsl:when test="self::important">white</xsl:when>
+ <xsl:when test="self::warning">white</xsl:when>
+ <xsl:when test="self::tip">white</xsl:when>
+ <xsl:otherwise>white</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute name="hyphenate">false</xsl:attribute>
+ <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
+
+</xsl:attribute-set>
+
+<!--xsl:attribute-set name="admonition.properties"></xsl:attribute-set-->
+
+<xsl:attribute-set name="graphical.admonition.properties">
+
+ <xsl:attribute name="color">
+ <xsl:choose>
+ <xsl:when test="self::note">#4C5253</xsl:when>
+ <xsl:when test="self::caution">#533500</xsl:when>
+ <xsl:when test="self::important">white</xsl:when>
+ <xsl:when test="self::warning">white</xsl:when>
+ <xsl:when test="self::tip">white</xsl:when>
+ <xsl:otherwise>white</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:attribute name="background-color">
+ <xsl:choose>
+ <xsl:when test="self::note">#B5BCBD</xsl:when>
+ <xsl:when test="self::caution">#E3A835</xsl:when>
+ <xsl:when test="self::important">#4A5D75</xsl:when>
+ <xsl:when test="self::warning">#7B1E1E</xsl:when>
+ <xsl:when test="self::tip">#7E917F</xsl:when>
+ <xsl:otherwise>#404040</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+
+ <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
+ <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
+ <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">1em</xsl:attribute>
+ <xsl:attribute name="padding-bottom">12pt</xsl:attribute>
+ <xsl:attribute name="padding-top">12pt</xsl:attribute>
+ <xsl:attribute name="padding-right">12pt</xsl:attribute>
+ <xsl:attribute name="padding-left">12pt</xsl:attribute>
+ <xsl:attribute name="margin-left">
+ <xsl:value-of select="$title.margin.left"/>
+ </xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:param name="generate.toc">
+set toc
+book toc
+article toc
+</xsl:param>
+
+<xsl:param name="toc.section.depth">3</xsl:param>
+<xsl:param name="section.autolabel" 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>
+
+<!-- Format Variable Lists as Blocks (prevents horizontal overflow). -->
+<xsl:param name="variablelist.as.blocks">1</xsl:param>
+
+<!-- The horrible list spacing problems, this is much better. -->
+<xsl:attribute-set name="list.block.spacing">
+ <xsl:attribute name="space-before.optimum">2em</xsl:attribute>
+ <xsl:attribute name="space-before.minimum">1em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">3em</xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+</xsl:attribute-set>
+
+<!-- Some padding inside tables -->
+<xsl:attribute-set name="table.cell.padding">
+<xsl:attribute name="padding-left">4pt</xsl:attribute>
+<xsl:attribute name="padding-right">4pt</xsl:attribute>
+<xsl:attribute name="padding-top">2pt</xsl:attribute>
+<xsl:attribute name="padding-bottom">2pt</xsl:attribute>
+</xsl:attribute-set>
+
+<!-- Only hairlines as frame and cell borders in tables -->
+<xsl:param name="table.frame.border.thickness">0.3pt</xsl:param>
+<xsl:param name="table.cell.border.thickness">0.15pt</xsl:param>
+<xsl:param name="table.cell.border.color">#5c5c4f</xsl:param>
+<xsl:param name="table.frame.border.color">#5c5c4f</xsl:param>
+<xsl:param name="table.cell.border.right.color">white</xsl:param>
+<xsl:param name="table.cell.border.left.color">white</xsl:param>
+<xsl:param name="table.frame.border.right.color">white</xsl:param>
+<xsl:param name="table.frame.border.left.color">white</xsl:param>
+<!-- Paper type, no headers on blank pages, no double sided printing -->
+<xsl:param name="paper.type" select="'A4'"/>
+<xsl:param name="double.sided">1</xsl:param>
+<xsl:param name="headers.on.blank.pages">1</xsl:param>
+<xsl:param name="footers.on.blank.pages">1</xsl:param>
+<!--xsl:param name="header.column.widths" select="'1 4 1'"/-->
+<xsl:param name="header.column.widths" select="'1 0 1'"/>
+<xsl:param name="footer.column.widths" select="'1 1 1'"/>
+<xsl:param name="header.rule" select="1"/>
+
+<!-- Space between paper border and content (chaotic stuff, don't touch) -->
+<xsl:param name="page.margin.top">15mm</xsl:param>
+<xsl:param name="region.before.extent">10mm</xsl:param>
+<xsl:param name="body.margin.top">15mm</xsl:param>
+
+<xsl:param name="body.margin.bottom">15mm</xsl:param>
+<xsl:param name="region.after.extent">10mm</xsl:param>
+<xsl:param name="page.margin.bottom">15mm</xsl:param>
+
+<xsl:param name="page.margin.outer">30mm</xsl:param>
+<xsl:param name="page.margin.inner">30mm</xsl:param>
+
+<!-- No intendation of Titles -->
+<!--<xsl:param name="title.margin.left">0pc</xsl:param>-->
+<xsl:param name="body.start.indent">0pt</xsl:param>
+
+<xsl:param name="title.color">#4a5d75</xsl:param>
+
+<xsl:attribute-set name="section.title.level1.properties">
+ <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.6"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+</xsl:attribute-set>
+<xsl:attribute-set name="section.title.level2.properties">
+ <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.4"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+</xsl:attribute-set>
+<xsl:attribute-set name="section.title.level3.properties">
+ <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.3"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+</xsl:attribute-set>
+<xsl:attribute-set name="section.title.level4.properties">
+ <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.2"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+</xsl:attribute-set>
+<xsl:attribute-set name="section.title.level5.properties">
+ <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.1"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+</xsl:attribute-set>
+<xsl:attribute-set name="section.title.level6.properties">
+ <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="section.title.properties">
+ <xsl:attribute name="font-family">
+ <xsl:value-of select="$title.font.family"/>
+ </xsl:attribute>
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <!-- font size is calculated dynamically by section.heading template -->
+ <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
+ <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-before.optimum">1.0em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
+ <xsl:attribute name="text-align">left</xsl:attribute>
+ <xsl:attribute name="start-indent"><xsl:value-of select="$title.margin.left"/></xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="book.titlepage.recto.style">
+ <xsl:attribute name="font-family">
+ <xsl:value-of select="$title.fontset"/>
+ </xsl:attribute>
+ <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute name="font-size">12pt</xsl:attribute>
+ <xsl:attribute name="text-align">center</xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="component.title.properties">
+ <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
+ <xsl:attribute name="space-before.optimum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute>
+ <xsl:attribute name="space-before.minimum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute>
+ <xsl:attribute name="space-before.maximum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute>
+ <xsl:attribute name="hyphenate">false</xsl:attribute>
+ <xsl:attribute name="color">
+ <xsl:choose>
+ <xsl:when test="not(parent::chapter | parent::article | parent::appendix)"><xsl:value-of select="$title.color"/></xsl:when>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:attribute name="text-align">
+ <xsl:choose>
+ <xsl:when test="((parent::article | parent::articleinfo) and not(ancestor::book) and not(self::bibliography)) or (parent::slides | parent::slidesinfo)">center</xsl:when>
+ <xsl:otherwise>left</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:attribute name="start-indent"><xsl:value-of select="$title.margin.left"/></xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="chapter.titlepage.recto.style">
+ <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
+ <xsl:attribute name="background-color">white</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:choose>
+ <xsl:when test="$l10n.gentext.language = 'ja-JP'">
+ <xsl:value-of select="$body.font.master * 1.7"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>24pt</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute name="text-align">left</xsl:attribute>
+ <!--xsl:attribute name="wrap-option">no-wrap</xsl:attribute-->
+ <xsl:attribute name="padding-left">1em</xsl:attribute>
+ <xsl:attribute name="padding-right">1em</xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="preface.titlepage.recto.style">
+ <xsl:attribute name="font-family">
+ <xsl:value-of select="$title.fontset"/>
+ </xsl:attribute>
+ <xsl:attribute name="color">#4a5d75</xsl:attribute>
+ <xsl:attribute name="font-size">12pt</xsl:attribute>
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="part.titlepage.recto.style">
+ <xsl:attribute name="color"><xsl:value-of select="$title.color"/></xsl:attribute>
+ <xsl:attribute name="text-align">center</xsl:attribute>
+</xsl:attribute-set>
+
+
+<!--
+From: fo/table.xsl
+Reason: Table Header format
+Version:1.72
+-->
+<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">#4a5d75</xsl:attribute>
+ <xsl:attribute name="color">white</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">#4a5d75</xsl:attribute>
+ </xsl:if>
+</xsl:template>
+
+<!--
+From: fo/titlepage.templates.xsl
+Reason: Switch to using chapter.titlepage.recto.style
+Version:1.72
+-->
+<xsl:template match="title" mode="appendix.titlepage.recto.auto.mode">
+<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
+<xsl:call-template name="component.title.nomarkup">
+<xsl:with-param name="node" select="ancestor-or-self::appendix[1]"/>
+</xsl:call-template>
+</fo:block>
+</xsl:template>
+
+<!--
+From: fo/titlepage.templates.xsl
+Reason: Remove font size and weight overrides
+Version:1.72
+-->
+<xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
+<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
+<xsl:value-of select="."/>
+</fo:block>
+</xsl:template>
+
+<!--
+From: fo/titlepage.templates.xsl
+Reason: Remove font family, size and weight overrides
+Version:1.72
+-->
+<xsl:template name="preface.titlepage.recto">
+ <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style" margin-left="{$title.margin.left}">
+<xsl:call-template name="component.title.nomarkup">
+<xsl:with-param name="node" select="ancestor-or-self::preface[1]"/>
+</xsl:call-template></fo:block>
+ <xsl:choose>
+ <xsl:when test="prefaceinfo/subtitle">
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/subtitle"/>
+ </xsl:when>
+ <xsl:when test="docinfo/subtitle">
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
+ </xsl:when>
+ <xsl:when test="info/subtitle">
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/subtitle"/>
+ </xsl:when>
+ <xsl:when test="subtitle">
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="subtitle"/>
+ </xsl:when>
+ </xsl:choose>
+
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/corpauthor"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/corpauthor"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/authorgroup"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/authorgroup"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/author"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/author"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/author"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/othercredit"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/othercredit"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/releaseinfo"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/releaseinfo"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/copyright"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/copyright"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/copyright"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/legalnotice"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/legalnotice"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/pubdate"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/pubdate"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revision"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revision"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/revision"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revhistory"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/revhistory"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/abstract"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/abstract"/>
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/abstract"/>
+</xsl:template>
+
+
+<xsl:template name="pickfont-sans">
+ <xsl:variable name="font">
+ <xsl:choose>
+ <xsl:when test="$l10n.gentext.language = 'ja-JP'">
+ <xsl:text>KochiMincho,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'ko-KR'">
+ <xsl:text>BaekmukBatang,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'zh-CN'">
+ <xsl:text>ARPLKaitiMGB,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'bn-IN'">
+ <xsl:text>LohitBengali,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'ta-IN'">
+ <xsl:text>LohitTamil,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'pa-IN'">
+ <xsl:text>LohitPunjabi,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'hi-IN'">
+ <xsl:text>LohitHindi,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'gu-IN'">
+ <xsl:text>LohitGujarati,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'zh-TW'">
+ <xsl:text>ARPLMingti2LBig5,</xsl:text>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$fop1.extensions != 0">
+ <xsl:copy-of select="$font"/><xsl:text>DejaVuLGCSans,sans-serif</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy-of select="$font"/><xsl:text>sans-serif</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+<xsl:template name="pickfont-serif">
+ <xsl:variable name="font">
+ <xsl:choose>
+ <xsl:when test="$l10n.gentext.language = 'ja-JP'">
+ <xsl:text>KochiMincho,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'ko-KR'">
+ <xsl:text>BaekmukBatang,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'zh-CN'">
+ <xsl:text>ARPLKaitiMGB,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'bn-IN'">
+ <xsl:text>LohitBengali,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'ta-IN'">
+ <xsl:text>LohitTamil,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'pa-IN'">
+ <xsl:text>LohitPunjabi,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'hi-IN'">
+ <xsl:text>LohitHindi,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'gu-IN'">
+ <xsl:text>LohitGujarati,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'zh-TW'">
+ <xsl:text>ARPLMingti2LBig5,</xsl:text>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$fop1.extensions != 0">
+ <xsl:copy-of select="$font"/><xsl:text>DejaVuLGCSans,serif</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy-of select="$font"/><xsl:text>serif</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+<xsl:template name="pickfont-mono">
+ <xsl:variable name="font">
+ <xsl:choose>
+ <xsl:when test="$l10n.gentext.language = 'ja-JP'">
+ <xsl:text>KochiMincho,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'ko-KR'">
+ <xsl:text>BaekmukBatang,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'zh-CN'">
+ <xsl:text>ARPLKaitiMGB,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'bn-IN'">
+ <xsl:text>LohitBengali,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'ta-IN'">
+ <xsl:text>LohitTamil,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'pa-IN'">
+ <xsl:text>LohitPunjabi,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'hi-IN'">
+ <xsl:text>LohitHindi,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'gu-IN'">
+ <xsl:text>LohitGujarati,</xsl:text>
+ </xsl:when>
+ <xsl:when test="$l10n.gentext.language = 'zh-TW'">
+ <xsl:text>ARPLMingti2LBig5,</xsl:text>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$fop1.extensions != 0">
+ <xsl:copy-of select="$font"/><xsl:text>DejaVuLGCSans,monospace</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy-of select="$font"/><xsl:text>monospace</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+<!--xsl:param name="symbol.font.family">
+ <xsl:choose>
+ <xsl:when test="$l10n.gentext.language = 'ja-JP'">
+ <xsl:text>Symbol,ZapfDingbats</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>Symbol,ZapfDingbats</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:param-->
+
+<xsl:param name="title.font.family">
+ <xsl:call-template name="pickfont-sans"/>
+</xsl:param>
+
+<xsl:param name="body.font.family">
+ <xsl:call-template name="pickfont-sans"/>
+</xsl:param>
+
+<xsl:param name="monospace.font.family">
+ <xsl:call-template name="pickfont-mono"/>
+</xsl:param>
+
+<xsl:param name="sans.font.family">
+ <xsl:call-template name="pickfont-sans"/>
+</xsl:param>
+
+<!--xsl:param name="callout.unicode.font">
+ <xsl:call-template name="pickfont-sans"/>
+</xsl:param-->
+
+<!--
+From: fo/verbatim.xsl
+Reason: Left align address
+Version: 1.72
+-->
+
+<xsl:template match="address">
+ <xsl:param name="suppress-numbers" select="'0'"/>
+
+ <xsl:variable name="content">
+ <xsl:choose>
+ <xsl:when test="$suppress-numbers = '0'
+ and @linenumbering = 'numbered'
+ and $use.extensions != '0'
+ and $linenumbering.extension != '0'">
+ <xsl:call-template name="number.rtf.lines">
+ <xsl:with-param name="rtf">
+ <xsl:apply-templates/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <fo:block wrap-option='no-wrap'
+ white-space-collapse='false'
+ white-space-treatment='preserve'
+ linefeed-treatment="preserve"
+ text-align="start"
+ xsl:use-attribute-sets="verbatim.properties">
+ <xsl:copy-of select="$content"/>
+ </fo:block>
+</xsl:template>
+
+<xsl:template name="component.title.nomarkup">
+ <xsl:param name="node" select="."/>
+
+ <xsl:variable name="id">
+ <xsl:call-template name="object.id">
+ <xsl:with-param name="object" select="$node"/>
+ </xsl:call-template>
+ </xsl:variable>
+
+ <xsl:variable name="title">
+ <xsl:apply-templates select="$node" mode="object.title.markup">
+ <xsl:with-param name="allow-anchors" select="1"/>
+ </xsl:apply-templates>
+ </xsl:variable>
+ <xsl:copy-of select="$title"/>
+</xsl:template>
+
+<!--
+From: fo/pagesetup.xsl
+Reason: Custom Header
+Version: 1.72
+-->
+<xsl:template name="header.content">
+ <xsl:param name="pageclass" select="''"/>
+ <xsl:param name="sequence" select="''"/>
+ <xsl:param name="position" select="''"/>
+ <xsl:param name="gentext-key" select="''"/>
+ <xsl:param name="title-limit" select="'30'"/>
+<!--
+ <fo:block>
+ <xsl:value-of select="$pageclass"/>
+ <xsl:text>, </xsl:text>
+ <xsl:value-of select="$sequence"/>
+ <xsl:text>, </xsl:text>
+ <xsl:value-of select="$position"/>
+ <xsl:text>, </xsl:text>
+ <xsl:value-of select="$gentext-key"/>
+ </fo:block>
+body, blank, left, chapter
+-->
+ <!-- sequence can be odd, even, first, blank -->
+ <!-- position can be left, center, right -->
+ <xsl:choose>
+ <!--xsl:when test="($sequence='blank' and $position='left' and $gentext-key='chapter')">
+ <xsl:variable name="text">
+ <xsl:call-template name="component.title.nomarkup"/>
+ </xsl:variable>
+ <fo:inline keep-together.within-line="always" font-weight="bold">
+ <xsl:choose>
+ <xsl:when test="string-length($text) > '33'">
+ <xsl:value-of select="concat(substring($text, 0, $title-limit), '...')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$text"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </fo:inline>
+ </xsl:when-->
+ <xsl:when test="$confidential = 1 and (($sequence='odd' and $position='left') or ($sequence='even' and $position='right'))">
+ <fo:inline keep-together.within-line="always" font-weight="bold">
+ <xsl:text>RED HAT CONFIDENTIAL</xsl:text>
+ </fo:inline>
+ </xsl:when>
+ <xsl:when test="$sequence = 'blank'">
+ <!-- nothing -->
+ </xsl:when>
+ <!-- Extracting 'Chapter' + Chapter Number from the full Chapter title, with a dirty, dirty hack -->
+ <xsl:when test="($sequence='first' and $position='left' and $gentext-key='chapter')">
+ <xsl:variable name="text">
+ <xsl:call-template name="component.title.nomarkup"/>
+ </xsl:variable>
+ <xsl:variable name="chapt">
+ <xsl:value-of select="substring-before($text, ' ')"/>
+ </xsl:variable>
+ <xsl:variable name="remainder">
+ <xsl:value-of select="substring-after($text, ' ')"/>
+ </xsl:variable>
+ <xsl:variable name="chapt-num">
+ <xsl:value-of select="substring-before($remainder, ' ')"/>
+ </xsl:variable>
+ <xsl:variable name="text1">
+ <xsl:value-of select="concat($chapt, ' ', $chapt-num)"/>
+ </xsl:variable>
+ <fo:inline keep-together.within-line="always" font-weight="bold">
+ <xsl:value-of select="$text1"/>
+ </fo:inline>
+ </xsl:when>
+ <!--xsl:when test="($sequence='odd' or $sequence='even') and $position='center'"-->
+ <xsl:when test="($sequence='even' and $position='left')">
+ <!--xsl:if test="$pageclass != 'titlepage'"-->
+ <xsl:variable name="text">
+ <xsl:call-template name="component.title.nomarkup"/>
+ </xsl:variable>
+ <fo:inline keep-together.within-line="always" font-weight="bold">
+ <xsl:choose>
+ <xsl:when test="string-length($text) > '33'">
+ <xsl:value-of select="concat(substring($text, 0, $title-limit), '...')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$text"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </fo:inline>
+ <!--xsl:if-->
+ </xsl:when>
+ <xsl:when test="($sequence='odd' and $position='right')">
+ <!--xsl:if test="$pageclass != 'titlepage'"-->
+ <fo:inline keep-together.within-line="always"><fo:retrieve-marker retrieve-class-name="section.head.marker" retrieve-position="first-including-carryover" retrieve-boundary="page-sequence"/></fo:inline>
+ <!--/xsl:if-->
+ </xsl:when>
+ <xsl:when test="$position='left'">
+ <!-- Same for odd, even, empty, and blank sequences -->
+ <xsl:call-template name="draft.text"/>
+ </xsl:when>
+ <xsl:when test="$position='center'">
+ <!-- nothing for empty and blank sequences -->
+ </xsl:when>
+ <xsl:when test="$position='right'">
+ <!-- Same for odd, even, empty, and blank sequences -->
+ <xsl:call-template name="draft.text"/>
+ </xsl:when>
+ <xsl:when test="$sequence = 'first'">
+ <!-- nothing for first pages -->
+ </xsl:when>
+ <xsl:when test="$sequence = 'blank'">
+ <!-- nothing for blank pages -->
+ </xsl:when>
+ </xsl:choose>
+</xsl:template>
+
+<!--
+From: fo/pagesetup.xsl
+Reason: Override colour
+Version: 1.72
+-->
+<xsl:template name="head.sep.rule">
+ <xsl:param name="pageclass"/>
+ <xsl:param name="sequence"/>
+ <xsl:param name="gentext-key"/>
+
+ <xsl:if test="$header.rule != 0">
+ <xsl:attribute name="border-bottom-width">0.5pt</xsl:attribute>
+ <xsl:attribute name="border-bottom-style">solid</xsl:attribute>
+ <xsl:attribute name="border-bottom-color">#4a5d75</xsl:attribute>
+ </xsl:if>
+</xsl:template>
+
+<!--
+From: fo/pagesetup.xsl
+Reason: Override colour
+Version: 1.72
+-->
+<xsl:template name="foot.sep.rule">
+ <xsl:param name="pageclass"/>
+ <xsl:param name="sequence"/>
+ <xsl:param name="gentext-key"/>
+
+ <xsl:if test="$footer.rule != 0">
+ <xsl:attribute name="border-top-width">0.5pt</xsl:attribute>
+ <xsl:attribute name="border-top-style">solid</xsl:attribute>
+ <xsl:attribute name="border-top-color">#4a5d75</xsl:attribute>
+ </xsl:if>
+</xsl:template>
+
+<xsl:param name="footnote.font.size">
+ <xsl:value-of select="$body.font.master * 0.8"/><xsl:text>pt</xsl:text>
+</xsl:param>
+<xsl:param name="footnote.number.format" select="'1'"/>
+<xsl:param name="footnote.number.symbols" select="''"/>
+<xsl:attribute-set name="footnote.mark.properties">
+ <xsl:attribute name="font-size">75%</xsl:attribute>
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
+ <xsl:attribute name="font-style">normal</xsl:attribute>
+</xsl:attribute-set>
+<xsl:attribute-set name="footnote.properties">
+ <xsl:attribute name="padding-top">48pt</xsl:attribute>
+ <xsl:attribute name="font-family"><xsl:value-of select="$body.fontset"/></xsl:attribute>
+ <xsl:attribute name="font-size"><xsl:value-of select="$footnote.font.size"/></xsl:attribute>
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
+ <xsl:attribute name="font-style">normal</xsl:attribute>
+ <xsl:attribute name="text-align"><xsl:value-of select="$alignment"/></xsl:attribute>
+ <xsl:attribute name="start-indent">0pt</xsl:attribute>
+</xsl:attribute-set>
+<xsl:attribute-set name="footnote.sep.leader.properties">
+ <xsl:attribute name="color">black</xsl:attribute>
+ <xsl:attribute name="leader-pattern">rule</xsl:attribute>
+ <xsl:attribute name="leader-length">1in</xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:template match="author" mode="tablerow.titlepage.mode">
+ <fo:table-row>
+ <fo:table-cell>
+ <fo:block>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key" select="'Author'"/>
+ </xsl:call-template>
+ </fo:block>
+ </fo:table-cell>
+ <fo:table-cell>
+ <fo:block>
+ <xsl:call-template name="person.name">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ </fo:block>
+ </fo:table-cell>
+ <fo:table-cell>
+ <fo:block>
+ <xsl:apply-templates select="email"/>
+ </fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+</xsl:template>
+
+<xsl:template match="author" mode="titlepage.mode">
+ <fo:block>
+ <xsl:call-template name="person.name">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ </fo:block>
+</xsl:template>
+
+<xsl:param name="editedby.enabled">0</xsl:param>
+
+<xsl:template match="editor" mode="tablerow.titlepage.mode">
+ <fo:table-row>
+ <fo:table-cell>
+ <fo:block>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key" select="'Editor'"/>
+ </xsl:call-template>
+ </fo:block>
+ </fo:table-cell>
+ <fo:table-cell>
+ <fo:block>
+ <xsl:call-template name="person.name">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ </fo:block>
+ </fo:table-cell>
+ <fo:table-cell>
+ <fo:block>
+ <xsl:apply-templates select="email"/>
+ </fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+</xsl:template>
+
+<xsl:template match="othercredit" mode="tablerow.titlepage.mode">
+ <fo:table-row>
+ <fo:table-cell>
+ <fo:block>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key" select="'translator'"/>
+ </xsl:call-template>
+ </fo:block>
+ </fo:table-cell>
+ <fo:table-cell>
+ <fo:block>
+ <xsl:call-template name="person.name">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ </fo:block>
+ </fo:table-cell>
+ <fo:table-cell>
+ <fo:block>
+ <xsl:apply-templates select="email"/>
+ </fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+ </xsl:template>
+
+<!--
+From: fo/titlepage.xsl
+Reason:
+Version:1.72
+-->
+<!-- Omitted to get JBossOrg style working - TODO
+<xsl:template name="verso.authorgroup">
+ <fo:table table-layout="fixed" width="100%">
+ <fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
+ <fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
+ <fo:table-column column-number="3" column-width="proportional-column-width(1)"/>
+ <fo:table-body>
+ <xsl:apply-templates select="author" mode="tablerow.titlepage.mode"/>
+ <xsl:apply-templates select="editor" mode="tablerow.titlepage.mode"/>
+ <xsl:apply-templates select="othercredit" mode="tablerow.titlepage.mode"/>
+ </fo:table-body>
+ </fo:table>
+</xsl:template> -->
+
+<xsl:template match="title" mode="book.titlepage.recto.auto.mode">
+<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="20pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.fontset}">
+<xsl:call-template name="division.title">
+<xsl:with-param name="node" select="ancestor-or-self::book[1]"/>
+</xsl:call-template>
+</fo:block>
+</xsl:template>
+
+<xsl:template match="subtitle" mode="book.titlepage.recto.auto.mode">
+<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="34pt" space-before="30pt" font-family="{$title.fontset}">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</fo:block>
+</xsl:template>
+
+<xsl:template match="issuenum" mode="book.titlepage.recto.auto.mode">
+<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="16pt" space-before="15.552pt" font-family="{$title.fontset}">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</fo:block>
+</xsl:template>
+
+<xsl:template match="author" mode="book.titlepage.recto.auto.mode">
+ <fo:block xsl:use-attribute-sets="book.titlepage.recto.style" font-size="14pt" space-before="15.552pt">
+ <xsl:call-template name="person.name">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ </fo:block>
+</xsl:template>
+
+<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>
+
+ <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/author"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/authorgroup/author"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/author"/>
+
+ <fo:block xsl:use-attribute-sets="book.titlepage.recto.style" color="black">
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/invpartnumber"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/invpartnumber"/>
+ </fo:block>
+ <fo:block xsl:use-attribute-sets="book.titlepage.recto.style" color="black">
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key" select="'isbn'"/>
+ </xsl:call-template>
+ <xsl:text>: </xsl:text>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/isbn"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/isbn"/>
+ </fo:block>
+ <fo:block xsl:use-attribute-sets="book.titlepage.recto.style" color="black">
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key" select="'pubdate'"/>
+ </xsl:call-template>
+ <xsl:text>: </xsl:text>
+ <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 name="book.titlepage.verso">
+ <xsl:choose>
+ <xsl:when test="bookinfo/abstract">
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/abstract"/>
+ </xsl:when>
+ <xsl:when test="info/abstract">
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/abstract"/>
+ </xsl:when>
+ </xsl:choose>
+
+</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"/>
+ </xsl:when>
+ <xsl:when test="info/title">
+ <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/title"/>
+ </xsl:when>
+ <xsl:when test="title">
+ <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="title"/>
+ </xsl:when>
+ </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"/>
+ <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/author"/>
+ <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/author"/>
+ <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/othercredit"/>
+ <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/othercredit"/>
+ <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/copyright"/>
+ <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/copyright"/>
+ <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/legalnotice"/>
+ <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 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">
+ <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
+ <xsl:call-template name="book.titlepage.before.recto"/>
+ <fo:block><xsl:call-template name="book.titlepage.recto"/></fo:block>
+ <xsl:call-template name="book.titlepage.separator"/>
+ <fo:block><xsl:call-template name="book.titlepage.verso"/></fo:block>
+ <xsl:call-template name="book.titlepage.separator"/>
+ <fo:block><xsl:call-template name="book.titlepage3.recto"/></fo:block>
+ <xsl:call-template name="book.titlepage.separator"/>
+ </fo:block>
+</xsl:template>
+
+<!--
+From: fo/qandaset.xsl
+Reason: Id in list-item-label causes fop crash
+Version:1.72
+-->
+
+<xsl:template match="question">
+ <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
+
+ <xsl:variable name="entry.id">
+ <xsl:call-template name="object.id">
+ <xsl:with-param name="object" select="parent::*"/>
+ </xsl:call-template>
+ </xsl:variable>
+
+ <xsl:variable name="deflabel">
+ <xsl:choose>
+ <xsl:when test="ancestor-or-self::*[@defaultlabel]">
+ <xsl:value-of select="(ancestor-or-self::*[@defaultlabel])[last()]
+ /@defaultlabel"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$qanda.defaultlabel"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <fo:list-item id="{$entry.id}" xsl:use-attribute-sets="list.item.spacing">
+ <fo:list-item-label end-indent="label-end()">
+ <xsl:choose>
+ <xsl:when test="$deflabel = 'none'">
+ <fo:block/>
+ </xsl:when>
+ <xsl:otherwise>
+ <fo:block>
+ <xsl:apply-templates select="." mode="label.markup"/>
+ <xsl:if test="$deflabel = 'number' and not(label)">
+ <xsl:apply-templates select="." mode="intralabel.punctuation"/>
+ </xsl:if>
+ </fo:block>
+ </xsl:otherwise>
+ </xsl:choose>
+ </fo:list-item-label>
+ <fo:list-item-body start-indent="body-start()">
+ <xsl:choose>
+ <xsl:when test="$deflabel = 'none'">
+ <fo:block font-weight="bold">
+ <xsl:apply-templates select="*[local-name(.)!='label']"/>
+ </fo:block>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="*[local-name(.)!='label']"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <!-- Uncomment this line to get revhistory output in the question -->
+ <!-- <xsl:apply-templates select="preceding-sibling::revhistory"/> -->
+ </fo:list-item-body>
+ </fo:list-item>
+</xsl:template>
+
+<!--
+From: fo/qandaset.xsl
+Reason: Id in list-item-label causes fop crash
+Version:1.72
+-->
+<xsl:template match="answer">
+ <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
+ <xsl:variable name="entry.id">
+ <xsl:call-template name="object.id">
+ <xsl:with-param name="object" select="parent::*"/>
+ </xsl:call-template>
+ </xsl:variable>
+
+ <xsl:variable name="deflabel">
+ <xsl:choose>
+ <xsl:when test="ancestor-or-self::*[@defaultlabel]">
+ <xsl:value-of select="(ancestor-or-self::*[@defaultlabel])[last()]
+ /@defaultlabel"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$qanda.defaultlabel"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <fo:list-item xsl:use-attribute-sets="list.item.spacing">
+ <fo:list-item-label end-indent="label-end()">
+ <xsl:choose>
+ <xsl:when test="$deflabel = 'none'">
+ <fo:block/>
+ </xsl:when>
+ <xsl:otherwise>
+ <fo:block>
+ <xsl:variable name="answer.label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+ <xsl:copy-of select="$answer.label"/>
+ </fo:block>
+ </xsl:otherwise>
+ </xsl:choose>
+ </fo:list-item-label>
+ <fo:list-item-body start-indent="body-start()">
+ <xsl:apply-templates select="*[local-name(.)!='label']"/>
+ </fo:list-item-body>
+ </fo:list-item>
+</xsl:template>
+
+<xsl:param name="programlisting.font" select="'verdana,helvetica,sans-serif'" />
+
+</xsl:stylesheet>
Modified: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl 2008-03-20 13:40:48 UTC (rev 7650)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/common-xhtml.xsl 2008-03-20 13:40:49 UTC (rev 7651)
@@ -9,7 +9,11 @@
<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">
+ xmlns:rf="java:org.richfaces.highlight.XhtmlRendererFactory"
+ xmlns:sverb="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Verbatim"
+ xmlns:xverb="com.nwalsh.xalan.Verbatim"
+ xmlns:lxslt="http://xml.apache.org/xslt"
+ exclude-result-prefixes="sverb xverb lxslt">
<!-- These extensions are required for table printing and other stuff -->
<xsl:param name="use.extensions">1</xsl:param>
@@ -50,10 +54,10 @@
</span>
</xsl:template>
-<xsl:template match="jobtitle" 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>
Modified: maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl
===================================================================
--- maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl 2008-03-20 13:40:48 UTC (rev 7650)
+++ maven-plugins/trunk/seam-docbook-xslt/src/main/resources/xslt/org/jboss/seam/main-pdf.xsl 2008-03-20 13:40:49 UTC (rev 7651)
@@ -159,5 +159,10 @@
<xsl:param name="title.color">#576C74</xsl:param>
+ <xsl:param name="programlisting.font" select="$monospace.font.family" />
+ <xsl:param name="programlisting.font.size" select="'75%'" />
+ <xsl:param name="graphicsize.extension" select="'1'" />
+
+ <xsl:param name="default.image.width">17.4cm</xsl:param>
</xsl:stylesheet>
17 years, 9 months