[webbeans-commits] Webbeans SVN: r583 - doc/tags.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-12-19 12:46:32 -0500 (Fri, 19 Dec 2008)
New Revision: 583
Added:
doc/tags/webbeans-docbook-xslt-1.1.1.BETA1/
Log:
[maven-release-plugin] copy for tag webbeans-docbook-xslt-1.1.1.BETA1
Copied: doc/tags/webbeans-docbook-xslt-1.1.1.BETA1 (from rev 582, doc/trunk/xslt)
16 years, 1 month
[webbeans-commits] Webbeans SVN: r581 - in doc/trunk: xslt/src/main/resources/xslt/org/jboss and 1 other directories.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-12-19 12:41:56 -0500 (Fri, 19 Dec 2008)
New Revision: 581
Added:
doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/
Removed:
doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/
doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/common.xsl
doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/eclipse.xsl
doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/fop1.xsl
doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/xhtml-single.xsl
doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/xhtml.xsl
Modified:
doc/trunk/reference/pom.xml
doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/pdf.xsl
Log:
Final version of xslt
Modified: doc/trunk/reference/pom.xml
===================================================================
--- doc/trunk/reference/pom.xml 2008-12-19 17:29:17 UTC (rev 580)
+++ doc/trunk/reference/pom.xml 2008-12-19 17:41:56 UTC (rev 581)
@@ -30,12 +30,13 @@
<plugin>
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-jdocbook-plugin</artifactId>
+
<extensions>true</extensions>
<dependencies>
<dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>seam-docbook-xslt</artifactId>
- <version>1.1.0.GA</version>
+ <groupId>org.jboss.webbeans</groupId>
+ <artifactId>webbeans-docbook-xslt</artifactId>
+ <version>1.1.1-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>org.eclipse.wst.css</groupId>
@@ -76,7 +77,7 @@
<format>
<formatName>pdf</formatName>
<stylesheetResource>
- classpath:/xslt/org/jboss/seam/pdf.xsl
+ classpath:/xslt/org/jboss/webbeans/pdf.xsl
</stylesheetResource>
<finalName>webbeans_reference.pdf</finalName>
</format>
Copied: doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans (from rev 579, doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam)
Deleted: doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/common.xsl
===================================================================
--- doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/common.xsl 2008-12-19 17:24:58 UTC (rev 579)
+++ doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/common.xsl 2008-12-19 17:41:56 UTC (rev 581)
@@ -1,35 +0,0 @@
-<?xml version='1.0'?>
-
-<!--
- Copyright 2008 JBoss, a division of Red Hat
- License: LGPL
- Author: Mark Newton <mark.newton(a)jboss.org>
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-
- <xsl:param name="use.simplified.author.group" select="1"/>
-
- <!-- XHTML settings -->
- <xsl:param name="html.stylesheet" select="'css/seamframework.css'"/>
-
- <xsl:param name="siteHref" select="'http://www.seamframework.org'"/>
- <xsl:param name="docHref" select="'http://www.seamframework.org/Documentation'"/>
- <xsl:param name="siteLinkText" select="'SeamFramework.org'"/>
-
- <!-- XHTML and PDF -->
- <xsl:param name="callout.graphics.path">
- <xsl:if test="$img.src.path != ''">
- <xsl:value-of select="$img.src.path"/>
- </xsl:if>
- <xsl:text>images/seamframework/docbook/callouts/</xsl:text>
- </xsl:param>
-
- <xsl:param name="admon.graphics.path">
- <xsl:if test="$img.src.path != ''">
- <xsl:value-of select="$img.src.path"/>
- </xsl:if>
- <xsl:text>images/seamframework/docbook/</xsl:text>
- </xsl:param>
-
-</xsl:stylesheet>
Deleted: doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/eclipse.xsl
===================================================================
--- doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/eclipse.xsl 2008-12-19 17:24:58 UTC (rev 579)
+++ doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/eclipse.xsl 2008-12-19 17:41:56 UTC (rev 581)
@@ -1,20 +0,0 @@
-<?xml version='1.0'?>
-
-<!--
- Copyright 2008 JBoss, a division of Red Hat
- License: LGPL
- Author: Mark Newton <mark.newton(a)jboss.org>
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-
- <xsl:import href="classpath:/xslt/org/jboss/eclipse.xsl"/>
- <xsl:import href="common.xsl"/>
-
- <xsl:param name="html.stylesheet" select="'css/seamframework-eclipse.css'"/>
-
- <xsl:param name="eclipse.plugin.name">Seam Framework Help</xsl:param>
- <xsl:param name="eclipse.plugin.id">org.jboss.seam.help</xsl:param>
- <xsl:param name="eclipse.plugin.provider">SeamFramework.org</xsl:param>
-
-</xsl:stylesheet>
Deleted: doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/fop1.xsl
===================================================================
--- doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/fop1.xsl 2008-12-19 17:24:58 UTC (rev 579)
+++ doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/fop1.xsl 2008-12-19 17:41:56 UTC (rev 581)
@@ -1,71 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version='1.0'>
-
-<xsl:template match="*" mode="fop1.outline">
- <xsl:apply-templates select="*" mode="fop1.outline"/>
-</xsl:template>
-
-<xsl:template match="set|book|part|reference|
- preface|chapter|appendix|article
- |glossary|bibliography|index|setindex
- |refentry
- |sect1|sect2|sect3|sect4|sect5|section"
- mode="fop1.outline">
-
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="bookmark-label">
- <xsl:apply-templates select="." mode="object.title.markup"/>
- </xsl:variable>
-
- <!-- Put the root element bookmark at the same level as its children -->
- <!-- If the object is a set or book, generate a bookmark for the toc -->
-
- <xsl:choose>
- <xsl:when test="parent::*">
- <fo:bookmark internal-destination="{$id}" starting-state="hide">
- <fo:bookmark-title>
- <xsl:value-of select="normalize-space(translate($bookmark-label, $a-dia, $a-asc))"/>
- </fo:bookmark-title>
- <xsl:apply-templates select="*" mode="fop1.outline"/>
- </fo:bookmark>
- </xsl:when>
- <xsl:otherwise>
- <fo:bookmark internal-destination="{$id}" starting-state="hide">
- <fo:bookmark-title>
- <xsl:value-of select="normalize-space(translate($bookmark-label, $a-dia, $a-asc))"/>
- </fo:bookmark-title>
- </fo:bookmark>
-
- <xsl:variable name="toc.params">
- <xsl:call-template name="find.path.params">
- <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:if test="contains($toc.params, 'toc')
- and (book|part|reference|preface|chapter|appendix|article
- |glossary|bibliography|index|setindex
- |refentry
- |sect1|sect2|sect3|sect4|sect5|section)">
- <fo:bookmark internal-destination="toc...{$id}" starting-state="hide">
- <fo:bookmark-title>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'TableofContents'"/>
- </xsl:call-template>
- </fo:bookmark-title>
- </fo:bookmark>
- </xsl:if>
- <xsl:apply-templates select="*" mode="fop1.outline"/>
- </xsl:otherwise>
- </xsl:choose>
-<!--
- <fo:bookmark internal-destination="{$id}"/>
--->
-</xsl:template>
-
-
-</xsl:stylesheet>
Modified: doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/pdf.xsl
===================================================================
--- doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/pdf.xsl 2008-12-19 17:24:58 UTC (rev 579)
+++ doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/pdf.xsl 2008-12-19 17:41:56 UTC (rev 581)
@@ -13,59 +13,8 @@
xmlns:fo="http://www.w3.org/1999/XSL/Format"
exclude-result-prefixes="#default">
- <xsl:import href="classpath:/xslt/org/jboss/pdf.xsl"/>
- <xsl:import href="common.xsl"/>
- <xsl:import href="fop1.xsl" />
-
- <!-- Change the font color for titles to SeamFramework.org one -->
- <xsl:param name="title.color">#576C74</xsl:param>
- <xsl:param name="titlepage.color">#885324</xsl:param>
- <xsl:param name="chapter.title.color">#BA5624</xsl:param>
- <xsl:param name="section.title.color">#BA5624</xsl:param>
+ <xsl:import href="classpath:/xslt/org/jboss/seam/pdf.xsl"/>
- <!-- Style tables to look like SeamFramework.org-->
- <xsl:param name="table.cell.border.color">#D3D2D1</xsl:param>
- <xsl:param name="table.frame.border.color">#D3D2D1</xsl:param>
- <xsl:param name="table.cell.border.thickness">0.6pt</xsl:param>
-
- <xsl:param name="table.frame.border.thickness">0.6pt</xsl:param>
- <xsl:param name="table.cell.border.right.color">white</xsl:param>
- <xsl:param name="table.cell.border.left.color">#D3D2D1</xsl:param>
- <xsl:param name="table.frame.border.right.color">white</xsl:param>
- <xsl:param name="table.frame.border.left.color">white</xsl:param>
-
- <xsl:template name="table.cell.block.properties">
- <!-- highlight this entry? -->
- <xsl:if test="ancestor::thead or ancestor::tfoot">
- <xsl:attribute name="font-weight">bold</xsl:attribute>
- <xsl:attribute name="background-color">#EDE8DB</xsl:attribute>
- <xsl:attribute name="color">black</xsl:attribute>
- </xsl:if>
- </xsl:template>
-
- <!--
- From: fo/table.xsl
- Reason: Table Header format
- Version:1.72
- -->
- <!-- customize this template to add row properties -->
- <xsl:template name="table.row.properties">
- <xsl:variable name="bgcolor">
- <xsl:call-template name="dbfo-attribute">
- <xsl:with-param name="pis" select="processing-instruction('dbfo')" />
- <xsl:with-param name="attribute" select="'bgcolor'" />
- </xsl:call-template>
- </xsl:variable>
- <xsl:if test="$bgcolor != ''">
- <xsl:attribute name="background-color">
- <xsl:value-of select="$bgcolor" />
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="ancestor::thead or ancestor::tfoot">
- <xsl:attribute name="background-color">#EDE8DB</xsl:attribute>
- </xsl:if>
- </xsl:template>
-
<xsl:template name="book.titlepage.recto">
<xsl:choose>
<xsl:when test="bookinfo/title">
Deleted: doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/xhtml-single.xsl
===================================================================
--- doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/xhtml-single.xsl 2008-12-19 17:24:58 UTC (rev 579)
+++ doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/xhtml-single.xsl 2008-12-19 17:41:56 UTC (rev 581)
@@ -1,17 +0,0 @@
-<?xml version='1.0'?>
-
-<!--
- Copyright 2008 JBoss, a division of Red Hat
- License: LGPL
- Author: Pete Muir
- Author: Mark Newton <mark.newton(a)jboss.org>
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-
- <xsl:import href="classpath:/xslt/org/jboss/xhtml-single.xsl"/>
- <xsl:import href="common.xsl"/>
-
- <xsl:param name="html.stylesheet" select="'css/seamframework-single.css'"/>
-
-</xsl:stylesheet>
Deleted: doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/xhtml.xsl
===================================================================
--- doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/xhtml.xsl 2008-12-19 17:24:58 UTC (rev 579)
+++ doc/trunk/xslt/src/main/resources/xslt/org/jboss/webbeans/xhtml.xsl 2008-12-19 17:41:56 UTC (rev 581)
@@ -1,15 +0,0 @@
-<?xml version='1.0'?>
-
-<!--
- Copyright 2008 JBoss, a division of Red Hat
- License: LGPL
- Author: Pete Muir
- Author: Mark Newton <mark.newton(a)jboss.org>
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-
- <xsl:import href="classpath:/xslt/org/jboss/xhtml.xsl"/>
- <xsl:import href="common.xsl"/>
-
-</xsl:stylesheet>
16 years, 1 month
[webbeans-commits] Webbeans SVN: r580 - in doc/trunk: xslt and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-12-19 12:29:17 -0500 (Fri, 19 Dec 2008)
New Revision: 580
Modified:
doc/trunk/reference/
doc/trunk/xslt/
Log:
ignores
Property changes on: doc/trunk/reference
___________________________________________________________________
Name: svn:ignore
+ target
.project
Property changes on: doc/trunk/xslt
___________________________________________________________________
Name: svn:ignore
+ .project
.classpath
target
16 years, 1 month
[webbeans-commits] Webbeans SVN: r579 - doc/trunk.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-12-19 12:24:58 -0500 (Fri, 19 Dec 2008)
New Revision: 579
Removed:
doc/trunk/.project
Log:
Deleted: doc/trunk/.project
===================================================================
--- doc/trunk/.project 2008-12-19 17:23:29 UTC (rev 578)
+++ doc/trunk/.project 2008-12-19 17:24:58 UTC (rev 579)
@@ -1,7 +0,0 @@
-<projectDescription>
- <name>webbeans-reference-guide</name>
- <comment/>
- <projects/>
- <buildSpec/>
- <natures/>
-</projectDescription>
\ No newline at end of file
16 years, 1 month
[webbeans-commits] Webbeans SVN: r578 - in ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans: ejb and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-12-19 12:23:29 -0500 (Fri, 19 Dec 2008)
New Revision: 578
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/EnterpriseBean.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/SessionBeanInterceptor.java
Log:
Tidy up
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/EnterpriseBean.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/EnterpriseBean.java 2008-12-19 17:20:08 UTC (rev 577)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/EnterpriseBean.java 2008-12-19 17:23:29 UTC (rev 578)
@@ -416,4 +416,9 @@
}
+ public void preDestroy(Object target)
+ {
+
+ }
+
}
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/SessionBeanInterceptor.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/SessionBeanInterceptor.java 2008-12-19 17:20:08 UTC (rev 577)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/SessionBeanInterceptor.java 2008-12-19 17:23:29 UTC (rev 578)
@@ -1,6 +1,7 @@
package org.jboss.webbeans.ejb;
import javax.annotation.PostConstruct;
+import javax.annotation.PreDestroy;
import javax.interceptor.InvocationContext;
import javax.webbeans.manager.Bean;
@@ -13,14 +14,35 @@
@PostConstruct
public void postConstruct(InvocationContext invocationContext)
{
+ EnterpriseBean<Object> enterpriseBean = getBean(invocationContext);
+ if (enterpriseBean != null)
+ {
+ enterpriseBean.postConstruct(invocationContext.getTarget());
+ }
+ }
+
+ @PreDestroy
+ public void preDestroy(InvocationContext invocationContext)
+ {
+ EnterpriseBean<Object> enterpriseBean = getBean(invocationContext);
+ if (enterpriseBean != null)
+ {
+ enterpriseBean.preDestroy(invocationContext.getTarget());
+ }
+ }
+
+ private static EnterpriseBean<Object> getBean(InvocationContext invocationContext)
+ {
Class<?> beanClass = invocationContext.getTarget().getClass();
- // TODO Don't like this
Bean<?> bean = CurrentManager.rootManager().getBeanMap().get(beanClass);
if (bean instanceof EnterpriseBean)
{
- EnterpriseBean<Object> enterpriseBean = (EnterpriseBean<Object>) bean;
- enterpriseBean.postConstruct(invocationContext.getTarget());
+ return (EnterpriseBean<Object>) bean;
}
+ else
+ {
+ return null;
+ }
}
}
16 years, 1 month
[webbeans-commits] Webbeans SVN: r577 - in doc/trunk: reference and 1 other directories.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-12-19 12:20:08 -0500 (Fri, 19 Dec 2008)
New Revision: 577
Added:
doc/trunk/reference/
doc/trunk/reference/en/
doc/trunk/reference/pom.xml
Removed:
doc/trunk/en/
doc/trunk/pom.xml
Modified:
doc/trunk/xslt/pom.xml
Log:
restructure
Deleted: doc/trunk/pom.xml
===================================================================
--- doc/trunk/pom.xml 2008-12-19 17:14:45 UTC (rev 576)
+++ doc/trunk/pom.xml 2008-12-19 17:20:08 UTC (rev 577)
@@ -1,166 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>org.jboss.webbeans.reference-guide</groupId>
- <artifactId>webbeans-reference-guide</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <packaging>jdocbook</packaging>
- <name>Web Beans Reference Guide</name>
-
- <pluginRepositories>
- <pluginRepository>
- <id>repository.jboss.org</id>
- <name>JBoss Repository</name>
- <url>http://repository.jboss.org/maven2</url>
- </pluginRepository>
- </pluginRepositories>
- <repositories>
- <repository>
- <id>repository.jboss.org</id>
- <name>JBoss Repository</name>
- <url>http://repository.jboss.org/maven2</url>
- </repository>
- </repositories>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.jboss.maven.plugins</groupId>
- <artifactId>maven-jdocbook-plugin</artifactId>
- <extensions>true</extensions>
- <dependencies>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>seam-docbook-xslt</artifactId>
- <version>1.1.0.GA</version>
- <exclusions>
- <exclusion>
- <groupId>org.eclipse.wst.css</groupId>
- <artifactId>core</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.eclipse.wst.sse</groupId>
- <artifactId>core</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>seam-jdocbook-style</artifactId>
- <version>1.1.0.GA</version>
- <type>jdocbook-style</type>
- </dependency>
- <dependency>
- <groupId>org.jboss</groupId>
- <artifactId>jbossorg-jdocbook-style</artifactId>
- <version>1.1.0</version>
- <type>jdocbook-style</type>
- </dependency>
- </dependencies>
- <configuration>
- <sourceDirectory>${pom.basedir}</sourceDirectory>
- <sourceDocumentName>master.xml</sourceDocumentName>
- <masterTranslation>en</masterTranslation>
- <translations>
- </translations>
- <imageResource>
- <directory>${pom.basedir}/en</directory>
- <includes>
- <include>images/*.png</include>
- </includes>
- </imageResource>
- <formats>
- <format>
- <formatName>pdf</formatName>
- <stylesheetResource>
- classpath:/xslt/org/jboss/seam/pdf.xsl
- </stylesheetResource>
- <finalName>webbeans_reference.pdf</finalName>
- </format>
- <format>
- <formatName>html</formatName>
- <stylesheetResource>
- classpath:/xslt/org/jboss/seam/xhtml.xsl
- </stylesheetResource>
- <finalName>index.html</finalName>
- </format>
- <format>
- <formatName>html_single</formatName>
- <stylesheetResource>
- classpath:/xslt/org/jboss/seam/xhtml-single.xsl
- </stylesheetResource>
- <finalName>index.html</finalName>
- </format>
- </formats>
- <options>
- <xincludeSupported>true</xincludeSupported>
- <xmlTransformerType>saxon</xmlTransformerType>
- <!-- needed for uri-resolvers; can be ommitted if using 'current' uri scheme -->
- <!-- could also locate the docbook dependency and inspect its version... -->
- <docbookVersion>1.72.0</docbookVersion>
- <localeSeparator>-</localeSeparator>
- </options>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <phase>package</phase>
- <configuration>
- <tasks>
- <copy file="${basedir}/target/docbook/publish/en/pdf/webbeans_reference.pdf" todir="${basedir}" />
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>2.0</version>
- </plugin>
- <plugin>
- <groupId>org.jboss.maven.plugins</groupId>
- <artifactId>maven-jdocbook-plugin</artifactId>
- <version>2.1.1</version>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
-
- <profiles>
- <profile>
- <activation>
- <property>
- <name>build.translations</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.jboss.maven.plugins</groupId>
- <artifactId>maven-jdocbook-plugin</artifactId>
- <executions>
- <execution>
- <phase>process-resources</phase>
- <goals>
- <goal>translate</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-</project>
Copied: doc/trunk/reference/en (from rev 575, doc/trunk/en)
Copied: doc/trunk/reference/pom.xml (from rev 575, doc/trunk/pom.xml)
===================================================================
--- doc/trunk/reference/pom.xml (rev 0)
+++ doc/trunk/reference/pom.xml 2008-12-19 17:20:08 UTC (rev 577)
@@ -0,0 +1,166 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.jboss.webbeans.reference-guide</groupId>
+ <artifactId>webbeans-reference-guide</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>jdocbook</packaging>
+ <name>Web Beans Reference Guide</name>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Repository</name>
+ <url>http://repository.jboss.org/maven2</url>
+ </pluginRepository>
+ </pluginRepositories>
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Repository</name>
+ <url>http://repository.jboss.org/maven2</url>
+ </repository>
+ </repositories>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <extensions>true</extensions>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>seam-docbook-xslt</artifactId>
+ <version>1.1.0.GA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.eclipse.wst.css</groupId>
+ <artifactId>core</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.eclipse.wst.sse</groupId>
+ <artifactId>core</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>seam-jdocbook-style</artifactId>
+ <version>1.1.0.GA</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-jdocbook-style</artifactId>
+ <version>1.1.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <sourceDirectory>${pom.basedir}</sourceDirectory>
+ <sourceDocumentName>master.xml</sourceDocumentName>
+ <masterTranslation>en</masterTranslation>
+ <translations>
+ </translations>
+ <imageResource>
+ <directory>${pom.basedir}/en</directory>
+ <includes>
+ <include>images/*.png</include>
+ </includes>
+ </imageResource>
+ <formats>
+ <format>
+ <formatName>pdf</formatName>
+ <stylesheetResource>
+ classpath:/xslt/org/jboss/seam/pdf.xsl
+ </stylesheetResource>
+ <finalName>webbeans_reference.pdf</finalName>
+ </format>
+ <format>
+ <formatName>html</formatName>
+ <stylesheetResource>
+ classpath:/xslt/org/jboss/seam/xhtml.xsl
+ </stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <stylesheetResource>
+ classpath:/xslt/org/jboss/seam/xhtml-single.xsl
+ </stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ <options>
+ <xincludeSupported>true</xincludeSupported>
+ <xmlTransformerType>saxon</xmlTransformerType>
+ <!-- needed for uri-resolvers; can be ommitted if using 'current' uri scheme -->
+ <!-- could also locate the docbook dependency and inspect its version... -->
+ <docbookVersion>1.72.0</docbookVersion>
+ <localeSeparator>-</localeSeparator>
+ </options>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <configuration>
+ <tasks>
+ <copy file="${basedir}/target/docbook/publish/en/pdf/webbeans_reference.pdf" todir="${basedir}" />
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.0</version>
+ </plugin>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.1.1</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <profiles>
+ <profile>
+ <activation>
+ <property>
+ <name>build.translations</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>translate</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
Modified: doc/trunk/xslt/pom.xml
===================================================================
--- doc/trunk/xslt/pom.xml 2008-12-19 17:14:45 UTC (rev 576)
+++ doc/trunk/xslt/pom.xml 2008-12-19 17:20:08 UTC (rev 577)
@@ -47,8 +47,8 @@
<dependencyManagement>
<dependencies>
<dependency>
- <groupId>org.jboss</groupId>
- <artifactId>jbossorg-docbook-xslt</artifactId>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>seam-docbook-xslt</artifactId>
<version>1.1.0.GA</version>
</dependency>
</dependencies>
16 years, 1 month
[webbeans-commits] Webbeans SVN: r576 - in doc/trunk: xslt and 7 other directories.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-12-19 12:14:45 -0500 (Fri, 19 Dec 2008)
New Revision: 576
Added:
doc/trunk/xslt/
doc/trunk/xslt/pom.xml
doc/trunk/xslt/src/
doc/trunk/xslt/src/main/
doc/trunk/xslt/src/main/resources/
doc/trunk/xslt/src/main/resources/xslt/
doc/trunk/xslt/src/main/resources/xslt/org/
doc/trunk/xslt/src/main/resources/xslt/org/jboss/
doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/
doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/common.xsl
doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/eclipse.xsl
doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/fop1.xsl
doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/pdf.xsl
doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/xhtml-single.xsl
doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/xhtml.xsl
Log:
add xslt
Added: doc/trunk/xslt/pom.xml
===================================================================
--- doc/trunk/xslt/pom.xml (rev 0)
+++ doc/trunk/xslt/pom.xml 2008-12-19 17:14:45 UTC (rev 576)
@@ -0,0 +1,91 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.jboss.webbeans</groupId>
+ <artifactId>webbeans-docbook-xslt</artifactId>
+ <packaging>jar</packaging>
+ <version>1.1.1-SNAPSHOT</version>
+
+ <name>Web Beans DocBook XSLT</name>
+ <description>
+ The main project to transform DocBook XML into XHTML and other formats for
+ SeamFramework.org Documentation.
+ </description>
+ <url>http://www.seamframework.org</url>
+
+ <scm>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/webbeans/doc/trunk/xslt</developerConnection>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/webbeans/doc/trunk/xslt</connection>
+ </scm>
+
+ <contributors>
+ <contributor>
+ <name>Pete Muir</name>
+ </contributor>
+ <contributor>
+ <name>Mark Newton</name>
+ </contributor>
+ </contributors>
+
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Repository</name>
+ <url>http://repository.jboss.org/maven2</url>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>seam-docbook-xslt</artifactId>
+ </dependency>
+ </dependencies>
+
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-docbook-xslt</artifactId>
+ <version>1.1.0.GA</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <build>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-webdav</artifactId>
+ <version>1.0-beta-2</version>
+ </extension>
+ </extensions>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.1.1</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <distributionManagement>
+ <repository>
+ <!-- Copy the dist to the local checkout of the JBoss maven2 repo ${maven.repository.root} -->
+ <!-- It is anticipated that ${maven.repository.root} be set in user's settings.xml -->
+ <!-- todo : replace this with direct svn access once the svnkit providers are available -->
+ <id>repository.jboss.org</id>
+ <url>file://${maven.repository.root}</url>
+ </repository>
+ <snapshotRepository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshot Repository</name>
+ <url>dav:https://snapshots.jboss.org/maven2</url>
+ </snapshotRepository>
+ </distributionManagement>
+
+</project>
Added: doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/common.xsl
===================================================================
--- doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/common.xsl (rev 0)
+++ doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/common.xsl 2008-12-19 17:14:45 UTC (rev 576)
@@ -0,0 +1,35 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <xsl:param name="use.simplified.author.group" select="1"/>
+
+ <!-- XHTML settings -->
+ <xsl:param name="html.stylesheet" select="'css/seamframework.css'"/>
+
+ <xsl:param name="siteHref" select="'http://www.seamframework.org'"/>
+ <xsl:param name="docHref" select="'http://www.seamframework.org/Documentation'"/>
+ <xsl:param name="siteLinkText" select="'SeamFramework.org'"/>
+
+ <!-- XHTML and PDF -->
+ <xsl:param name="callout.graphics.path">
+ <xsl:if test="$img.src.path != ''">
+ <xsl:value-of select="$img.src.path"/>
+ </xsl:if>
+ <xsl:text>images/seamframework/docbook/callouts/</xsl:text>
+ </xsl:param>
+
+ <xsl:param name="admon.graphics.path">
+ <xsl:if test="$img.src.path != ''">
+ <xsl:value-of select="$img.src.path"/>
+ </xsl:if>
+ <xsl:text>images/seamframework/docbook/</xsl:text>
+ </xsl:param>
+
+</xsl:stylesheet>
Added: doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/eclipse.xsl
===================================================================
--- doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/eclipse.xsl (rev 0)
+++ doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/eclipse.xsl 2008-12-19 17:14:45 UTC (rev 576)
@@ -0,0 +1,20 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <xsl:import href="classpath:/xslt/org/jboss/eclipse.xsl"/>
+ <xsl:import href="common.xsl"/>
+
+ <xsl:param name="html.stylesheet" select="'css/seamframework-eclipse.css'"/>
+
+ <xsl:param name="eclipse.plugin.name">Seam Framework Help</xsl:param>
+ <xsl:param name="eclipse.plugin.id">org.jboss.seam.help</xsl:param>
+ <xsl:param name="eclipse.plugin.provider">SeamFramework.org</xsl:param>
+
+</xsl:stylesheet>
Added: doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/fop1.xsl
===================================================================
--- doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/fop1.xsl (rev 0)
+++ doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/fop1.xsl 2008-12-19 17:14:45 UTC (rev 576)
@@ -0,0 +1,71 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ version='1.0'>
+
+<xsl:template match="*" mode="fop1.outline">
+ <xsl:apply-templates select="*" mode="fop1.outline"/>
+</xsl:template>
+
+<xsl:template match="set|book|part|reference|
+ preface|chapter|appendix|article
+ |glossary|bibliography|index|setindex
+ |refentry
+ |sect1|sect2|sect3|sect4|sect5|section"
+ mode="fop1.outline">
+
+ <xsl:variable name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:variable>
+ <xsl:variable name="bookmark-label">
+ <xsl:apply-templates select="." mode="object.title.markup"/>
+ </xsl:variable>
+
+ <!-- Put the root element bookmark at the same level as its children -->
+ <!-- If the object is a set or book, generate a bookmark for the toc -->
+
+ <xsl:choose>
+ <xsl:when test="parent::*">
+ <fo:bookmark internal-destination="{$id}" starting-state="hide">
+ <fo:bookmark-title>
+ <xsl:value-of select="normalize-space(translate($bookmark-label, $a-dia, $a-asc))"/>
+ </fo:bookmark-title>
+ <xsl:apply-templates select="*" mode="fop1.outline"/>
+ </fo:bookmark>
+ </xsl:when>
+ <xsl:otherwise>
+ <fo:bookmark internal-destination="{$id}" starting-state="hide">
+ <fo:bookmark-title>
+ <xsl:value-of select="normalize-space(translate($bookmark-label, $a-dia, $a-asc))"/>
+ </fo:bookmark-title>
+ </fo:bookmark>
+
+ <xsl:variable name="toc.params">
+ <xsl:call-template name="find.path.params">
+ <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
+ </xsl:call-template>
+ </xsl:variable>
+
+ <xsl:if test="contains($toc.params, 'toc')
+ and (book|part|reference|preface|chapter|appendix|article
+ |glossary|bibliography|index|setindex
+ |refentry
+ |sect1|sect2|sect3|sect4|sect5|section)">
+ <fo:bookmark internal-destination="toc...{$id}" starting-state="hide">
+ <fo:bookmark-title>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key" select="'TableofContents'"/>
+ </xsl:call-template>
+ </fo:bookmark-title>
+ </fo:bookmark>
+ </xsl:if>
+ <xsl:apply-templates select="*" mode="fop1.outline"/>
+ </xsl:otherwise>
+ </xsl:choose>
+<!--
+ <fo:bookmark internal-destination="{$id}"/>
+-->
+</xsl:template>
+
+
+</xsl:stylesheet>
Added: doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/pdf.xsl
===================================================================
--- doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/pdf.xsl (rev 0)
+++ doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/pdf.xsl 2008-12-19 17:14:45 UTC (rev 576)
@@ -0,0 +1,131 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Pete Muir
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0"
+ xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ exclude-result-prefixes="#default">
+
+ <xsl:import href="classpath:/xslt/org/jboss/pdf.xsl"/>
+ <xsl:import href="common.xsl"/>
+ <xsl:import href="fop1.xsl" />
+
+ <!-- Change the font color for titles to SeamFramework.org one -->
+ <xsl:param name="title.color">#576C74</xsl:param>
+ <xsl:param name="titlepage.color">#885324</xsl:param>
+ <xsl:param name="chapter.title.color">#BA5624</xsl:param>
+ <xsl:param name="section.title.color">#BA5624</xsl:param>
+
+ <!-- Style tables to look like SeamFramework.org-->
+ <xsl:param name="table.cell.border.color">#D3D2D1</xsl:param>
+ <xsl:param name="table.frame.border.color">#D3D2D1</xsl:param>
+ <xsl:param name="table.cell.border.thickness">0.6pt</xsl:param>
+
+ <xsl:param name="table.frame.border.thickness">0.6pt</xsl:param>
+ <xsl:param name="table.cell.border.right.color">white</xsl:param>
+ <xsl:param name="table.cell.border.left.color">#D3D2D1</xsl:param>
+ <xsl:param name="table.frame.border.right.color">white</xsl:param>
+ <xsl:param name="table.frame.border.left.color">white</xsl:param>
+
+ <xsl:template name="table.cell.block.properties">
+ <!-- highlight this entry? -->
+ <xsl:if test="ancestor::thead or ancestor::tfoot">
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute name="background-color">#EDE8DB</xsl:attribute>
+ <xsl:attribute name="color">black</xsl:attribute>
+ </xsl:if>
+ </xsl:template>
+
+ <!--
+ From: fo/table.xsl
+ Reason: Table Header format
+ Version:1.72
+ -->
+ <!-- customize this template to add row properties -->
+ <xsl:template name="table.row.properties">
+ <xsl:variable name="bgcolor">
+ <xsl:call-template name="dbfo-attribute">
+ <xsl:with-param name="pis" select="processing-instruction('dbfo')" />
+ <xsl:with-param name="attribute" select="'bgcolor'" />
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:if test="$bgcolor != ''">
+ <xsl:attribute name="background-color">
+ <xsl:value-of select="$bgcolor" />
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:if test="ancestor::thead or ancestor::tfoot">
+ <xsl:attribute name="background-color">#EDE8DB</xsl:attribute>
+ </xsl:if>
+ </xsl:template>
+
+<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"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/authorgroup"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/author"/>
+
+</xsl:template>
+
+
+<xsl:template match="author" mode="titlepage.mode">
+ <fo:block margin-top="10px">
+ <xsl:call-template name="anchor"/>
+ <xsl:call-template name="person.name"/>
+ </fo:block>
+ <xsl:if test="affiliation/jobtitle">
+ <fo:block>
+ <xsl:apply-templates select="affiliation/jobtitle" mode="titlepage.mode"/>
+ </fo:block>
+ </xsl:if>
+ <xsl:if test="affiliation/orgname">
+ <fo:block>
+ <xsl:apply-templates select="affiliation/orgname" mode="titlepage.mode"/>
+ </fo:block>
+ </xsl:if>
+ <xsl:if test="email|affiliation/address/email">
+ <fo:block>
+ <xsl:apply-templates select="(email|affiliation/address/email)[1]"/>
+ </fo:block>
+ </xsl:if>
+</xsl:template>
+
+</xsl:stylesheet>
Added: doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/xhtml-single.xsl
===================================================================
--- doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/xhtml-single.xsl (rev 0)
+++ doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/xhtml-single.xsl 2008-12-19 17:14:45 UTC (rev 576)
@@ -0,0 +1,17 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Pete Muir
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <xsl:import href="classpath:/xslt/org/jboss/xhtml-single.xsl"/>
+ <xsl:import href="common.xsl"/>
+
+ <xsl:param name="html.stylesheet" select="'css/seamframework-single.css'"/>
+
+</xsl:stylesheet>
Added: doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/xhtml.xsl
===================================================================
--- doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/xhtml.xsl (rev 0)
+++ doc/trunk/xslt/src/main/resources/xslt/org/jboss/seam/xhtml.xsl 2008-12-19 17:14:45 UTC (rev 576)
@@ -0,0 +1,15 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Pete Muir
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <xsl:import href="classpath:/xslt/org/jboss/xhtml.xsl"/>
+ <xsl:import href="common.xsl"/>
+
+</xsl:stylesheet>
16 years, 1 month
[webbeans-commits] Webbeans SVN: r575 - in doc: trunk and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-12-19 12:06:54 -0500 (Fri, 19 Dec 2008)
New Revision: 575
Added:
doc/trunk/pom.xml
Removed:
doc/pom.xml
Log:
move doc to trunk
Deleted: doc/pom.xml
===================================================================
--- doc/pom.xml 2008-12-19 17:06:35 UTC (rev 574)
+++ doc/pom.xml 2008-12-19 17:06:54 UTC (rev 575)
@@ -1,166 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>org.jboss.webbeans.reference-guide</groupId>
- <artifactId>webbeans-reference-guide</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <packaging>jdocbook</packaging>
- <name>Web Beans Reference Guide</name>
-
- <pluginRepositories>
- <pluginRepository>
- <id>repository.jboss.org</id>
- <name>JBoss Repository</name>
- <url>http://repository.jboss.org/maven2</url>
- </pluginRepository>
- </pluginRepositories>
- <repositories>
- <repository>
- <id>repository.jboss.org</id>
- <name>JBoss Repository</name>
- <url>http://repository.jboss.org/maven2</url>
- </repository>
- </repositories>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.jboss.maven.plugins</groupId>
- <artifactId>maven-jdocbook-plugin</artifactId>
- <extensions>true</extensions>
- <dependencies>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>seam-docbook-xslt</artifactId>
- <version>1.1.0.GA</version>
- <exclusions>
- <exclusion>
- <groupId>org.eclipse.wst.css</groupId>
- <artifactId>core</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.eclipse.wst.sse</groupId>
- <artifactId>core</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>seam-jdocbook-style</artifactId>
- <version>1.1.0.GA</version>
- <type>jdocbook-style</type>
- </dependency>
- <dependency>
- <groupId>org.jboss</groupId>
- <artifactId>jbossorg-jdocbook-style</artifactId>
- <version>1.1.0</version>
- <type>jdocbook-style</type>
- </dependency>
- </dependencies>
- <configuration>
- <sourceDirectory>${pom.basedir}</sourceDirectory>
- <sourceDocumentName>master.xml</sourceDocumentName>
- <masterTranslation>en</masterTranslation>
- <translations>
- </translations>
- <imageResource>
- <directory>${pom.basedir}/en</directory>
- <includes>
- <include>images/*.png</include>
- </includes>
- </imageResource>
- <formats>
- <format>
- <formatName>pdf</formatName>
- <stylesheetResource>
- classpath:/xslt/org/jboss/seam/pdf.xsl
- </stylesheetResource>
- <finalName>webbeans_reference.pdf</finalName>
- </format>
- <format>
- <formatName>html</formatName>
- <stylesheetResource>
- classpath:/xslt/org/jboss/seam/xhtml.xsl
- </stylesheetResource>
- <finalName>index.html</finalName>
- </format>
- <format>
- <formatName>html_single</formatName>
- <stylesheetResource>
- classpath:/xslt/org/jboss/seam/xhtml-single.xsl
- </stylesheetResource>
- <finalName>index.html</finalName>
- </format>
- </formats>
- <options>
- <xincludeSupported>true</xincludeSupported>
- <xmlTransformerType>saxon</xmlTransformerType>
- <!-- needed for uri-resolvers; can be ommitted if using 'current' uri scheme -->
- <!-- could also locate the docbook dependency and inspect its version... -->
- <docbookVersion>1.72.0</docbookVersion>
- <localeSeparator>-</localeSeparator>
- </options>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <phase>package</phase>
- <configuration>
- <tasks>
- <copy file="${basedir}/target/docbook/publish/en/pdf/webbeans_reference.pdf" todir="${basedir}" />
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>2.0</version>
- </plugin>
- <plugin>
- <groupId>org.jboss.maven.plugins</groupId>
- <artifactId>maven-jdocbook-plugin</artifactId>
- <version>2.1.1</version>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
-
- <profiles>
- <profile>
- <activation>
- <property>
- <name>build.translations</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.jboss.maven.plugins</groupId>
- <artifactId>maven-jdocbook-plugin</artifactId>
- <executions>
- <execution>
- <phase>process-resources</phase>
- <goals>
- <goal>translate</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-</project>
Copied: doc/trunk/pom.xml (from rev 574, doc/pom.xml)
===================================================================
--- doc/trunk/pom.xml (rev 0)
+++ doc/trunk/pom.xml 2008-12-19 17:06:54 UTC (rev 575)
@@ -0,0 +1,166 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.jboss.webbeans.reference-guide</groupId>
+ <artifactId>webbeans-reference-guide</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>jdocbook</packaging>
+ <name>Web Beans Reference Guide</name>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Repository</name>
+ <url>http://repository.jboss.org/maven2</url>
+ </pluginRepository>
+ </pluginRepositories>
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Repository</name>
+ <url>http://repository.jboss.org/maven2</url>
+ </repository>
+ </repositories>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <extensions>true</extensions>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>seam-docbook-xslt</artifactId>
+ <version>1.1.0.GA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.eclipse.wst.css</groupId>
+ <artifactId>core</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.eclipse.wst.sse</groupId>
+ <artifactId>core</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>seam-jdocbook-style</artifactId>
+ <version>1.1.0.GA</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-jdocbook-style</artifactId>
+ <version>1.1.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <sourceDirectory>${pom.basedir}</sourceDirectory>
+ <sourceDocumentName>master.xml</sourceDocumentName>
+ <masterTranslation>en</masterTranslation>
+ <translations>
+ </translations>
+ <imageResource>
+ <directory>${pom.basedir}/en</directory>
+ <includes>
+ <include>images/*.png</include>
+ </includes>
+ </imageResource>
+ <formats>
+ <format>
+ <formatName>pdf</formatName>
+ <stylesheetResource>
+ classpath:/xslt/org/jboss/seam/pdf.xsl
+ </stylesheetResource>
+ <finalName>webbeans_reference.pdf</finalName>
+ </format>
+ <format>
+ <formatName>html</formatName>
+ <stylesheetResource>
+ classpath:/xslt/org/jboss/seam/xhtml.xsl
+ </stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <stylesheetResource>
+ classpath:/xslt/org/jboss/seam/xhtml-single.xsl
+ </stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ <options>
+ <xincludeSupported>true</xincludeSupported>
+ <xmlTransformerType>saxon</xmlTransformerType>
+ <!-- needed for uri-resolvers; can be ommitted if using 'current' uri scheme -->
+ <!-- could also locate the docbook dependency and inspect its version... -->
+ <docbookVersion>1.72.0</docbookVersion>
+ <localeSeparator>-</localeSeparator>
+ </options>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <configuration>
+ <tasks>
+ <copy file="${basedir}/target/docbook/publish/en/pdf/webbeans_reference.pdf" todir="${basedir}" />
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.0</version>
+ </plugin>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.1.1</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <profiles>
+ <profile>
+ <activation>
+ <property>
+ <name>build.translations</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>translate</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
16 years, 1 month