click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r752577 - in /incubator/click/trunk/click/documentation/xdocs/src: images/best-practices/ images/configuration/ images/controls/ images/introduction/ images/pages/ styles/html/ styles/pdf/
Date Wed, 11 Mar 2009 18:57:22 GMT
Author: sabob
Date: Wed Mar 11 18:57:21 2009
New Revision: 752577

URL: http://svn.apache.org/viewvc?rev=752577&view=rev
Log:
Added Click Book

Added:
    incubator/click/trunk/click/documentation/xdocs/src/images/best-practices/packages-classes.png
  (with props)
    incubator/click/trunk/click/documentation/xdocs/src/images/configuration/config-files.png
  (with props)
    incubator/click/trunk/click/documentation/xdocs/src/images/controls/container-package-class-diagram.png
  (with props)
    incubator/click/trunk/click/documentation/xdocs/src/images/controls/control-class-diagram.png
  (with props)
    incubator/click/trunk/click/documentation/xdocs/src/images/controls/control-package-class-diagram.png
  (with props)
    incubator/click/trunk/click/documentation/xdocs/src/images/controls/control-post-sequence-diagram.png
  (with props)
    incubator/click/trunk/click/documentation/xdocs/src/images/introduction/advanced-form.png
  (with props)
    incubator/click/trunk/click/documentation/xdocs/src/images/introduction/advanced-table.png
  (with props)
    incubator/click/trunk/click/documentation/xdocs/src/images/introduction/hello-world-screenshot.png
  (with props)
    incubator/click/trunk/click/documentation/xdocs/src/images/introduction/simple-form-error.png
  (with props)
    incubator/click/trunk/click/documentation/xdocs/src/images/introduction/simple-form-success.png
  (with props)
    incubator/click/trunk/click/documentation/xdocs/src/images/introduction/simple-form.png
  (with props)
    incubator/click/trunk/click/documentation/xdocs/src/images/introduction/simple-table.png
  (with props)
    incubator/click/trunk/click/documentation/xdocs/src/images/pages/activity-diagram-small.png
  (with props)
    incubator/click/trunk/click/documentation/xdocs/src/images/pages/click-class-diagram.png
  (with props)
    incubator/click/trunk/click/documentation/xdocs/src/images/pages/get-sequence-diagram.png
  (with props)
    incubator/click/trunk/click/documentation/xdocs/src/images/pages/home-page-screenshot.png
  (with props)
    incubator/click/trunk/click/documentation/xdocs/src/styles/html/custom.xsl
    incubator/click/trunk/click/documentation/xdocs/src/styles/html/titlepage.xml
    incubator/click/trunk/click/documentation/xdocs/src/styles/pdf/custom.xsl
    incubator/click/trunk/click/documentation/xdocs/src/styles/pdf/titlepage.xml

