Author: artdaw
Date: 2008-07-21 11:33:20 -0400 (Mon, 21 Jul 2008)
New Revision: 9720
Added:
trunk/docs/cdkguide/en/src/main/docbook/includes/rendererbase.xml
trunk/docs/cdkguide/en/src/main/resources/jspx/
trunk/docs/cdkguide/en/src/main/resources/jspx/htmlInputDate.jspx
Removed:
trunk/docs/cdkguide/en/src/main/docbook/includes/rssubclass.xml
Modified:
trunk/docs/cdkguide/en/src/main/docbook/includes/ccreate.xml
trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml
trunk/docs/cdkguide/en/src/main/docbook/includes/protoui.xml
trunk/docs/cdkguide/en/src/main/docbook/includes/template.xml
trunk/docs/cdkguide/en/src/main/docbook/master.xml
trunk/docs/cdkguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-common.xsl
trunk/docs/cdkguide/pom.xml
Log:
https://jira.jboss.org/jira/browse/RF-3692 - Templating section was added
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/ccreate.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/ccreate.xml 2008-07-21 14:25:56 UTC
(rev 9719)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/ccreate.xml 2008-07-21 15:33:20 UTC
(rev 9720)
@@ -15,9 +15,7 @@
</emphasis> component. </para>
<para> You need to go to the <property>inputDate</property>
directory and then launch the
following command: </para>
- <programlisting role="XML"><![CDATA[...
-mvn cdk:create -Dname=inputDate
-...]]></programlisting>
+ <programlisting role="XML"><![CDATA[mvn cdk:create
-Dname=inputDate]]></programlisting>
<para> As a result three artifacts will be created: </para>
<itemizedlist>
<listitem>
@@ -32,9 +30,7 @@
</itemizedlist>
<para> In order to build the component you should stay in the
<property>inputDate</property>
directory and launch the following command:</para>
- <programlisting role="XML"><![CDATA[...
-mvn install
-...]]></programlisting>
+ <programlisting role="XML"><![CDATA[mvn
install]]></programlisting>
<para> This command generates and compiles the library and then creates a
result JAR file. A
directory named <property>target</property> will be created along
with a
<property>src</property> directory. If you get a file named
@@ -43,8 +39,6 @@
<para>
If you want to rebuild the component you could use the following command:
</para>
- <programlisting role="XML"><![CDATA[...
-mvn clean install
-...]]>
+ <programlisting role="XML"><![CDATA[mvn clean install]]>
</programlisting>
</section>
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml 2008-07-21 14:25:56 UTC
(rev 9719)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml 2008-07-21 15:33:20 UTC
(rev 9720)
@@ -14,9 +14,7 @@
At first we need to create a project for the component itself. In the library
directory
<property>Sandbox</property> you just created, launch the following
command (all in one line):
</para>
- <programlisting role="XML"><![CDATA[...
-mvn archetype:create -DarchetypeGroupId=org.richfaces.cdk
-DarchetypeArtifactId=maven-archetype-jsf-component -DarchetypeVersion=3.2.1.GA
-DartifactId=inputDate
-...]]>
+ <programlisting role="XML"><![CDATA[mvn archetype:create
-DarchetypeGroupId=org.richfaces.cdk -DarchetypeArtifactId=maven-archetype-jsf-component
-DarchetypeVersion=3.2.1.GA -DartifactId=inputDate]]>
</programlisting>
<para>
As is easy to see a new directory with the name
<property>inputDate</property> will be created.
@@ -92,8 +90,7 @@
...]]>
</programlisting>
<para> Finally your <property>inputDate/pom.xml</property>
should look like this one: </para>
- <programlisting role="XML"><![CDATA[...
-<?xml version="1.0"?>
+ <programlisting role="XML"><![CDATA[<?xml
version="1.0"?>
<project>
<parent>
<artifactId>sandbox</artifactId>
@@ -151,8 +148,7 @@
<version>3.2.1.GA</version>
</dependency>
</dependencies>
-</project>
-...]]>
- </programlisting>
+</project>]]>
+</programlisting>
</section>
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/protoui.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/protoui.xml 2008-07-21 14:25:56 UTC
(rev 9719)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/protoui.xml 2008-07-21 15:33:20 UTC
(rev 9720)
@@ -20,7 +20,7 @@
<programlisting role="XML"><![CDATA[...
<div title="Date Field Component">
<input name="dateField" value="01 January 2008" />
- <img class="overlay" src="inputDateOverlay.gif" />
+ <img class="overlay" src="inputDateOverlay.png" />
</div>
...]]> </programlisting>
<para> As it is shown in the listing above there are three HTML attributes -
<emphasis>
@@ -28,7 +28,7 @@
</emphasis>, <emphasis>
<property>"name"</property>
</emphasis>, and <emphasis>
- <property>" value"</property>
+ <property>"value"</property>
</emphasis> - are needed to be parameterize the generated markup.
</para>
<para>
You map the HTML attributes to the corresponding
<code>UIComponent</code> attributes:
@@ -36,7 +36,7 @@
<programlisting role="XML"><![CDATA[...
<div title="[title]">
<input name="[clientID]" value="[converted value]" />
- <img class="overlay" src="inputDateOverlay.gif" />
+ <img class="overlay" src="inputDateOverlay.png" />
</div>
...]]>
</programlisting>
Copied: trunk/docs/cdkguide/en/src/main/docbook/includes/rendererbase.xml (from rev 9696,
trunk/docs/cdkguide/en/src/main/docbook/includes/rssubclass.xml)
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/rendererbase.xml
(rev 0)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/rendererbase.xml 2008-07-21 15:33:20
UTC (rev 9720)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section id="rendererbase" xreflabel="rendererbase">
+ <?dbhtml filename="rendererbase.html"?>
+ <sectioninfo>
+ <keywordset>
+ <keyword>renderer</keyword>
+ <keyword>UI</keyword>
+ <keyword>CDK</keyword>
+ <keyword>Guide</keyword>
+ </keywordset>
+ </sectioninfo>
+ <title>Creating a Renderer Base class</title>
+ <para> How to create a base class </para>
+</section>
Property changes on: trunk/docs/cdkguide/en/src/main/docbook/includes/rendererbase.xml
___________________________________________________________________
Name: svn:mergeinfo
+
Deleted: trunk/docs/cdkguide/en/src/main/docbook/includes/rssubclass.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/rssubclass.xml 2008-07-21 14:25:56
UTC (rev 9719)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/rssubclass.xml 2008-07-21 15:33:20
UTC (rev 9720)
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<section id="rssubclass" xreflabel="rssubclass">
- <?dbhtml filename="rssubclass.html"?>
- <sectioninfo>
- <keywordset>
- <keyword>renderer</keyword>
- <keyword>UI</keyword>
- <keyword>CDK</keyword>
- <keyword>Guide</keyword>
- </keywordset>
- </sectioninfo>
-<title>Creating a renderer-specific subclass</title>
-<para>
- renderer-specific subclass
-</para>
-</section>
-
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/template.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/template.xml 2008-07-21 14:25:56 UTC
(rev 9719)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/template.xml 2008-07-21 15:33:20 UTC
(rev 9720)
@@ -1,19 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<section id="template" xreflabel="template">
-<?dbhtml filename="template.html"?>
-<sectioninfo>
-<keywordset>
-<keyword>templating</keyword>
-<keyword>UI</keyword>
-<keyword>CDK</keyword>
-<keyword>Guide</keyword>
-</keywordset>
-</sectioninfo>
-<title>Templating</title>
-<para>
-How to write your renderer with the help of a template.
-</para>
-<para>
-How to create a base class
-</para>
-</section>
\ No newline at end of file
+ <?dbhtml filename="template.html"?>
+ <sectioninfo>
+ <keywordset>
+ <keyword>templating</keyword>
+ <keyword>UI</keyword>
+ <keyword>CDK</keyword>
+ <keyword>Guide</keyword>
+ </keywordset>
+ </sectioninfo>
+ <title>Templating</title>
+ <para> The <property>Component Development Kit (CDK)</property>
allows to use the
+ <property>templates</property> for generation
<property>Renderer</property> class. </para>
+ <para> Templates are JSP-like markup pages with special tags that are converted
into
+ <property>Renderer</property> by a build script. </para>
+ <para> It's possible to use evaluated expressions in components
templates.
+ It's also possible to create the <property>base
class</property> for a template to
+ implement additional functions in it, so as the functions could be called from
the template.
+ Hence, in the generated <property>Renderer</property> class there are
corresponding function
+ calls on the place of these elements. </para>
+ <para> Let's create the template. At first you should proceed to the
+ <property>inputDate/src/main/templates/org/mycompany</property>
directory where
+ <property>htmlInputDate.jspx</property> template file is stored.
This file contains a
+ <property>Template Skeleton</property> like this one:
</para>
+ <programlisting role="XML"><![CDATA[
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+
xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c="
http://java.sun.com/jsf/core"
+ xmlns:ui="
http://ajax4jsf.org/cdk/ui"
+ xmlns:u="
http://ajax4jsf.org/cdk/u"
+ xmlns:x="
http://ajax4jsf.org/cdk/x"
+ class="org.mycompany.renderkit.html.InputDateRenderer"
+ baseclass="org.ajax4jsf.renderkit.AjaxComponentRendererBase"
+ component="org.mycompany.component.UIInputDate"
+ >
+ <f:clientid var="clientId"/>
+ <div id="#{clientId}"
+ x:passThruWithExclusions="value,name,type,id"
+ >
+ </div>
+</f:root>
+ ]]></programlisting>
+ <para> According to the created <property>UI prototype</property>
you need to extend
+ <property>Template Skeleton</property> with proper elements. Here
is a full example for
+ the <emphasis role="bold">
+ <property><inputDate></property>
+ </emphasis> component: </para>
+ <ulink
url="jspx/htmlInputDate.jspx">htmlInputDate.jspx</ulink>.
</section>
Modified: trunk/docs/cdkguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/master.xml 2008-07-21 14:25:56 UTC (rev 9719)
+++ trunk/docs/cdkguide/en/src/main/docbook/master.xml 2008-07-21 15:33:20 UTC (rev 9720)
@@ -21,7 +21,7 @@
<!ENTITY skin SYSTEM "includes/skin.xml">
<!ENTITY register SYSTEM "includes/register.xml">
<!ENTITY taghandler SYSTEM "includes/taghandler.xml">
-<!ENTITY rssubclass SYSTEM "includes/rssubclass.xml">
+<!ENTITY rendererbase SYSTEM "includes/rendererbase.xml">
<!--Check the links page -->
<!ENTITY links SYSTEM "modules/links.xml">
]>
@@ -36,101 +36,73 @@
</copyright>
</bookinfo>
- <toc/>
- &intro;
- &roadmap;
- &setup;
-
-
-<!--
- &ccreate;
- &compdev;
+ <toc/> &intro; &roadmap; &setup; <!--
+ &ccreate;
+ &compdev;
-->
+ <chapter id="compdev" xreflabel="compdev">
+ <?dbhtml filename="compdev.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>inputDate</keyword>
+ <keyword>component</keyword>
+ <keyword>CDK</keyword>
+ <keyword>Guide</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>inputDate component development</title>
+ <para> We a going to create the <emphasis role="bold">
+ <property><inputDate></property>
+ </emphasis> component that can take a value, process that value, and
then push it back
+ to the underlying model as a strongly typed
<property>Date</property> object. </para>
+ <para> The <emphasis role="bold">
+ <property><inputDate></property>
+ </emphasis> component allows to attach a converter in order to set the
desired date
+ format such as <property>mm/dd/yyyy</property>. So the component
could convert and
+ validate the date entered by user. </para> &pcreate; &ccreate;
&protoui;
+ <section id="crenderer" xreflabel="crenderer">
+ <?dbhtml filename="crenderer.html"?>
+ <sectioninfo>
+ <keywordset>
+ <keyword>renderer</keyword>
+ <keyword>UI</keyword>
+ <keyword>CDK</keyword>
+ <keyword>Guide</keyword>
+ </keywordset>
+ </sectioninfo>
+ <title>Creating a Renderer</title>
+ <para> Renderer is responsible for the JSF component representation. It
generates the
+ appropriate client-side markup, such as HTML, WML, XUL, etc. Renderer is
also
+ responsible for the converting information coming from the client to the
proper type
+ for the component (for example, a string value from the request is
converted to a
+ strongly type <code>Date</code> object). </para>
+ <para> You could actually implement the renderer-specific component
subclass that
+ exposes client-side attributes such as <emphasis>
+ <property>"style"</property>
+ </emphasis>, <emphasis>
+ <property>"class"</property>
+ </emphasis>, etc. It is common practice to implement the
client-specific component
+ subclass to make some aspects of application development easier, but in
our case we
+ do not need to do it. The <emphasis role="bold">
+ <property><inputDate></property>
+ </emphasis> is a simple <code>UIInput</code> component,
therefore
+ <code>InputDateRenderer</code> class generates all the
markup itself. </para>
+ <para> It is a time to start creating the
<property>Renderer</property>. </para>
+ <para> One of the most convenient features of the
<property>Component Development Kit
+ (CDK)</property> is a
<property>Templating</property> mechanism. </para>
+ &template; &rendererbase; &skin; </section> ®ister;
&ui;
+ &taghandler; </chapter> &test; &overview; <chapter
id="button"
+ xreflabel="button">
+ <?dbhtml filename="button.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>button</keyword>
+ <keyword>component</keyword>
+ <keyword>CDK</keyword>
+ <keyword>Guide</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>Button component development</title>
+ <para> Command Ajax components TBD with RichFaces CDK. </para>
-
-
-
-
-<chapter id="compdev" xreflabel="compdev">
- <?dbhtml filename="compdev.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>inputDate</keyword>
- <keyword>component</keyword>
- <keyword>CDK</keyword>
- <keyword>Guide</keyword>
- </keywordset>
- </chapterinfo>
- <title>inputDate component development</title>
- <para>
- We a going to create the <emphasis
role="bold"><property><inputDate></property></emphasis>
- component that can take a value, process that value, and then push it
- back to the underlying model as a strongly typed
<property>Date</property> object.
- </para>
- <para>
- The <emphasis
role="bold"><property><inputDate></property></emphasis>
component allows to attach
- a converter in order to set the desired date format such as
<property>mm/dd/yyyy</property>. So the component
- could convert and validate the date entered by user.
- </para>
-
- &pcreate;
- &ccreate;
- &protoui;
-
-<section id="crenderer" xreflabel="crenderer">
- <?dbhtml filename="crenderer.html"?>
- <sectioninfo>
- <keywordset>
- <keyword>renderer</keyword>
- <keyword>UI</keyword>
- <keyword>CDK</keyword>
- <keyword>Guide</keyword>
- </keywordset>
- </sectioninfo>
- <title>Creating a Renderer</title>
- <para>
- Renderer is responsible for the JSF component representation. It generates the
appropriate client-side markup,
- such as HTML, WML, XUL, etc. Renderer is also responsible for the converting
information coming from the client to the proper type
- for the component (for example, a string value from the request is converted to a
strongly type <code>Date</code> object).
- </para>
- <para>
- You could actually implement the renderer-specific component subclass that exposes
- client-side attributes such as style, disabled, tooltip, etc.
- </para>
- &template;
- &skin;
-</section>
-
-
-
- &rssubclass;
- &ui;
- ®ister;
- &taghandler;
-
-</chapter>
-
- &test;
- &overview;
-
- <chapter id="button" xreflabel="button">
- <?dbhtml filename="button.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>button</keyword>
- <keyword>component</keyword>
- <keyword>CDK</keyword>
- <keyword>Guide</keyword>
- </keywordset>
- </chapterinfo>
- <title>Button component development</title>
- <para>
- Command Ajax components TBD with RichFaces CDK.
- </para>
-
- </chapter>
- &ide;
- &namingconv;
- &ref;
- &temptags;
-</book>
+ </chapter> &ide; &namingconv; &ref; &temptags; </book>
Added: trunk/docs/cdkguide/en/src/main/resources/jspx/htmlInputDate.jspx
===================================================================
--- trunk/docs/cdkguide/en/src/main/resources/jspx/htmlInputDate.jspx
(rev 0)
+++ trunk/docs/cdkguide/en/src/main/resources/jspx/htmlInputDate.jspx 2008-07-21 15:33:20
UTC (rev 9720)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+
xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c="
http://java.sun.com/jsf/core"
+ xmlns:ui="
http://ajax4jsf.org/cdk/ui"
+ xmlns:h="
http://ajax4jsf.org/cdk/h"
+ xmlns:u="
http://ajax4jsf.org/cdk/u"
+ xmlns:x="
http://ajax4jsf.org/cdk/x"
+ xmlns:jsp="
http://ajax4jsf.org/cdk/jsp"
+ class="org.mycompany.renderkit.html.InputDateRenderer"
+ baseclass="org.mycompany.renderkit.InputDateRendererBase"
+ component="org.mycompany.component.UIInputDate"
+ >
+ <f:clientid var="clientId"/>
+ <h:styles>/org/mycompany/renderkit/html/css/inputDate.xcss</h:styles>
+ <f:resource name="/org/mycompany/renderkit/html/images/inputDate.png"
var="icon" />
+ <c:object var="caption" type="javax.faces.component.UIComponent"
/>
+ <jsp:scriptlet>
+ <![CDATA[
+ caption = component.getFacet("caption");
+ if(caption !=null && caption.isRendered()) {]]>
+ </jsp:scriptlet>
+ <div id="#{clientId}_caption" class="my-inputDate-caption
#{component.attributes['captionClass']}">
+ <f:insertComponent value="#{caption}" />
+ </div>
+ <jsp:scriptlet>
+ <![CDATA[}]]>
+ </jsp:scriptlet>
+ <div id="#{clientId}" title="#{value}"
x:passThruWithExclusions="value,name,type,id">
+ <input id="#{clientId}"
+ name="#{clientId}"
+ type="text"
+ value="#{this:getValueAsString(context, component)}"
+ class="my-inputDate-input #{component.attributes['inputClass']}"
+ style="#{component.attributes['inputStyle']}"/>
+
+ <jsp:scriptlet>
+ <![CDATA[if(component.getFacet("icon")!=null &&
component.getFacet("icon").isRendered()) {]]>
+ </jsp:scriptlet>
+ <u:insertFacet name="icon" />
+ <jsp:scriptlet>
+ <![CDATA[
+ }else{
+ ]]>
+ </jsp:scriptlet>
+ <img src="#{icon}" class="my-inputDate-icon
#{component.attributes['iconClass']}"
style="#{component.attributes['iconStyle']}"/>
+ <jsp:scriptlet>
+ <![CDATA[
+ }
+ ]]>
+ </jsp:scriptlet>
+ </div>
+</f:root>
\ No newline at end of file
Modified:
trunk/docs/cdkguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-common.xsl
===================================================================
---
trunk/docs/cdkguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-common.xsl 2008-07-21
14:25:56 UTC (rev 9719)
+++
trunk/docs/cdkguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-common.xsl 2008-07-21
15:33:20 UTC (rev 9720)
@@ -1,69 +1,73 @@
-<?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="collapsing-navigation.xsl"/-->
-
- <xsl:param name="html.stylesheet"
select="'css/html.css'"/>
- <xsl:param name="generate.toc" select="'book
toc'"/>
- <xsl:param name="toc.section.depth" select="5"/>
- <!--
-From: xhtml/docbook.xsl
-Reason: Remove inline style for draft mode
-Version: 1.72.0
--->
-<xsl:template name="head.content">
- <xsl:param name="node" select="."/>
- <xsl:param name="title">
- <xsl:apply-templates select="$node"
mode="object.title.markup.textonly"/>
- </xsl:param>
-
- <title
xmlns="http://www.w3.org/1999/xhtml" >
- <xsl:copy-of select="$title"/>
- </title>
-
- <xsl:if test="$html.stylesheet != ''">
- <xsl:call-template name="output.html.stylesheets">
- <xsl:with-param name="stylesheets"
select="normalize-space($html.stylesheet)"/>
- </xsl:call-template>
- </xsl:if>
-
- <xsl:if test="$link.mailto.url != ''">
- <link rev="made" href="{$link.mailto.url}"/>
- </xsl:if>
-
- <xsl:if test="$html.base != ''">
- <base href="{$html.base}"/>
- </xsl:if>
-
- <meta
xmlns="http://www.w3.org/1999/xhtml" name="generator"
content="DocBook {$DistroTitle} V{$VERSION}"/>
-
- <xsl:if test="$generate.meta.abstract != 0">
- <xsl:variable name="info" select="(articleinfo |bookinfo |prefaceinfo
|chapterinfo |appendixinfo |sectioninfo |sect1info |sect2info |sect3info |sect4info
|sect5info |referenceinfo |refentryinfo |partinfo |info |docinfo)[1]"/>
- <xsl:if test="$info and $info/abstract">
- <meta
xmlns="http://www.w3.org/1999/xhtml"
name="description">
- <xsl:attribute name="content">
- <xsl:for-each select="$info/abstract[1]/*">
- <xsl:value-of select="normalize-space(.)"/>
- <xsl:if test="position() < last()">
- <xsl:text> </xsl:text>
- </xsl:if>
- </xsl:for-each>
- </xsl:attribute>
- </meta>
- </xsl:if>
- </xsl:if>
-
- <link rel="shortcut icon" type="image/vnd.microsoft.icon"
href="images/favicon.ico" />
-
- <xsl:apply-templates select="."
mode="head.keywords.content"/>
-</xsl:template>
-
-
-</xsl:stylesheet>
+<?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="collapsing-navigation.xsl"/-->
+
+ <xsl:param name="html.stylesheet"
select="'css/html.css'"/>
+ <xsl:param name="generate.toc" select="'book
toc'"/>
+ <xsl:param name="toc.section.depth" select="5"/>
+ <!--
+From: xhtml/docbook.xsl
+Reason: Remove inline style for draft mode
+Version: 1.72.0
+-->
+<xsl:template name="head.content">
+ <xsl:param name="node" select="."/>
+ <xsl:param name="title">
+ <xsl:apply-templates select="$node"
mode="object.title.markup.textonly"/>
+ </xsl:param>
+
+ <title
xmlns="http://www.w3.org/1999/xhtml" >
+ <xsl:copy-of select="$title"/>
+ </title>
+
+ <xsl:if test="$html.stylesheet != ''">
+ <xsl:call-template name="output.html.stylesheets">
+ <xsl:with-param name="stylesheets"
select="normalize-space($html.stylesheet)"/>
+ </xsl:call-template>
+ </xsl:if>
+
+ <xsl:if test="$link.mailto.url != ''">
+ <link rev="made" href="{$link.mailto.url}"/>
+ </xsl:if>
+
+ <xsl:if test="$html.base != ''">
+ <base href="{$html.base}"/>
+ </xsl:if>
+
+ <meta
xmlns="http://www.w3.org/1999/xhtml" name="generator"
content="DocBook {$DistroTitle} V{$VERSION}"/>
+
+ <xsl:if test="$generate.meta.abstract != 0">
+ <xsl:variable name="info" select="(articleinfo |bookinfo |prefaceinfo
|chapterinfo |appendixinfo |sectioninfo |sect1info |sect2info |sect3info |sect4info
|sect5info |referenceinfo |refentryinfo |partinfo |info |docinfo)[1]"/>
+ <xsl:if test="$info and $info/abstract">
+ <meta
xmlns="http://www.w3.org/1999/xhtml"
name="description">
+ <xsl:attribute name="content">
+ <xsl:for-each select="$info/abstract[1]/*">
+ <xsl:value-of select="normalize-space(.)"/>
+ <xsl:if test="position() < last()">
+ <xsl:text> </xsl:text>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:attribute>
+ </meta>
+ </xsl:if>
+ </xsl:if>
+
+ <link rel="shortcut icon" type="image/vnd.microsoft.icon"
href="images/favicon.ico" />
+
+ <xsl:apply-templates select="."
mode="head.keywords.content"/>
+</xsl:template>
+
+<xsl:template match="//citebiblio">
+ <div>
+ <xsl:value-of select="." />
+</div>
+</xsl:template>
+</xsl:stylesheet>
Modified: trunk/docs/cdkguide/pom.xml
===================================================================
--- trunk/docs/cdkguide/pom.xml 2008-07-21 14:25:56 UTC (rev 9719)
+++ trunk/docs/cdkguide/pom.xml 2008-07-21 15:33:20 UTC (rev 9720)
@@ -84,6 +84,7 @@
${basedir}/src/main/resources
</directory>
</cssResource>
+
<sourceDocumentName>
master.xml
</sourceDocumentName>