Author: alexsmirnov
Date: 2007-06-05 18:34:45 -0400 (Tue, 05 Jun 2007)
New Revision: 241
Added:
trunk/docs/userguide/en-US/src/
trunk/docs/userguide/en-US/src/main/
trunk/docs/userguide/en-US/src/main/docbook/
trunk/docs/userguide/en-US/src/main/docbook/master.xml
trunk/docs/userguide/en-US/src/main/resources/
trunk/docs/xslt/src/main/resources/en/f.xsl
Removed:
trunk/docs/userguide/en-US/master.xml
trunk/docs/userguide/f.xsl
Modified:
trunk/docs/userguide/pom.xml
Log:
reorganize projects for a Maven documentation build
Deleted: trunk/docs/userguide/en-US/master.xml
===================================================================
--- trunk/docs/userguide/en-US/master.xml 2007-06-05 22:03:41 UTC (rev 240)
+++ trunk/docs/userguide/en-US/master.xml 2007-06-05 22:34:45 UTC (rev 241)
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN"
-"../../../../jbosstools/trunk/documentation/resources/support/docbook-dtd/docbookx.dtd"
-[ <!ENTITY introduction SYSTEM "modules/a4jUGintro.xml">
- <!ENTITY technicalRequirements SYSTEM "modules/a4jUGtechreqs.xml">
- <!ENTITY getttingStarted SYSTEM "modules/a4jUGstart.xml">
- <!ENTITY envSettings SYSTEM "modules/a4jUGenvsettings.xml">
- <!ENTITY usingAJAX SYSTEM "modules/a4jUGusingAJAX.xml">
- <!ENTITY componentDetails SYSTEM
"../../build/generated/en/a4j_table.xml">
- <!ENTITY skinnability SYSTEM "modules/a4jUGskinnability.xml">
- <!ENTITY IDEintegration SYSTEM "modules/a4jUGideintegration.xml">
- <!ENTITY EVCP SYSTEM "modules/a4jUGevcp.xml">
- <!ENTITY resourceLinks SYSTEM "modules/a4jUGlinks.xml">
- <!ENTITY wadParams SYSTEM "modules/AUGWADParams.xml">
- <!ENTITY FAQ SYSTEM "modules/a4jUGfaq.xml">
-]>
-<book>
- <bookinfo>
- <title>Ajax4jsf Developer Guide</title>
- <subtitle>A JSF component library and framework for incorporating AJAX into Web
applications</subtitle>
- <copyright>
- <year>2007</year>
- <holder>Red Hat</holder>
- </copyright>
-
- </bookinfo>
- <toc/>
- &introduction;
- &technicalRequirements;
- &envSettings;
- &getttingStarted;
- &usingAJAX;
- &componentDetails;
- &skinnability;
- &IDEintegration;
-
-</book>
Copied: trunk/docs/userguide/en-US/src/main/docbook/master.xml (from rev 240,
trunk/docs/userguide/en-US/master.xml)
===================================================================
--- trunk/docs/userguide/en-US/src/main/docbook/master.xml (rev
0)
+++ trunk/docs/userguide/en-US/src/main/docbook/master.xml 2007-06-05 22:34:45 UTC (rev
241)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN"
+"../../../../jbosstools/trunk/documentation/resources/support/docbook-dtd/docbookx.dtd"
+[ <!ENTITY introduction SYSTEM "modules/a4jUGintro.xml">
+ <!ENTITY technicalRequirements SYSTEM "modules/a4jUGtechreqs.xml">
+ <!ENTITY getttingStarted SYSTEM "modules/a4jUGstart.xml">
+ <!ENTITY envSettings SYSTEM "modules/a4jUGenvsettings.xml">
+ <!ENTITY usingAJAX SYSTEM "modules/a4jUGusingAJAX.xml">
+ <!ENTITY componentDetails SYSTEM
"../../build/generated/en/a4j_table.xml">
+ <!ENTITY skinnability SYSTEM "modules/a4jUGskinnability.xml">
+ <!ENTITY IDEintegration SYSTEM "modules/a4jUGideintegration.xml">
+ <!ENTITY EVCP SYSTEM "modules/a4jUGevcp.xml">
+ <!ENTITY resourceLinks SYSTEM "modules/a4jUGlinks.xml">
+ <!ENTITY wadParams SYSTEM "modules/AUGWADParams.xml">
+ <!ENTITY FAQ SYSTEM "modules/a4jUGfaq.xml">
+]>
+<book>
+ <bookinfo>
+ <title>Ajax4jsf Developer Guide</title>
+ <subtitle>A JSF component library and framework for incorporating AJAX into Web
applications</subtitle>
+ <copyright>
+ <year>2007</year>
+ <holder>Red Hat</holder>
+ </copyright>
+
+ </bookinfo>
+ <toc/>
+ &introduction;
+ &technicalRequirements;
+ &envSettings;
+ &getttingStarted;
+ &usingAJAX;
+ &componentDetails;
+ &skinnability;
+ &IDEintegration;
+
+</book>
Deleted: trunk/docs/userguide/f.xsl
===================================================================
--- trunk/docs/userguide/f.xsl 2007-06-05 22:03:41 UTC (rev 240)
+++ trunk/docs/userguide/f.xsl 2007-06-05 22:34:45 UTC (rev 241)
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:transform
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-
xmlns:javaee="http://java.sun.com/JSP/TagLibraryDescriptor"
- version="1.0" exclude-result-prefixes="javaee">
- <xsl:output method="xml" version="1.0"
encoding="UTF-8" indent="yes"/>
- <xsl:param name="lang" />
-
- <xsl:template match="javaee:taglib | taglib">
- <xsl:variable
name="excluded-tag-names">header2,header3,header4,header5,header6</xsl:variable>
-
- <chapter>
-
- <title>Ajax4JSF Components Library</title>
- <xsl:for-each select="javaee:tag | tag">
-
- <!--xsl:value-of select="./name/text()" /-->
-
- <xsl:if test="not(contains($excluded-tag-names, javaee:name))">
- <xsl:call-template name="tag" />
- </xsl:if>
- <xsl:if test="not(contains($excluded-tag-names, ./name/text()))">
- <xsl:call-template name="tag" />
- </xsl:if>
- </xsl:for-each>
- </chapter>
- </xsl:template>
-
- <xsl:template name="tag">
- <section role="NotInToc">
- <xsl:variable name="tag_name">
- <xsl:choose>
- <xsl:when test="javaee:name">
- <xsl:value-of select="javaee:name" />
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="./name/text()" />
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="id"><xsl:value-of
select="$tag_name"/></xsl:attribute>
- <title><<xsl:value-of select="concat('a4j:',
$tag_name)" />></title>
- <xsl:for-each select="document(concat($lang, '/included/',$tag_name,
'.desc.xml'))/*">
- <xsl:copy-of select="./*"/>
- </xsl:for-each>
- <table>
- <title>a4j:<xsl:value-of
select="javaee:name"/><xsl:value-of select="name"/>
attributes</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Attribute Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <xsl:for-each select="javaee:attribute | attribute">
- <row>
- <entry>
- <xsl:value-of select="javaee:name"/>
- <xsl:value-of select="name"/>
- </entry>
- <entry>
- <xsl:value-of select="javaee:description"
disable-output-escaping="yes"/>
- <xsl:value-of select="description"
disable-output-escaping="yes"/>
- </entry>
- </row>
- </xsl:for-each>
- </tbody>
- </tgroup>
- </table>
- <xsl:for-each select="document(concat($lang,'/included/',$tag_name,
'.xml'))/*">
- <xsl:copy-of select="./*"/>
- </xsl:for-each>
- </section>
- </xsl:template>
-</xsl:transform>
\ No newline at end of file
Modified: trunk/docs/userguide/pom.xml
===================================================================
--- trunk/docs/userguide/pom.xml 2007-06-05 22:03:41 UTC (rev 240)
+++ trunk/docs/userguide/pom.xml 2007-06-05 22:34:45 UTC (rev 241)
@@ -16,11 +16,47 @@
<build>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.ajax4jsf</groupId>
+ <artifactId>ajax4jsf</artifactId>
+ <version>${project.version}</version>
+ <type>jar</type>
+ <overWrite>true</overWrite>
+ <outputDirectory>
+ ${project.build.directory}/deps
+ </outputDirectory>
+ </artifactItem>
+ </artifactItems>
+ <outputDirectory>
+ ${project.build.directory}/library
+ </outputDirectory>
+ <overWriteReleases>false</overWriteReleases>
+ <overWriteSnapshots>
+ true
+ </overWriteSnapshots>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
<executions>
<execution>
- <goals>
+ <id>transformTld</id>
+ <phase>process-resources</phase>
+ <goals>
<goal>transform</goal>
</goals>
</execution>
@@ -28,10 +64,12 @@
<configuration>
<transformationSets>
<transformationSet>
- <dir>${project.build.directory}/tld</dir>
+ <dir>
+ ${project.build.directory}/library/META-INF
+ </dir>
<includes>*.tld</includes>
- <outputDir>build/generated/en/</outputDir>
- <stylesheet>userguide/f.xsl</stylesheet>
+ <outputDir>${project.build.directory}/generated/en/</outputDir>
+ <stylesheet>/en/f.xsl</stylesheet>
<fileMappers>
<fileMapper
implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper">
@@ -51,20 +89,19 @@
<version>1.0</version>
<executions>
<execution>
+ <phase>compile</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
- <!--
- <dependencies>
+ <dependencies>
<dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-docbook-xslt</artifactId>
- <version>0.1</version>
+ <groupId>org.ajax4jsf.docs</groupId>
+ <artifactId>xslt</artifactId>
+ <version>${project.version}</version>
</dependency>
- </dependencies>
- -->
+ </dependencies>
<configuration>
<sourceDirectory>
${basedir}/userguide/en
@@ -74,7 +111,7 @@
<format>
<formatName>pdf</formatName>
<stylesheetResource>
- /styles/en/fopdf.xsl
+ /en/fopdf.xsl
</stylesheetResource>
<finalName>
ajax4jsf_reference.pdf
@@ -83,7 +120,7 @@
<format>
<formatName>html</formatName>
<stylesheetResource>
- /styles/en/html.xsl
+ /en/html.xsl
</stylesheetResource>
<finalName>index.html</finalName>
</format>
@@ -120,9 +157,9 @@
<masterTranslation>en-US</masterTranslation>
</properties>
- <modules>
- <module>en-US</module>
- </modules>
+ <modules>
+ <module>en-US</module>
+ </modules>
</project>
Copied: trunk/docs/xslt/src/main/resources/en/f.xsl (from rev 238,
trunk/docs/userguide/f.xsl)
===================================================================
--- trunk/docs/xslt/src/main/resources/en/f.xsl (rev 0)
+++ trunk/docs/xslt/src/main/resources/en/f.xsl 2007-06-05 22:34:45 UTC (rev 241)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:transform
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
xmlns:javaee="http://java.sun.com/JSP/TagLibraryDescriptor"
+ version="1.0" exclude-result-prefixes="javaee">
+ <xsl:output method="xml" version="1.0"
encoding="UTF-8" indent="yes"/>
+ <xsl:param name="lang" />
+
+ <xsl:template match="javaee:taglib | taglib">
+ <xsl:variable
name="excluded-tag-names">header2,header3,header4,header5,header6</xsl:variable>
+
+ <chapter>
+
+ <title>Ajax4JSF Components Library</title>
+ <xsl:for-each select="javaee:tag | tag">
+
+ <!--xsl:value-of select="./name/text()" /-->
+
+ <xsl:if test="not(contains($excluded-tag-names, javaee:name))">
+ <xsl:call-template name="tag" />
+ </xsl:if>
+ <xsl:if test="not(contains($excluded-tag-names, ./name/text()))">
+ <xsl:call-template name="tag" />
+ </xsl:if>
+ </xsl:for-each>
+ </chapter>
+ </xsl:template>
+
+ <xsl:template name="tag">
+ <section role="NotInToc">
+ <xsl:variable name="tag_name">
+ <xsl:choose>
+ <xsl:when test="javaee:name">
+ <xsl:value-of select="javaee:name" />
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="./name/text()" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:attribute name="id"><xsl:value-of
select="$tag_name"/></xsl:attribute>
+ <title><<xsl:value-of select="concat('a4j:',
$tag_name)" />></title>
+ <xsl:for-each select="document(concat($lang, '/included/',$tag_name,
'.desc.xml'))/*">
+ <xsl:copy-of select="./*"/>
+ </xsl:for-each>
+ <table>
+ <title>a4j:<xsl:value-of
select="javaee:name"/><xsl:value-of select="name"/>
attributes</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Attribute Name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <xsl:for-each select="javaee:attribute | attribute">
+ <row>
+ <entry>
+ <xsl:value-of select="javaee:name"/>
+ <xsl:value-of select="name"/>
+ </entry>
+ <entry>
+ <xsl:value-of select="javaee:description"
disable-output-escaping="yes"/>
+ <xsl:value-of select="description"
disable-output-escaping="yes"/>
+ </entry>
+ </row>
+ </xsl:for-each>
+ </tbody>
+ </tgroup>
+ </table>
+ <xsl:for-each select="document(concat($lang,'/included/',$tag_name,
'.xml'))/*">
+ <xsl:copy-of select="./*"/>
+ </xsl:for-each>
+ </section>
+ </xsl:template>
+</xsl:transform>
\ No newline at end of file