Added: incubator/click/trunk/click/documentation/xdocs/src/images/best-practices/packages-classes.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/images/best-practices/packages-classes.png?rev=752577&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/documentation/xdocs/src/images/best-practices/packages-classes.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/documentation/xdocs/src/images/configuration/config-files.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/images/configuration/config-files.png?rev=752577&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/documentation/xdocs/src/images/configuration/config-files.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/documentation/xdocs/src/images/controls/container-package-class-diagram.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/images/controls/container-package-class-diagram.png?rev=752577&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/documentation/xdocs/src/images/controls/container-package-class-diagram.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/documentation/xdocs/src/images/controls/control-class-diagram.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/images/controls/control-class-diagram.png?rev=752577&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/documentation/xdocs/src/images/controls/control-class-diagram.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/documentation/xdocs/src/images/controls/control-package-class-diagram.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/images/controls/control-package-class-diagram.png?rev=752577&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/documentation/xdocs/src/images/controls/control-package-class-diagram.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/documentation/xdocs/src/images/controls/control-post-sequence-diagram.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/images/controls/control-post-sequence-diagram.png?rev=752577&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/documentation/xdocs/src/images/controls/control-post-sequence-diagram.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/documentation/xdocs/src/images/introduction/advanced-form.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/images/introduction/advanced-form.png?rev=752577&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/documentation/xdocs/src/images/introduction/advanced-form.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/documentation/xdocs/src/images/introduction/advanced-table.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/images/introduction/advanced-table.png?rev=752577&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/documentation/xdocs/src/images/introduction/advanced-table.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/documentation/xdocs/src/images/introduction/hello-world-screenshot.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/images/introduction/hello-world-screenshot.png?rev=752577&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/documentation/xdocs/src/images/introduction/hello-world-screenshot.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/documentation/xdocs/src/images/introduction/simple-form-error.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/images/introduction/simple-form-error.png?rev=752577&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/documentation/xdocs/src/images/introduction/simple-form-error.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/documentation/xdocs/src/images/introduction/simple-form-success.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/images/introduction/simple-form-success.png?rev=752577&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/documentation/xdocs/src/images/introduction/simple-form-success.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/documentation/xdocs/src/images/introduction/simple-form.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/images/introduction/simple-form.png?rev=752577&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/documentation/xdocs/src/images/introduction/simple-form.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/documentation/xdocs/src/images/introduction/simple-table.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/images/introduction/simple-table.png?rev=752577&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/documentation/xdocs/src/images/introduction/simple-table.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/documentation/xdocs/src/images/pages/activity-diagram-small.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/images/pages/activity-diagram-small.png?rev=752577&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/documentation/xdocs/src/images/pages/activity-diagram-small.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/documentation/xdocs/src/images/pages/click-class-diagram.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/images/pages/click-class-diagram.png?rev=752577&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/documentation/xdocs/src/images/pages/click-class-diagram.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/documentation/xdocs/src/images/pages/get-sequence-diagram.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/images/pages/get-sequence-diagram.png?rev=752577&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/documentation/xdocs/src/images/pages/get-sequence-diagram.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/documentation/xdocs/src/images/pages/home-page-screenshot.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/images/pages/home-page-screenshot.png?rev=752577&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/documentation/xdocs/src/images/pages/home-page-screenshot.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/documentation/xdocs/src/styles/html/custom.xsl
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/styles/html/custom.xsl?rev=752577&view=auto
==============================================================================
--- incubator/click/trunk/click/documentation/xdocs/src/styles/html/custom.xsl (added)
+++ incubator/click/trunk/click/documentation/xdocs/src/styles/html/custom.xsl Wed Mar 11
18:57:21 2009
@@ -0,0 +1,238 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:fo="http://www.w3.org/1999/XSL/Format"
+                xmlns:xslthl="http://xslthl.sf.net"
+                exclude-result-prefixes="xslthl"
+                version='1.0'>
+
+  <xsl:param name="ulink.target">_blank</xsl:param>
+
+  <!-- Activate Graphics -->
+  <xsl:param name="admon.graphics" select="1"/>
+  <xsl:param name="admon.graphics.path">images/</xsl:param>
+  <xsl:param name="admon.graphics.extension">.gif</xsl:param>
+  <xsl:param name="callout.graphics" select="1" />
+  <xsl:param name="callout.graphics.path">images/callouts/</xsl:param>
+  <xsl:param name="callout.graphics.extension">.gif</xsl:param>
+  <xsl:param name="ignore.image.scaling" select="1"></xsl:param>
+
+  <xsl:param name="table.borders.with.css" select="1"/>
+  <xsl:param name="html.stylesheet">css/stylesheet.css</xsl:param>
+  <xsl:param name="html.stylesheet.type">text/css</xsl:param>
+  <xsl:param name="generate.toc">
+  book      toc,title
+  chapter   toc
+  </xsl:param>
+  <xsl:param name="toc.section.depth">5</xsl:param>
+
+  <xsl:param name="admonition.title.properties">text-align: left</xsl:param>
+
+  <!-- Label Chapters and Sections (numbering) -->
+  <xsl:param name="chapter.autolabel" select="1"/>
+  <xsl:param name="section.autolabel" select="1"/>
+  <xsl:param name="section.autolabel.max.depth" select="5"/>
+
+  <xsl:param name="section.label.includes.component.label" select="1"/>
+  <xsl:param name="table.footnote.number.format" select="'1'"/>
+
+<!-- Remove "Chapter" from the Chapter titles... -->
+  <xsl:param name="local.l10n.xml" select="document('')"/>
+  <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
+    <l:l10n language="en">
+      <l:context name="title-numbered">
+        <l:template name="chapter" text="%n.&#160;%t"/>
+        <l:template name="section" text="%n&#160;%t"/>
+      </l:context>
+    </l:l10n>
+  </l:i18n>
+
+  <!-- Override title heading to print <i> instead of <b> -->
+  <xsl:template name="formal.object.heading">
+    <xsl:param name="object" select="."/>
+    <xsl:param name="title">
+      <xsl:apply-templates select="$object" mode="object.title.markup">
+        <xsl:with-param name="allow-anchors" select="1"/>
+      </xsl:apply-templates>
+    </xsl:param>
+
+    <p class="title">
+      <i>
+        <xsl:copy-of select="$title"/>
+      </i>
+    </p>
+  </xsl:template>
+
+  <!-- Placement of titles -->
+  <xsl:param name="formal.title.placement">
+        figure after
+        example after
+        equation before
+        table before
+        procedure before
+  </xsl:param>
+
+  <!-- Remove callout column width. Default is 5% -->
+  <xsl:template match="callout">
+    <tr>
+      <xsl:call-template name="tr.attributes">
+        <xsl:with-param name="rownum">
+          <xsl:number from="calloutlist" count="callout"/>
+        </xsl:with-param>
+      </xsl:call-template>
+
+      <td valign="top" align="left">
+        <xsl:call-template name="anchor"/>
+        <xsl:call-template name="callout.arearefs">
+          <xsl:with-param name="arearefs" select="@arearefs"/>
+        </xsl:call-template>
+      </td>
+      <td valign="top" align="left">
+        <xsl:apply-templates/>
+      </td>
+    </tr>
+  </xsl:template>
+
+  <!-- For external links (<ulink>), set the class attribute to "external" -->
+  <xsl:template match="ulink" name="ulink">
+    <xsl:variable name="link">
+      <a>
+        <xsl:if test="@id">
+          <xsl:attribute name="name">
+            <xsl:value-of select="@id"/>
+          </xsl:attribute>
+        </xsl:if>
+        <xsl:attribute name="class">external</xsl:attribute>
+        <!--<xsl:attribute name="title">
+          <xsl:value-of select="@url"/>
+        </xsl:attribute>-->
+        <xsl:attribute name="href">
+          <xsl:value-of select="@url"/>
+        </xsl:attribute>
+        <xsl:if test="$ulink.target != ''">
+          <xsl:attribute name="target">
+            <xsl:value-of select="$ulink.target"/>
+          </xsl:attribute>
+        </xsl:if>
+        <xsl:choose>
+          <xsl:when test="count(child::node())=0">
+            <xsl:value-of select="@url"/>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:apply-templates/>
+          </xsl:otherwise>
+        </xsl:choose>
+      </a>
+    </xsl:variable>
+
+    <xsl:copy-of select="$link"/>
+  </xsl:template>
+
+  <!--
+  This section enables source highlighting and custom colors
+  -->
+  <xsl:param name="highlight.source" select="1"/>
+  <xsl:output indent="no"/>
+  <xsl:param name="highlight.default.language">java</xsl:param>
+
+  <!--
+  Ant will automatically replace @dbf.xsl@ with the path to
+  the config at runtime
+  -->
+  <xsl:param name="highlight.xslthl.config">file:///@dbf.xsl@/highlighting/xslthl-config.xml</xsl:param>
+
+  <xsl:template match='xslthl:keyword' mode="xslthl">
+    <span class="kwd">
+      <xsl:apply-templates mode="xslthl"/>
+    </span>
+  </xsl:template>
+
+  <xsl:template match='xslthl:string' mode="xslthl">
+    <span class="str">
+      <xsl:apply-templates mode="xslthl"/>
+    </span>
+  </xsl:template>
+
+  <xsl:template match='xslthl:comment' mode="xslthl">
+    <span class="com">
+      <xsl:apply-templates mode="xslthl"/>
+    </span>
+  </xsl:template>
+
+  <xsl:template match='xslthl:directive' mode="xslthl">
+    <span class="dec">
+      <xsl:apply-templates mode="xslthl"/>
+    </span>
+  </xsl:template>
+
+  <xsl:template match='xslthl:tag' mode="xslthl">
+    <span class="tag">
+      <xsl:apply-templates mode="xslthl"/>
+    </span>
+  </xsl:template>
+
+  <xsl:template match='xslthl:attribute' mode="xslthl">
+    <span class="atn">
+      <xsl:apply-templates mode="xslthl"/>
+    </span>
+  </xsl:template>
+
+  <xsl:template match='xslthl:value' mode="xslthl">
+    <span class="pln">
+      <xsl:apply-templates mode="xslthl"/>
+    </span>
+  </xsl:template>
+
+  <xsl:template match='xslthl:number' mode="xslthl">
+    <span class="lit">
+      <xsl:apply-templates mode="xslthl"/>
+    </span>
+  </xsl:template>
+
+  <xsl:template match='xslthl:annotation' mode="xslthl">
+    <span class="pun">
+      <xsl:apply-templates mode="xslthl"/>
+    </span>
+  </xsl:template>
+
+  <!-- Not sure which element will be in final XSLTHL 2.0 -->
+  <xsl:template match='xslthl:doccomment|xslthl:doctype' mode="xslthl">
+    <span class="com">
+      <xsl:apply-templates mode="xslthl"/>
+    </span>
+  </xsl:template>
+
+  <xsl:template match='xslthl:html' mode="xslthl">
+    <b>
+      <i style="color: red">
+        <xsl:apply-templates mode="xslthl"/>
+      </i>
+    </b>
+  </xsl:template>
+
+  <xsl:template match='xslthl:xslt' mode="xslthl">
+    <b style="color: #0066FF">
+      <xsl:apply-templates mode="xslthl"/>
+    </b>
+  </xsl:template>
+
+</xsl:stylesheet>

Added: incubator/click/trunk/click/documentation/xdocs/src/styles/html/titlepage.xml
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/styles/html/titlepage.xml?rev=752577&view=auto
==============================================================================
--- incubator/click/trunk/click/documentation/xdocs/src/styles/html/titlepage.xml (added)
+++ incubator/click/trunk/click/documentation/xdocs/src/styles/html/titlepage.xml Wed Mar
11 18:57:21 2009
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0"
+	     xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param"
+             xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<!-- ==================================================================== -->
+
+<t:titlepage t:element="book" t:wrapper="div" class="titlepage">
+  <t:titlepage-content t:side="recto">
+    <title/>
+    <subtitle/>
+    <corpauthor/>
+    <authorgroup/>
+    <author/>
+    <mediaobject/>
+    <othercredit/>
+    <releaseinfo/>
+    <copyright/>
+    <legalnotice/>
+    <pubdate/>
+    <revision/>
+    <revhistory/>
+    <abstract/>
+  </t:titlepage-content>
+
+  <t:titlepage-content t:side="verso">
+  </t:titlepage-content>
+
+  <t:titlepage-separator>
+    <hr/>
+  </t:titlepage-separator>
+
+  <t:titlepage-before t:side="recto">
+  </t:titlepage-before>
+
+  <t:titlepage-before t:side="verso">
+  </t:titlepage-before>
+</t:titlepage>
+
+</t:templates>

Added: incubator/click/trunk/click/documentation/xdocs/src/styles/pdf/custom.xsl
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/styles/pdf/custom.xsl?rev=752577&view=auto
==============================================================================
--- incubator/click/trunk/click/documentation/xdocs/src/styles/pdf/custom.xsl (added)
+++ incubator/click/trunk/click/documentation/xdocs/src/styles/pdf/custom.xsl Wed Mar 11 18:57:21
2009
@@ -0,0 +1,465 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:fo="http://www.w3.org/1999/XSL/Format"
+                xmlns:xslthl="http://xslthl.sf.net"
+                exclude-result-prefixes="xslthl"
+                version='1.0'>
+
+  <!-- Use nice graphics for admonitions -->
+  <xsl:param name="admon.graphics">'1'</xsl:param>
+  <xsl:param name="admon.graphics.path">@file.prefix@@dbf.xsl@/images/</xsl:param>
+  <xsl:param name="draft.watermark.image" select="'@file.prefix@@dbf.xsl@/images/draft.png'"/>
+  <xsl:param name="paper.type" select="'@paper.type@'"/>
+
+  <xsl:param name="page.margin.top" select="'1cm'"/>
+  <xsl:param name="region.before.extent" select="'1cm'"/>
+  <xsl:param name="body.margin.top" select="'1.5cm'"/>
+
+  <xsl:param name="body.margin.bottom" select="'1.5cm'"/>
+  <xsl:param name="region.after.extent" select="'1cm'"/>
+  <xsl:param name="page.margin.bottom" select="'1cm'"/>
+  <xsl:param name="title.margin.left" select="'0cm'"/>
+
+<!--###################################################
+                      Header
+    ################################################### -->
+
+    <!-- More space in the center header for long text -->
+  <xsl:attribute-set name="header.content.properties">
+    <xsl:attribute name="font-family">
+      <xsl:value-of select="$body.font.family"/>
+    </xsl:attribute>
+    <xsl:attribute name="margin-left">-5em</xsl:attribute>
+    <xsl:attribute name="margin-right">-5em</xsl:attribute>
+  </xsl:attribute-set>
+
+<!--###################################################
+                      Table of Contents
+    ################################################### -->
+
+  <xsl:param name="generate.toc">
+      book      toc,title
+  </xsl:param>
+
+<!--###################################################
+                      Custom Footer
+    ################################################### -->
+
+  <xsl:template name="footer.content">
+    <xsl:param name="pageclass" select="''"/>
+    <xsl:param name="sequence" select="''"/>
+    <xsl:param name="position" select="''"/>
+    <xsl:param name="gentext-key" select="''"/>
+
+    <xsl:variable name="Version">
+      <xsl:choose>
+        <xsl:when test="//productname">
+          <xsl:value-of select="//productname"/>
+          <xsl:text> </xsl:text>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:text>please define productname in your docbook file!</xsl:text>
+        </xsl:otherwise>
+      </xsl:choose>
+
+      <xsl:choose>
+        <xsl:when test="//releaseinfo">
+          <xsl:value-of select="//releaseinfo"/>
+        </xsl:when>
+        <xsl:otherwise>
+                <!-- nop -->
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+
+    <xsl:variable name="Title">
+      <xsl:value-of select="//title"/>
+    </xsl:variable>
+
+    <xsl:choose>
+      <xsl:when test="$sequence='blank'">
+        <xsl:choose>
+          <xsl:when test="$double.sided != 0 and $position = 'left'">
+            <xsl:value-of select="$Version"/>
+          </xsl:when>
+
+          <xsl:when test="$double.sided = 0 and $position = 'center'">
+                <!-- nop -->
+          </xsl:when>
+
+          <xsl:otherwise>
+            <fo:page-number/>
+          </xsl:otherwise>
+        </xsl:choose>
+      </xsl:when>
+
+      <xsl:when test="$pageclass='titlepage'">
+          <!-- nop: other titlepage sequences have no footer -->
+      </xsl:when>
+
+      <xsl:when test="$double.sided != 0 and $sequence = 'even' and $position='left'">
+        <fo:page-number/>
+      </xsl:when>
+
+      <xsl:when test="$double.sided != 0 and $sequence = 'odd' and $position='right'">
+        <fo:page-number/>
+      </xsl:when>
+
+      <xsl:when test="$double.sided = 0 and $position='right'">
+        <fo:page-number/>
+      </xsl:when>
+
+      <xsl:when test="$double.sided != 0 and $sequence = 'odd' and $position='left'">
+        <xsl:value-of select="$Version"/>
+      </xsl:when>
+
+      <xsl:when test="$double.sided != 0 and $sequence = 'even' and $position='right'">
+        <xsl:value-of select="$Version"/>
+      </xsl:when>
+
+      <xsl:when test="$double.sided = 0 and $position='left'">
+        <xsl:value-of select="$Version"/>
+      </xsl:when>
+
+      <xsl:when test="$position='center'">
+        <xsl:value-of select="$Title"/>
+      </xsl:when>
+
+      <xsl:otherwise>
+          <!-- nop -->
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+  <xsl:template match="processing-instruction('hard-pagebreak')">
+    <fo:block break-before='page'/>
+  </xsl:template>
+
+<!--###################################################
+                      Extensions
+    ################################################### -->
+
+    <!-- These extensions are required for table printing and other stuff -->
+  <xsl:param name="use.extensions">1</xsl:param>
+  <xsl:param name="tablecolumns.extension">0</xsl:param>
+
+    <!-- CLICK FOP 0.95 CHANGES START -->
+    <xsl:param name="fop1.extensions">1</xsl:param>
+    <!--<xsl:param name="fop.extensions">1</xsl:param>-->
+    <!-- CLICK FOP 0.95 CHANGES END -->
+
+<!--###################################################
+                   Paper & Page Size
+    ################################################### -->
+
+    <!-- Paper type, no headers on blank pages, no double sided printing -->
+  <xsl:param name="double.sided">0</xsl:param>
+  <xsl:param name="headers.on.blank.pages">0</xsl:param>
+  <xsl:param name="footers.on.blank.pages">0</xsl:param>
+
+<!--###################################################
+                   Fonts & Styles
+    ################################################### -->
+
+  <xsl:param name="hyphenate">false</xsl:param>
+
+    <!-- Line height in body text -->
+  <xsl:param name="line-height">1.4</xsl:param>
+
+<!--###################################################
+                   Tables
+    ################################################### -->
+
+    <!-- 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">4pt</xsl:attribute>
+    <xsl:attribute name="padding-bottom">4pt</xsl:attribute>
+  </xsl:attribute-set>
+
+    <!-- Only hairlines as frame and cell borders in tables -->
+  <xsl:param name="table.frame.border.thickness">0.1pt</xsl:param>
+  <xsl:param name="table.cell.border.thickness">0.1pt</xsl:param>
+
+<!--###################################################
+                         Labels
+    ################################################### -->
+
+    <!-- Label Chapters and Sections (numbering) -->
+  <xsl:param name="chapter.autolabel" select="1"/>
+  <xsl:param name="section.autolabel" select="1"/>
+  <xsl:param name="section.autolabel.max.depth" select="5"/>
+  <xsl:param name="toc.section.depth">5</xsl:param>
+
+  <xsl:param name="section.label.includes.component.label" select="1"/>
+  <xsl:param name="table.footnote.number.format" select="'1'"/>
+
+<!--###################################################
+                      Programlistings
+    ################################################### -->
+
+  <xsl:attribute-set name="verbatim.properties">
+    <xsl:attribute name="space-before.minimum">1em</xsl:attribute>
+    <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
+    <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
+        <!-- alef: commented out because footnotes were screwed because of it -->
+        <!--<xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+        <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+        <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>-->
+
+    <xsl:attribute name="border-color">#444444</xsl:attribute>
+    <xsl:attribute name="border-style">solid</xsl:attribute>
+    <xsl:attribute name="border-width">0.1pt</xsl:attribute>
+    <xsl:attribute name="padding-top">0.5em</xsl:attribute>
+    <xsl:attribute name="padding-left">0.5em</xsl:attribute>
+    <xsl:attribute name="padding-right">0.5em</xsl:attribute>
+    <xsl:attribute name="padding-bottom">0.5em</xsl:attribute>
+    <xsl:attribute name="margin-left">0.5em</xsl:attribute>
+    <xsl:attribute name="margin-right">0.5em</xsl:attribute>
+        <!-- CLICK FONT CHANGES START -->
+    <xsl:attribute name="font-size">8pt</xsl:attribute>
+        <!-- CLICK FONT CHANGES END -->
+  </xsl:attribute-set>
+
+    <!-- Shade (background) programlistings -->
+  <xsl:param name="shade.verbatim">1</xsl:param>
+  <xsl:attribute-set name="shade.verbatim.style">
+    <xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
+  </xsl:attribute-set>
+
+  <xsl:attribute-set name="list.block.spacing">
+    <xsl:attribute name="space-before.optimum">0.1em</xsl:attribute>
+    <xsl:attribute name="space-before.minimum">0.1em</xsl:attribute>
+    <xsl:attribute name="space-before.maximum">0.1em</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>
+
+  <xsl:attribute-set name="example.properties">
+    <xsl:attribute name="space-before.minimum">0.5em</xsl:attribute>
+    <xsl:attribute name="space-before.optimum">0.5em</xsl:attribute>
+    <xsl:attribute name="space-before.maximum">0.5em</xsl:attribute>
+    <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+    <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+    <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+    <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
+  </xsl:attribute-set>
+
+<!--###################################################
+        Title information for Figures, Examples etc.
+    ################################################### -->
+
+  <xsl:attribute-set name="formal.title.properties" use-attribute-sets="normal.para.spacing">
+    <xsl:attribute name="font-weight">normal</xsl:attribute>
+    <xsl:attribute name="font-style">italic</xsl:attribute>
+    <xsl:attribute name="font-size">
+      <xsl:value-of select="$body.font.master"/>
+      <xsl:text>pt</xsl:text>
+    </xsl:attribute>
+    <xsl:attribute name="hyphenate">false</xsl:attribute>
+    <xsl:attribute name="space-before.minimum">0.1em</xsl:attribute>
+    <xsl:attribute name="space-before.optimum">0.1em</xsl:attribute>
+    <xsl:attribute name="space-before.maximum">0.1em</xsl:attribute>
+  </xsl:attribute-set>
+
+<!--###################################################
+                         Callouts
+    ################################################### -->
+
+    <!-- don't use images for callouts -->
+  <xsl:param name="callout.graphics">0</xsl:param>
+  <xsl:param name="callout.unicode">1</xsl:param>
+
+    <!-- Place callout marks at this column in annotated areas -->
+  <xsl:param name="callout.defaultcolumn">90</xsl:param>
+
+<!--###################################################
+                          Misc
+    ################################################### -->
+
+    <!-- Placement of titles -->
+  <xsl:param name="formal.title.placement">
+        figure after
+        example after
+        equation before
+        table before
+        procedure before
+  </xsl:param>
+
+  <!-- Format Variable Lists as Blocks (prevents horizontal overflow) -->
+  <xsl:param name="variablelist.as.blocks">1</xsl:param>
+
+  <xsl:param name="body.start.indent">0pt</xsl:param>
+
+  <!-- Remove "Chapter" from the Chapter titles... -->
+  <xsl:param name="local.l10n.xml" select="document('')"/>
+  <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
+    <l:l10n language="en">
+      <l:context name="title-numbered">
+        <l:template name="chapter" text="%n.&#160;%t"/>
+        <l:template name="section" text="%n&#160;%t"/>
+      </l:context>
+      <l:context name="title">
+        <l:template name="example" text="Example&#160;%n&#160;%t"/>
+      </l:context>
+    </l:l10n>
+  </l:i18n>
+
+  <!-- Hide the URLs of external links (<ulink>) -->
+  <xsl:param name="ulink.show" select="0"></xsl:param>
+
+  <!-- Add page numbers to bookmarks (<link>) -->
+  <xsl:param name="insert.link.page.number">yes</xsl:param>
+
+  <!-- Underline hyperlinks and set <ulink> color to blue -->
+  <xsl:attribute-set name="xref.properties">
+    <xsl:attribute name="text-decoration">underline</xsl:attribute>
+    <xsl:attribute name="color">
+      <xsl:choose>
+        <xsl:when test="self::ulink">blue</xsl:when>
+        <xsl:otherwise>inherit</xsl:otherwise>
+      </xsl:choose>
+    </xsl:attribute>
+  </xsl:attribute-set>
+
+  <!-- Set table header font color to white -->
+  <xsl:template name="table.cell.block.properties">
+    <xsl:if test="ancestor::thead">
+      <xsl:attribute name="font-weight">bold</xsl:attribute>
+      <xsl:attribute name="color">white</xsl:attribute>
+    </xsl:if>
+  </xsl:template>
+
+  <!-- Customize some properties for "symbol", "varname", "command" and "token" -->
+  <xsl:template match="symbol">
+    <fo:inline color="red">
+      <xsl:apply-templates/>
+    </fo:inline>
+  </xsl:template>
+
+  <xsl:template match="command">
+    <fo:inline font-weight="bold" color="#7F0055">
+      <xsl:apply-templates/>
+    </fo:inline>
+  </xsl:template>
+
+  <xsl:template match="token">
+    <fo:inline color="maroon">
+      <xsl:apply-templates/>
+    </fo:inline>
+  </xsl:template>
+
+  <xsl:template match="varname">
+    <fo:inline color="blue">
+      <xsl:apply-templates/>
+    </fo:inline>
+  </xsl:template>
+
+  <!--
+  This section covers source highlighting customisation
+  -->
+  
+  <xsl:param name="highlight.source" select="1"/>
+  <xsl:output indent="no"/>
+  <xsl:param name="highlight.default.language">java</xsl:param>
+
+ <!--
+  Ant will automatically replace @dbf.xsl@ with the path to
+  the config at runtime
+  -->
+  <xsl:param name="highlight.xslthl.config">file:///@dbf.xsl@/highlighting/xslthl-config.xml</xsl:param>
+
+  <xsl:template match='xslthl:keyword' mode="xslthl">
+    <fo:inline font-weight="bold" color="#7F0055">
+      <xsl:apply-templates mode="xslthl"/>
+    </fo:inline>
+  </xsl:template>
+
+  <xsl:template match='xslthl:string' mode="xslthl">
+    <fo:inline color="#2A00FF">
+      <xsl:apply-templates mode="xslthl"/>
+    </fo:inline>
+  </xsl:template>
+
+  <xsl:template match='xslthl:comment' mode="xslthl">
+    <fo:inline color="#3F7F5F">
+      <xsl:apply-templates mode="xslthl"/>
+    </fo:inline>
+  </xsl:template>
+
+  <xsl:template match='xslthl:value' mode="xslthl">
+    <fo:inline color="black">
+      <xsl:apply-templates mode="xslthl"/>
+    </fo:inline>
+  </xsl:template>
+
+  <xsl:template match='xslthl:tag' mode="xslthl">
+    <fo:inline font-weight="bold" color="#000099">
+      <xsl:apply-templates mode="xslthl"/>
+    </fo:inline>
+  </xsl:template>
+
+  <xsl:template match='xslthl:attribute' mode="xslthl">
+    <fo:inline color="#009900">
+      <xsl:apply-templates mode="xslthl"/>
+    </fo:inline>
+  </xsl:template>
+
+  <xsl:template match='xslthl:char' mode="xslthl">
+    <fo:inline font-style="italic" color="yellow">
+      <xsl:apply-templates mode="xslthl"/>
+    </fo:inline>
+  </xsl:template>
+
+  <xsl:template match='xslthl:number' mode="xslthl">
+    <fo:inline color="#006666">
+      <xsl:apply-templates mode="xslthl"/>
+    </fo:inline>
+  </xsl:template>
+
+  <xsl:template match='xslthl:annotation' mode="xslthl">
+    <fo:inline color="gray">
+      <xsl:apply-templates mode="xslthl"/>
+    </fo:inline>
+  </xsl:template>
+
+  <xsl:template match='xslthl:directive' mode="xslthl">
+    <xsl:apply-templates mode="xslthl"/>
+  </xsl:template>
+
+<!-- Not sure which element will be in final XSLTHL 2.0 -->
+  <xsl:template match='xslthl:doccomment|xslthl:doctype' mode="xslthl">
+    <fo:inline color="#3F7F5F">
+      <xsl:apply-templates mode="xslthl"/>
+    </fo:inline>
+  </xsl:template>
+
+  <xsl:template match='xslthl:html' mode="xslthl">
+    <fo:inline color="green">
+      <xsl:apply-templates mode="xslthl"/>
+    </fo:inline>
+  </xsl:template>
+
+</xsl:stylesheet>

Added: incubator/click/trunk/click/documentation/xdocs/src/styles/pdf/titlepage.xml
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/styles/pdf/titlepage.xml?rev=752577&view=auto
==============================================================================
--- incubator/click/trunk/click/documentation/xdocs/src/styles/pdf/titlepage.xml (added)
+++ incubator/click/trunk/click/documentation/xdocs/src/styles/pdf/titlepage.xml Wed Mar 11
18:57:21 2009
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<!DOCTYPE t:templates [
+<!ENTITY hsize0 "10pt">
+<!ENTITY hsize1 "12pt">
+<!ENTITY hsize2 "14.4pt">
+<!ENTITY hsize3 "17.28pt">
+<!ENTITY hsize4 "20.736pt">
+<!ENTITY hsize5 "24.8832pt">
+<!ENTITY hsize0space "7.5pt"> <!-- 0.75 * hsize0 -->
+<!ENTITY hsize1space "9pt"> <!-- 0.75 * hsize1 -->
+<!ENTITY hsize2space "10.8pt"> <!-- 0.75 * hsize2 -->
+<!ENTITY hsize3space "12.96pt"> <!-- 0.75 * hsize3 -->
+<!ENTITY hsize4space "15.552pt"> <!-- 0.75 * hsize4 -->
+<!ENTITY hsize5space "18.6624pt"> <!-- 0.75 * hsize5 -->
+]>
+<t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0"
+	     xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param"
+             xmlns:fo="http://www.w3.org/1999/XSL/Format"
+             xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+  <t:titlepage t:element="book" t:wrapper="fo:block">
+    <t:titlepage-content t:side="recto">
+      <title
+	     t:named-template="division.title"
+	     param:node="ancestor-or-self::book[1]"
+	     text-align="center"
+	     font-size="&hsize5;"
+	     space-before="&hsize5space;"
+	     font-weight="bold"
+	     font-family="{$title.fontset}"/>
+      <subtitle
+		text-align="center"
+		font-size="&hsize4;"
+		space-before="&hsize4space;"
+		font-family="{$title.fontset}"/>
+
+      <corpauthor space-before="0.5em"
+                  font-size="&hsize2;"/>
+      <authorgroup space-before="0.5em"
+                   font-size="&hsize2;"/>
+      <author space-before="0.5em"
+              font-size="&hsize2;"/>
+
+    <othercredit space-before="0.5em"/>
+    <mediaobject space-before="2em" space-after="2em"/>   
+    <releaseinfo space-before="5em"/>
+    <copyright space-before="0.5em"/>
+    <legalnotice text-align="start"
+                 margin-left="0.5in"
+                 margin-right="0.5in"
+                 font-family="{$body.fontset}"/>
+    <pubdate space-before="0.5em"/>
+    <revision space-before="0.5em"/>
+    <revhistory space-before="0.5em"/>
+    <abstract space-before="0.5em"
+	      text-align="start"
+	      margin-left="0.5in"
+              margin-right="0.5in"
+              font-family="{$body.fontset}"/>
+  </t:titlepage-content>
+
+  <t:titlepage-content t:side="verso">
+  </t:titlepage-content>
+
+  <t:titlepage-separator>
+  </t:titlepage-separator>
+
+  <t:titlepage-before t:side="recto">
+  </t:titlepage-before>
+
+  <t:titlepage-before t:side="verso">
+  </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
+</t:templates>



Mime
View raw message