forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r159043 [1/2] - forrest/trunk/plugins/org.apache.forrest.plugin.fbits forrest/trunk/plugins/org.apache.forrest.plugin.views forrest/trunk/plugins/org.apache.forrest.plugin.views/resources forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates forrest/trunk/plugins/org.apache.forrest.plugin.views/src forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/classes forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images
Date Fri, 25 Mar 2005 18:51:05 GMT
Author: thorsten
Date: Fri Mar 25 10:50:59 2005
New Revision: 159043

URL: http://svn.apache.org/viewcvs?view=rev&rev=159043
Log:
Removed the fbit plugin and moved all pipes that we need to the views plugin. The views plugin will overide the skin *.html output. The plugin works with views and templates. It is not perfect yet but on the best way ;-)

Added:
    forrest/trunk/plugins/org.apache.forrest.plugin.views/
    forrest/trunk/plugins/org.apache.forrest.plugin.views/build.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.views/forrest.properties
    forrest/trunk/plugins/org.apache.forrest.plugin.views/output.xmap
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/contract.property.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/contract.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/prepare.include.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/prepare.meta.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/prepare.xhtml.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/content.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/feedback.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/fontsize.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/grouplogo.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/meta.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/nav-main-sub.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/nav-main.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/nav.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/noFt.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/pdf.link.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/pod.link.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/projectlogo.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/searchbox.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/txt-link.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/xml-link.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/classes/
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/classes/CatalogManager.properties
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/group-logo.gif   (with props)
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/group.svg
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/icon.png   (with props)
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/project-logo.gif   (with props)
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/project.svg
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/usemap.gif   (with props)
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/index.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/site.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/tabs.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/default.fv
    forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/skinconf.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.views/status.xml
Removed:
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/build.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/build.xml?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/build.xml (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/build.xml Fri Mar 25 10:50:59 2005
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+<project default="docs" basedir="." name="Forrest plugin build file">
+
+  <property name="plugin-name" value="org.apache.forrest.plugin.views"/>
+
+  <import file="../build.xml"/>
+  
+  <!-- Add any additional installation work here in the build target, for example:
+  <target name="build"
+          description="Extract the tools">
+     <unzip dest="${plugins.localDeploy-dir}/${plugin-name}/resources">
+       <fileset dir="tools">
+          <include name="pluginBionaryTools.zip"/>
+        </fileset>
+     </unzip>   
+  </target>
+  -->
+</project>
+  
+  

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/forrest.properties
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/forrest.properties?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/forrest.properties (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/forrest.properties Fri Mar 25 10:50:59 2005
@@ -0,0 +1,109 @@
+# Copyright 2002-2004 The Apache Software Foundation or its licensors,
+# as applicable.
+#
+# Licensed 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.
+
+##############
+# Properties used by forrest.build.xml for building the website
+# These are the defaults, un-comment them if you need to change them.
+##############
+
+# Prints out a summary of Forrest settings for this project
+#forrest.echo=true
+
+# Project name (used to name .war file)
+#project.name=my-project
+
+# Specifies name of Forrest skin to use
+#project.skin=tigris
+project.skin=leather-dev
+
+# comma separated list, file:// is supported
+#forrest.skins.descriptors=http://forrest.apache.org/skins/skins.xml,file:///c:/myskins/skins.xml
+
+##############
+# behavioural properties
+#project.menu-scheme=tab_attributes
+#project.menu-scheme=directories
+
+##############
+# layout properties
+
+# Properties that can be set to override the default locations
+#
+# Parent properties must be set. This usually means uncommenting
+# project.content-dir if any other property using it is uncommented
+
+#project.status=status.xml
+#project.content-dir=src/documentation
+#project.raw-content-dir=${project.content-dir}/content
+#project.conf-dir=${project.content-dir}/conf
+#project.sitemap-dir=${project.content-dir}
+#project.xdocs-dir=${project.content-dir}/content/xdocs
+#project.resources-dir=${project.content-dir}/resources
+#project.stylesheets-dir=${project.resources-dir}/stylesheets
+#project.images-dir=${project.resources-dir}/images
+#project.schema-dir=${project.resources-dir}/schema
+#project.skins-dir=${project.content-dir}/skins
+#project.skinconf=${project.content-dir}/skinconf.xml
+#project.lib-dir=${project.content-dir}/lib
+#project.classes-dir=${project.content-dir}/classes
+#project.translations-dir=${project.content-dir}/translations
+
+##############
+# validation properties
+
+# This set of properties determine if validation is performed
+# Values are inherited unless overridden.
+# e.g. if forrest.validate=false then all others are false unless set to true.
+#forrest.validate=true
+#forrest.validate.xdocs=${forrest.validate}
+#forrest.validate.skinconf=${forrest.validate}
+#forrest.validate.sitemap=${forrest.validate}
+#forrest.validate.stylesheets=${forrest.validate}
+#forrest.validate.skins=${forrest.validate}
+#forrest.validate.skins.stylesheets=${forrest.validate.skins}
+
+# *.failonerror=(true|false) - stop when an XML file is invalid
+#forrest.validate.failonerror=true
+
+# *.excludes=(pattern) - comma-separated list of path patterns to not validate
+# e.g.
+#forrest.validate.xdocs.excludes=samples/subdir/**, samples/faq.xml
+#forrest.validate.xdocs.excludes=
+
+
+##############
+# General Forrest properties
+
+# The URL to start crawling from
+#project.start-uri=linkmap.html
+# Set logging level for messages printed to the console
+# (DEBUG, INFO, WARN, ERROR, FATAL_ERROR)
+#project.debuglevel=ERROR
+# Max memory to allocate to Java
+#forrest.maxmemory=64m
+# Any other arguments to pass to the JVM. For example, to run on an X-less
+# server, set to -Djava.awt.headless=true
+#forrest.jvmargs=
+# The bugtracking URL - the issue number will be appended
+#project.bugtracking-url=http://issues.apache.org/bugzilla/show_bug.cgi?id=
+#project.bugtracking-url=http://issues.apache.org/jira/browse/
+# The issues list as rss
+#project.issues-rss-url=
+#I18n Property only works for the "forrest run" target.
+#project.i18n=true
+# The names of plugins that are required to build the project
+# comma separated list (no spaces)
+# Run "forrest available-plugins" for a list of plug-ins currently available
+project.required.plugins=org.apache.forrest.plugin.views,org.apache.forrest.plugin.projectInfo,org.apache.forrest.plugin.pdf-output

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/output.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/output.xmap?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/output.xmap (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/output.xmap Fri Mar 25 10:50:59 2005
@@ -0,0 +1,251 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+	<map:components>
+		<map:selectors>
+      <map:selector logger="sitemap.selector.exists" name="exists" src="org.apache.forrest.sourceexists.SourceExistsSelector" />
+    </map:selectors>
+    <map:generators default="file">
+      <map:generator name="directory" src="org.apache.cocoon.generation.DirectoryGenerator" />
+      <map:generator label="content" logger="sitemap.generator.jx" name="jx" pool-grow="2" pool-max="16" pool-min="2" src="org.apache.cocoon.generation.JXTemplateGenerator"/>
+    </map:generators>
+    <map:transformers default="xslt">
+      <map:transformer name="cinclude"
+        src="org.apache.cocoon.transformation.CIncludeTransformer"/>
+      <map:transformer name="xinclude"
+        src="org.apache.cocoon.transformation.XIncludeTransformer"/>
+    </map:transformers>
+    <map:serializers>
+	   <map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml" pool-grow="2" pool-max="64" pool-min="2" src="org.apache.cocoon.serialization.XMLSerializer">
+	      <!--+
+	          | You can choose from Strict, Transitional, or Frameset XHTML.
+	          | For Strict XHTML set doctype to:
+	          |   <doctype-public>-//W3C//DTD XHTML 1.0 Strict//EN</doctype-public>
+	          |   <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</doctype-system>
+	          | For Transitional XHTML set doctype to:
+	          |   <doctype-public>-//W3C//DTD XHTML 1.0 Transitional//EN</doctype-public>
+	          |   <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</doctype-system>
+	          | For Frameset XHTML set doctype to:
+	          |   <doctype-public>-//W3C//DTD XHTML 1.0 Frameset//EN</doctype-public>
+	          |   <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd</doctype-system>
+	          |
+	          | Default XHTML doctype in Cocoon is XHTML Strict. If you want to use more than one
+	          | XHTML DTD simultaneously, you can define several XHTML serializers.
+	          +-->
+	      <doctype-public>-//W3C//DTD XHTML 1.0 Strict//EN</doctype-public>
+	      <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</doctype-system>
+	      <encoding>UTF-8</encoding>
+	    </map:serializer>
+      <map:serializer name="txt" 
+			   src="org.apache.cocoon.serialization.TextSerializer"
+			   mime-type="text/plain" 
+			   logger="sitemap.serializer.text" 
+			 />
+    </map:serializers>
+  </map:components>
+
+<map:pipelines>
+
+<!--
+  This plugin has three components:
+  1. fbits - delivers contracts in form of xsl:templates
+  2. nuggets - delivers content that is used in the contracts
+  3. views - transforms the requested contracts (fbits) 
+     and populate them with the content (nuggets)
+  -->
+
+
+<!--
+  1. fbits
+  This is the template producing factory.
+  -->
+ <map:pipeline>
+  <!--
+    Resolving factory
+    Project implementation of templates have priority before default ones.
+    If no implementation can be found we use the noFt (~ - no forrest:template) implementation.
+    -->
+  <map:match pattern="resolve.contract.*">
+    <map:select type="exists">
+      <map:when test="{project:resources}/templates/{1}.ft">
+        <map:generate src="{project:resources}/templates/{1}.ft"/>
+      </map:when>
+      <map:when test="resources/templates/{1}.ft">
+        <map:generate src="resources/templates/{1}.ft"/>
+      </map:when>
+      <map:otherwise>
+        <map:generate src="resources/templates/noFt.ft"/>
+      </map:otherwise>
+    </map:select>
+    <map:serialize type="xml"/>
+  </map:match>
+  <!--
+    Get the xsl:templates of the requested contract.
+  -->
+   <map:match pattern="get.contract.*.*">
+     <map:generate src="cocoon:/resolve.contract.{1}"/>
+     <map:transform src="resources/stylesheets/contract.xsl">
+      <!--Which output format?-->
+      <map:parameter name="format" value="{2}"/>
+     </map:transform>
+     <map:serialize type="xml"/>
+   </map:match>
+<!--
+  Get the forrest:properties of the requested contract. 
+  This will determine which templates we have to call later on
+  -->
+   <map:match pattern="get.contract-meta.*">
+     <map:generate src="cocoon:/resolve.contract.{1}"/>
+     <map:transform src="resources/stylesheets/contract.property.xsl"/>
+     <map:serialize type="xml"/>
+   </map:match>
+   
+   <!--
+    Get some util-templates from the common skin.
+    -->
+   <map:match pattern="commonSite2xhtml">
+        <map:generate src="{forrest:context}/skins/common/xslt/html/site2xhtml.xsl"/>
+        <map:serialize type="xml"/>
+    </map:match>
+    <map:match pattern="dotdots">
+        <map:generate src="{forrest:context}/skins/common/xslt/html/dotdots.xsl"/>
+        <map:serialize type="xml"/>
+    </map:match>
+    <map:match pattern="pathutils">
+        <map:generate src="{forrest:context}/skins/common/xslt/html/pathutils.xsl"/>
+        <map:serialize type="xml"/>
+    </map:match>
+    <map:match pattern="renderlogo">
+        <map:generate src="{forrest:context}/skins/common/xslt/html/renderlogo.xsl"/>
+        <map:serialize type="xml"/>
+    </map:match>
+  </map:pipeline>
+<!-- END
+  1. fbits
+  -->
+<!--
+  2. nuggets
+  This is the content producing factory.
+  -->
+<!--NOTE: 
+  The current factory uses the skin producing templates (e.g. document2xhtml.xsl).
+  It is only exchanging the last step of a skin producing pipe (site2xhtml.xsl) till now.
+  This will have to be changed in the future.
+  -->  
+  <map:pipeline>
+    <map:match pattern="*.page">
+				<map:aggregate element="site">
+          <map:part src="cocoon://skinconf.xml"/>
+          <map:part src="cocoon://build-info"/>
+          <map:part src="cocoon://tab-{1}"/>
+          <map:part src="cocoon://menu-{1}"/>
+          <map:part src="cocoon://body-{1}"/>
+        </map:aggregate>
+        <map:serialize type="xml"/>
+    </map:match>
+  </map:pipeline>  
+<!-- END
+	2. nuggets
+	-->
+<!--
+  3. views
+  prepares and transforms the requested contracts (fbits) and populate them with the content (nuggets).
+  -->
+  <map:pipeline>
+  <!--
+    View config resolver
+    File specific view have priority before default ones.
+    If no view can be found we use the default one of the view plugin.
+    -->
+    <map:match pattern="prepare.view.*">
+      <map:select type="exists">
+        <!--
+          Here we will have to test, whether the requested page needs a specific view.
+          This will be assumed as soon there is a .fv
+          e.g. index.xml + index.fv
+          -->
+        <map:when test="{project:content.xdocs}{1}.fv">
+          <map:generate src="{project:content.xdocs}{1}.fv"/>
+        </map:when>
+				<!--
+          If there is no file specific view then use the default.fv of the project stored in "project.conf-dir".
+          -->
+        <map:when test="{project:conf}/default.fv">
+          <map:generate src="{project:conf}/default.fv"/>
+        </map:when>
+        <!--
+          If the above not matches then get the default view of this plugin.
+          -->
+        <map:otherwise>
+          <map:generate src="src/documentation/default.fv"/>
+        </map:otherwise>
+      </map:select>
+     	<map:serialize type="xml"/>
+    </map:match>
+    
+<!--
+  Aggregate the contract-templates requested by the view with xinclude.
+  The result is a stylesheet with all needed xsl:templates.
+  -->
+    <map:match pattern="prepare.include.*">
+      <map:generate src="cocoon:/prepare.view.{1}"/>
+      <map:transform src="resources/stylesheets/prepare.include.xsl">
+	      <map:parameter name="config-file" value="{project:skinconf}"/>
+      </map:transform>
+      <map:transform type="xinclude"/> 
+     	<map:serialize type="xml"/>
+    </map:match>
+    
+    <!--
+      Aggregate the forrest:properties requested by the *.fv.
+      The result is an aggregation of properties which defines the templates to be call.
+      -->
+    <map:match pattern="prepare.meta.*">
+      <map:generate src="cocoon:/prepare.view.{1}"/>
+      <map:transform src="resources/stylesheets/prepare.meta.xsl"/>
+      <map:transform type="xinclude"/> 
+     	<map:serialize type="xml"/>
+    </map:match>
+    <!--
+      Aggregate all contracts-templates requested by the view.
+      Create a xsl that can be used for the last step of the transformation of the view.
+  		--> 
+    <map:match pattern="prepare.xhtml.*">
+      <map:aggregate element="forrest:filter">
+        <map:part src="cocoon:/prepare.view.{1}" />
+        <map:part src="cocoon:/prepare.meta.{1}" /> 
+      </map:aggregate>
+      <map:transform src="resources/stylesheets/prepare.xhtml.xsl" >
+        <map:parameter name="request" value="{1}"/>
+      </map:transform>
+      <map:transform type="xinclude"/> 
+     	<map:serialize type="xml"/>
+    </map:match>
+<!--
+  Last processing step. 
+  Here we are overriding the default skin generation.
+  -->   
+    <map:match pattern="*.html">
+      <map:generate src="cocoon:/{0}.page"/>
+      <map:transform src="cocoon:/prepare.xhtml.{1}"/>
+     	<map:serialize type="xhtml"/>
+    </map:match>
+  </map:pipeline>
+ </map:pipelines>
+</map:sitemap>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/contract.property.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/contract.property.xsl?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/contract.property.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/contract.property.xsl Fri Mar 25 10:50:59 2005
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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 version="1.0" 
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  
+  <xsl:template match="/">
+    <xsl:apply-templates select="//forrest:template"/>
+  </xsl:template>
+
+	<xsl:template match="forrest:template">
+    <forrest:property body="{@body}" 
+      head="{@head}"
+      css="{@css}"
+      name="{@name}"/>
+	</xsl:template>
+</xsl:stylesheet>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/contract.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/contract.xsl?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/contract.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/contract.xsl Fri Mar 25 10:50:59 2005
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+<!--
+site2xml.xsl is the final stage in XML page production.  It merges HTML from
+document2html.xsl, tab2menu.xsl and book2menu.xsl, and adds the site header,
+footer, searchbar, css etc.  As input, it takes XML of the form:
+
+<elements>
+  <branding/>
+  <search/>
+  <menu/>
+  <content/>
+  <siteinfo/>
+</elements>
+
+-->
+
+<xsl:stylesheet version="1.0" 
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  
+  <xsl:param name="format"/>
+  <xsl:template match="/">
+    <xsl:copy-of select="forrest:contract/forrest:template[@format=$format]/xsl:stylesheet/*"/>
+  </xsl:template>
+</xsl:stylesheet>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/prepare.include.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/prepare.include.xsl?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/prepare.include.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/prepare.include.xsl Fri Mar 25 10:50:59 2005
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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 version="1.0" 
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"  
+  xmlns:xi="http://www.w3.org/2001/XInclude"
+  xmlns:alias="http://www.w3.org/1999/XSL/TransformAlias">
+    <xsl:namespace-alias 
+         stylesheet-prefix="alias" result-prefix="xsl"/>
+
+  <xsl:template match="/">
+    <alias:stylesheet version="1.0">
+	    <xsl:for-each select="forrest:view//forrest:contract">
+	      <xi:include href="cocoon:/get.contract.{@name}.xhtml"/>
+	    </xsl:for-each>
+    </alias:stylesheet>
+  </xsl:template>
+
+</xsl:stylesheet>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/prepare.meta.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/prepare.meta.xsl?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/prepare.meta.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/prepare.meta.xsl Fri Mar 25 10:50:59 2005
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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 version="1.0" 
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"  
+  xmlns:xi="http://www.w3.org/2001/XInclude"
+  >
+
+
+  <xsl:template match="/">
+    <forrest:properties >
+	    <xsl:for-each select="forrest:view//forrest:contract">
+	      <xi:include href="cocoon:/get.contract-meta.{@name}"/>
+	    </xsl:for-each>
+    </forrest:properties>
+  </xsl:template>
+  
+</xsl:stylesheet>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/prepare.xhtml.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/prepare.xhtml.xsl?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/prepare.xhtml.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/stylesheets/prepare.xhtml.xsl Fri Mar 25 10:50:59 2005
@@ -0,0 +1,219 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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 version="1.0" 
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"  
+  xmlns:xi="http://www.w3.org/2001/XInclude"
+  xmlns:alias="http://www.w3.org/1999/XSL/TransformAlias"
+  >
+  <xsl:namespace-alias stylesheet-prefix="alias" result-prefix="xsl"/>
+  <xsl:param name="request"/>
+  <xsl:template match="/">
+    <alias:stylesheet version="1.0">
+      <alias:import href="cocoon:/commonSite2xhtml"/>
+      <alias:import href="cocoon:/dotdots"/>
+		  <alias:import href="cocoon:/pathutils"/>
+		  <alias:import href="cocoon:/renderlogo"/>
+      <alias:include href="cocoon:/prepare.include.{$request}"/>
+			  <alias:param name="path"/>
+			  <alias:param name="request"/>
+        <alias:variable name="config" select="//skinconfig"/>
+			  <alias:variable name="minitoc-location" select="$config/toc/@location"/>
+			  <!--<alias:variable name="root">
+			    <alias:call-template name="dotdots">
+			      <alias:with-param name="path" select="$path"/>
+			    </alias:call-template>
+			  </alias:variable>-->
+			<!--
+				  <!-#- Source filename (eg 'foo.xml') of current page -#->
+			  <alias:variable name="filename">
+			    <alias:call-template name="filename">
+			      <alias:with-param name="path" select="$path"/>
+			    </alias:call-template>
+			  </alias:variable>
+			
+			  <!-#- Path of Lucene search results page (relative to $root) -#->
+			  <alias:param name="lucene-search" select="'lucene-search.html'"/>
+			
+			  <alias:variable name="filename-noext">
+			    <alias:call-template name="filename-noext">
+			      <alias:with-param name="path" select="$path"/>
+			    </alias:call-template>
+			  </alias:variable>
+			
+				<alias:variable name="skin-img-dir" select="concat(string($root), 'skin/images')"/>
+			  <alias:variable name="spacer" select="concat($root, 'skin/images/spacer.gif')"/>-->
+
+      <xsl:comment>All xhtml head elements requested by the forrest:template</xsl:comment>
+			<alias:template name="getHead">
+			  <xsl:for-each select="/*/forrest:properties/*[@head='true']">
+		      <alias:call-template name="{@name}-head" />
+			  </xsl:for-each>
+		   </alias:template>
+	    <xsl:comment>All xhtml css elements requested by the forrest:template</xsl:comment>
+			<alias:template name="getCss">
+			  <xsl:for-each select="/*/forrest:properties/*[@css='true']">
+		      <alias:call-template name="{@name}-css" />
+			  </xsl:for-each>
+		   </alias:template>
+		   	   
+       <xsl:comment>All xhtml body elements requested by the forrest:template</xsl:comment>
+			 <alias:template name="getBody">
+          <xsl:apply-templates select="/*/forrest:view"/>
+		   </alias:template>
+       <alias:template match="site">
+        <xhtml>
+      		<head>
+    				<alias:call-template name="getHead"/>
+            <style type="text/css">
+body {
+	text-align:center;
+	font-family: verdana, helvetica, sans;
+	font-size: 8pt;
+}
+img {border:0;}
+hr {border:0px; height: 1px; background-color:#ddd;}
+
+/*============Container and branding=============*/
+#container {
+	width: 750px;
+	text-align:left;
+	margin: 0 auto 12px auto;
+}
+#branding {
+	padding: 0;
+	height: 75px;
+	max-height: 75px;
+	background: url(images/header-background.gif) transparent;
+	background-repeat: no-repeat;
+	position: relative;
+}
+h1 {font-size: 36pt}
+h2 {color: blue}
+p {margin-left: 50px}
+#spacer {
+    clear:both;
+}
+<alias:call-template name="getCss"/>
+</style>
+            <!--<link rel="stylesheet" href="{$root}skin/basic.css" type="text/css" 
+                />-->
+						<title>
+                <alias:value-of select="div[@id='content']/h1"/>
+            </title>
+          </head>
+          <body onload="init()">
+            <alias:call-template name="getBody"/>
+          </body>
+         </xhtml>
+       </alias:template>
+       <alias:template name="menu">
+<alias:comment>+
+    |start Menu
+    +</alias:comment>
+   	<div id="nav">
+			<ul>
+<!--menu - inner-->	
+        <alias:for-each select = "div[@id='menu']/ul/li">
+          <alias:call-template name = "innermenuli" >
+              <alias:with-param name="id" select="concat('1.', position())"/>
+          </alias:call-template>
+        </alias:for-each>
+			</ul>
+		</div>
+	</alias:template>  
+  
+  <alias:template name="innermenuli">   
+    <alias:param name="id"/>
+    <alias:variable name="tagid">
+      <alias:choose>
+        <alias:when test="descendant-or-self::node()/li/div/@class='current'"><alias:value-of select="concat('menu_selected_',$id)"/></alias:when>
+        <alias:otherwise><alias:value-of select="concat('menu_',concat(font,$id))"/></alias:otherwise>
+      </alias:choose>
+    </alias:variable>
+    <alias:variable name="whichGroup">
+      <alias:choose>
+        <alias:when test="descendant-or-self::node()/li/div/@class='current'">currentmenuitemgroup</alias:when>
+        <alias:otherwise>menuitemgroup</alias:otherwise>
+      </alias:choose>
+    </alias:variable>
+    
+    
+    <li class="pagegroup"><strong><alias:value-of select="h1"/></strong>
+      <ul>
+        <alias:for-each select= "ul/li">
+
+          <alias:choose>
+            <alias:when test="a">
+              <li><a href="{a/@href}"><alias:value-of select="a" /></a></li>
+            </alias:when>
+            <alias:when test="div/@class='current'">
+              <li class="menupage">
+                <div class="menupagetitle"><alias:value-of select="div" /></div>
+                <alias:if test="$config/toc/@max-depth&gt;0 and contains($minitoc-location,'menu')">
+                  <li class="menupageitemgroup">
+                      <alias:for-each select = "//tocitems/tocitem">
+                        <div class="menupageitem">
+                          <alias:choose>
+                            <alias:when test="string-length(@title)>15">
+                              <a href="{@href}" title="{@title}"><alias:value-of select="substring(@title,0,20)" />...</a>
+                            </alias:when>
+                            <alias:otherwise>
+                              <a href="{@href}"><alias:value-of select="@title" /></a>
+                            </alias:otherwise>
+                          </alias:choose>
+                        </div>
+                      </alias:for-each>
+                  </li>
+                </alias:if>
+              </li>
+            </alias:when>
+            <alias:otherwise>
+              <alias:call-template name = "innermenuli">
+                 <alias:with-param name="id" select="concat($id, '.', position())"/>
+              </alias:call-template>
+            </alias:otherwise>
+          </alias:choose>
+
+        </alias:for-each>
+      </ul></li>
+  </alias:template>
+		</alias:stylesheet>
+	</xsl:template>
+	
+  <xsl:template match="forrest:view">
+    <xsl:apply-templates/>
+  </xsl:template>
+	
+	<xsl:template match="forrest:hook">
+    <div id="{@name}">
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+  
+  <xsl:template match="forrest:contract">
+    <xsl:variable name="name" select="@name"/>
+	    <xsl:apply-templates/>
+    <!--Test whether there is a body template needed-->
+    <xsl:if test="/*/forrest:properties/*[@body='true' and @name=$name]">
+	    <alias:call-template name="{@name}-body" />
+    </xsl:if>
+  </xsl:template>
+
+</xsl:stylesheet>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/content.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/content.ft?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/content.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/content.ft Fri Mar 25 10:50:59 2005
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+<forrest:contract name="content" type="nugget"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <description>
+    This functions will output the content and link.
+  </description>
+  
+  <forrest:template
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  format="xhtml" name="content" inputFormat="xsl" body="true" head="false" css="true">
+
+    <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+		  <xsl:template name="content-css">
+        /*============Main content=======================*/
+#content {
+	clear: none;
+	margin-left: 25%;
+	padding: 10px;
+	font-family: verdana, helvetica, sans;
+	font-size: 10pt;
+	max-width: 75%;
+}
+#content-pdf {
+	float: right;
+	text-decoration: none;
+}
+#content-pdf a {
+	text-decoration: none;
+}
+#content h1 {
+	font-weight: bold;
+	font-size: 16pt;
+	letter-spacing: 2px;
+	padding: 0;
+	margin: 0;
+	display: block;
+	border-bottom: 2px solid #ddd;
+	color: #9AB;
+}
+#content h2 {
+	font-weight: bold;
+	font-size: 11pt;
+	letter-spacing: 1.5px;
+	padding: 0;
+	margin: 0;
+	display: block;
+	border-bottom: 2px solid #ddd;
+	color: #567;
+	font-family: "Trebuchet MS", helvetica, sans
+}
+#content h3 {
+	font-weight: bold;
+	font-size: 10pt;
+	letter-spacing: 1px;
+	padding: 0;
+	margin: 0;
+	display: block;
+	border-bottom: 2px solid #ddd;
+	color: #567;
+	font-family: verdana, helvetica, sans
+}
+
+#content a {
+	text-decoration:underline;
+	color: #567;
+}
+#content a:hover {
+	text-decoration:none;
+	color: #678;
+}</xsl:template>   
+		  <xsl:template name="content-body">
+<xsl:comment>+
+    |start content
+    +</xsl:comment>
+ <xsl:apply-templates select="div[@id='content']"/>
+<xsl:comment>+
+    |end content
+    +</xsl:comment>
+		  </xsl:template>
+		</xsl:stylesheet>
+	</forrest:template>
+</forrest:contract>
\ No newline at end of file

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/feedback.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/feedback.ft?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/feedback.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/feedback.ft Fri Mar 25 10:50:59 2005
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+
+<forrest:contract name="feedback" type="nugget"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <description>
+    This function will output the html feedback information.
+  </description>
+
+  <forrest:template
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  format="xhtml" name="feedback" inputFormat="xsl" body="true" head="false" css="true">
+
+      <xsl:stylesheet version="1.1" 
+        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+        xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
+        
+        <xsl:template name="feedback-css">
+#feedback {
+    color: black;
+    background: #CFDCED;
+    text-align:center;
+    margin-top: 5px;
+}
+#feedback #feedbackto {
+    font-size: 90%;
+    color: black;
+}</xsl:template>
+        
+	    <xsl:template name="feedback-body">
+		    <div id="feedback">
+		      <xsl:value-of select="$config/feedback"/>
+		      <xsl:choose>
+		        <xsl:when test="$config/feedback/@href and not($config/feedback/@href='')">
+		          <a id="feedbackto">
+		            <xsl:attribute name="href">
+		              <xsl:value-of select="$config/feedback/@href"/>
+		              <xsl:value-of select="$path"/>
+		            </xsl:attribute>
+		            <xsl:value-of select="$config/feedback/@to"/>
+		          </a>
+		        </xsl:when>
+		        <xsl:otherwise>
+		          <xsl:value-of select="$config/feedback/@to"/>
+		        </xsl:otherwise>
+		      </xsl:choose>
+		    </div>
+			</xsl:template>
+    </xsl:stylesheet>
+	</forrest:template>
+</forrest:contract>
\ No newline at end of file

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/fontsize.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/fontsize.ft?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/fontsize.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/fontsize.ft Fri Mar 25 10:50:59 2005
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+<forrest:contract name="fontsize" type="nugget"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <description>
+    This function lets you change the size of the font you are using in the site with a jscript.
+  </description>
+  <forrest:template
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  format="xhtml" name="fontsize" inputFormat="xsl" body="true" head="true" css="true">
+	 	<xsl:stylesheet version="1.1" 
+        xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+			  <xsl:template name="fontsize-head">
+		      <script type="text/javascript" language="javascript" 
+			        src="{$root}skin/fontsize.js">&#160;</script>
+			  </xsl:template>
+			  
+        <xsl:template name="fontsize-css">
+.branding-trail {
+  position: relative; /* IE bugfix cont'd */
+  font-size: 70%;
+  text-align: right;
+  float: right;
+  margin: -10px 5px 0px 5px;
+  padding: 0;
+}</xsl:template>
+        
+			  <xsl:template name="fontsize-body">
+			      <script type="text/javascript">ndeSetTextSize();</script>
+			      <div class="branding-trail">
+			            Font size: 
+			              &#160;<input type="button" onclick="ndeSetTextSize('reset'); return false;" title="Reset text" class="resetfont" value="Reset"/>      
+			              &#160;<input type="button" onclick="ndeSetTextSize('decr'); return false;" title="Shrink text" class="smallerfont" value="-a"/>
+			              &#160;<input type="button" onclick="ndeSetTextSize('incr'); return false;" title="Enlarge text" class="biggerfont" value="+a"/>
+			      </div>
+			  </xsl:template>
+			
+			</xsl:stylesheet>
+	</forrest:template>
+</forrest:contract>
\ No newline at end of file

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/grouplogo.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/grouplogo.ft?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/grouplogo.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/grouplogo.ft Fri Mar 25 10:50:59 2005
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+<forrest:contract name="grouplogo" type="nugget"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <description>
+    This functions will output the grouplogo and link.
+  </description>
+  
+  <forrest:template
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  format="xhtml" name="grouplogo" inputFormat="xsl" body="true" head="false" css="true">
+
+    <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+		  
+		  <xsl:template name="grouplogo-css">
+#grouplogo {
+	height: 75px;
+	width: 150px;
+	margin-left: 25px;
+	padding: 5px;
+	float: left;
+}</xsl:template>
+		  
+		  <xsl:template name="grouplogo-body">
+		      <xsl:comment>+
+    |start group Logo
+    +</xsl:comment> 
+     <div id="grouplogo">
+          <xsl:call-template name="renderlogo">
+            <xsl:with-param name="name" select="$config/group-name"/>
+            <xsl:with-param name="url" select="$config/group-url"/>
+            <xsl:with-param name="logo" select="$config/group-logo"/>
+            <xsl:with-param name="root" select="$root"/>
+            <xsl:with-param name="description" select="$config/group-description"/>
+        </xsl:call-template>
+      </div>
+<xsl:comment>+
+    |end group Logo
+    +</xsl:comment> 
+		  </xsl:template>
+		</xsl:stylesheet>
+	</forrest:template>
+</forrest:contract>
\ No newline at end of file

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/meta.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/meta.ft?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/meta.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/meta.ft Fri Mar 25 10:50:59 2005
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+<forrest:contract name="meta" type="nugget"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <description>
+    This functions will output the html meta information.
+  </description>
+  
+  
+  <forrest:template
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  format="xhtml" name="meta" inputFormat="xsl" body="false" head="true">
+    <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+		  <xsl:template name="meta-head">
+		    <meta name="Generator" content="Apache Forrest"/>
+		    <meta name="Forrest-version">
+		      <xsl:attribute name="content">
+		        <xsl:value-of select="//info/forrest-version"/>
+		      </xsl:attribute>
+		    </meta>
+		    <meta name="Forrest-skin-name">
+		      <xsl:attribute name="content">
+		        <xsl:value-of select="//info/project-skin"/>
+		      </xsl:attribute>
+		    </meta>
+		  </xsl:template>
+		</xsl:stylesheet>
+	</forrest:template>
+</forrest:contract>
\ No newline at end of file

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/nav-main-sub.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/nav-main-sub.ft?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/nav-main-sub.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/nav-main-sub.ft Fri Mar 25 10:50:59 2005
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+<forrest:contract name="nav-main-sub" type="nugget"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <description>
+    This functions will output the nav-main-sub and link.
+  </description>
+  
+  <forrest:template
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  format="xhtml" name="nav-main-sub" inputFormat="xsl" body="true" head="false" css="true">
+
+    <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+		  <xsl:template name="nav-main-sub-css">
+
+/*============Sub-tabs===========================*/
+#nav-main-sub {
+	text-align: right;
+	margin-right: 20px;
+}</xsl:template>   
+		  <xsl:template name="nav-main-sub-body">
+		     <xsl:apply-templates select="div[@id='nav-main-sub']"/>
+		  </xsl:template>
+		</xsl:stylesheet>
+	</forrest:template>
+</forrest:contract>
\ No newline at end of file

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/nav-main.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/nav-main.ft?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/nav-main.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/nav-main.ft Fri Mar 25 10:50:59 2005
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+<forrest:contract name="nav-main" type="nugget"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <description>
+    This functions will output the nav-main and link.
+  </description>
+  
+  <forrest:template
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  format="xhtml" name="nav-main" inputFormat="xsl" body="true" head="false" css="true">
+
+    <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+		  
+		  <xsl:template name="nav-main-css">
+#branding ul {
+	position: absolute;
+	/*display: block;*/
+	bottom: 0px;
+	right: 0;
+	margin: 0;
+	padding: 0px 15px 0px 0px;
+	list-style: none;
+}
+#branding li {
+	float: right;
+	background: transparent url("images/tr-on.gif") 100% 0% no-repeat;
+	padding: 0 6px 0 0;
+	margin: 0 1px 0 0;
+	border-bottom: 1px solid #515358;
+}
+#branding ul a {
+	float: left;
+	display: block;
+	padding: 4px 4px 4px 10px;
+	background: transparent url("images/tl-on.gif") no-repeat;
+	font-weight: bold;
+	color: #fff;
+	text-decoration: none;
+}
+#branding ul li:hover a {background: url("images/tl-off.gif") no-repeat;}
+#branding ul li:hover {background: url("images/tr-off.gif") 100% 0% no-repeat;}
+
+#branding ul li.current a {background: url("images/tl-off.gif") no-repeat;}
+#branding ul li.current {background: url("images/tr-off.gif") 100% 0% no-repeat;}
+
+</xsl:template>
+		  
+		  <xsl:template name="nav-main-body">
+		     <div id="tabs">
+<xsl:comment>+
+    |start Tabs
+    +</xsl:comment>
+                <xsl:apply-templates select="ul[@id='nav-main']"/>       
+<xsl:comment>+
+    |end Tabs
+    +</xsl:comment>
+
+            </div>
+		  </xsl:template>
+		</xsl:stylesheet>
+	</forrest:template>
+</forrest:contract>
\ No newline at end of file

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/nav.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/nav.ft?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/nav.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/nav.ft Fri Mar 25 10:50:59 2005
@@ -0,0 +1,128 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+<forrest:contract name="nav" type="nugget"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <description>
+    This functions will output the nav and link.
+  </description>
+  
+  <forrest:template
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  format="xhtml" name="nav" inputFormat="xsl" body="true" head="false" css="true">
+
+    <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+		  <xsl:template name="nav-css">
+
+#nav {
+	width: 23%;
+	display: block;
+	margin: 10px 0 0 0;
+	padding: 0;
+	background: #E0E9E9;
+	float: left;
+}
+#nav ul {
+	list-style: none;
+	margin: 0;
+	padding: 0;
+	font-size: 0px;
+}
+#nav ul li a {
+	display: block;
+	width: auto;
+	padding: 6px 10px 6px 10px;
+	background: #EDF2F2;
+	text-decoration: none;
+	font-size: 10pt;
+	font-family: verdana, helvetica, sans;
+	color: #000066;
+	margin: 0;
+	border-left: 1px solid #fff;
+	border-bottom: 1px solid #ddd;
+	border-top: 1px solid #fff;
+	border-right: 1px solid #ddd;
+}
+#nav ul .menupage {
+	display: block;
+	font-weight: bold;
+	width: auto;
+	padding: 6px 10px;
+	background: #D9E4E4;
+	text-decoration: none;
+	font-size: 10pt;
+	font-family: verdana, helvetica, sans;
+	color: #000066;
+	margin: 0;
+	border-left: 1px solid #fff;
+	border-bottom: 1px solid #ddd;
+	border-top: 1px solid #fff;
+	border-right: 1px solid #ddd;
+}
+#nav ul li .menupage {
+	display: block;
+	font-weight: bold;
+	width: auto;
+	padding: 4px 8px 4px 20px;
+	background: #C9D4D4;
+	text-decoration: none;
+	font-size: 8pt;
+	font-family: verdana, helvetica, sans;
+	color: #000066;
+	margin: 0;
+	border-left: 1px solid #fff;
+	border-bottom: 1px solid #ddd;
+	border-top: 1px solid #fff;
+	border-right: 1px solid #ddd;
+}
+#nav ul strong {
+	display: block;
+	width: auto;
+	padding: 6px 10px;
+	background: #E0E9E9;
+	text-decoration: none;
+	font-size: 10pt;
+	font-family: verdana, helvetica, sans;
+	color: #000066;
+	margin: 0;
+	border-left: 1px solid #fff;
+	border-bottom: 1px solid #ddd;
+	border-top: 1px solid #fff;
+	border-right: 1px solid #ddd;
+}
+#nav ul li li a {
+	padding: 4px 8px 4px 20px;
+	margin: 0;
+	font-size: 8pt;
+}
+#nav ul li a:hover {
+	background: #E0E9E9;
+}</xsl:template>   
+		  <xsl:template name="nav-body">
+<xsl:comment>+
+    |start menu
+    +</xsl:comment>
+            <xsl:if test="div[@id='menu']/ul/li">
+              <xsl:call-template name="menu"/>
+            </xsl:if>
+<xsl:comment>+
+    |end menu
+    +</xsl:comment>
+		  </xsl:template>
+		</xsl:stylesheet>
+	</forrest:template>
+</forrest:contract>
\ No newline at end of file

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/noFt.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/noFt.ft?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/noFt.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/noFt.ft Fri Mar 25 10:50:59 2005
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+<forrest:contract xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  name="noFt" type="nugget">
+  <description>
+    This functions is a fallback when no ft is found.
+  </description>
+  
+  <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
+    format="xhtml" name="noFt" inputFormat="xsl" body="false" head="false" css="false">
+  </forrest:template>
+</forrest:contract>
\ No newline at end of file

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/pdf.link.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/pdf.link.ft?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/pdf.link.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/pdf.link.ft Fri Mar 25 10:50:59 2005
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+<forrest:contract name="pdf-fct" type="nugget"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <description>
+    This functions will output the PDF link with image.
+  </description>
+
+	<forrest:template
+  	xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  	format="xhtml" name="pdf-link" inputFormat="xsl" body="true" head="false">
+  	<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+		  <xsl:template name="pdf-body">
+		    <body>
+		      <div id="pdf" title="Portable Document Format"><a href="{$filename-noext}.pdf" class="dida">
+		        <img class="skin" src="{$skin-img-dir}/pdfdoc.gif" alt="PDF - icon"/><br/>
+		        PDF</a>
+		      </div>
+		    </body>
+		  </xsl:template>
+		
+		</xsl:stylesheet>
+	</forrest:template>
+</forrest:contract>
\ No newline at end of file

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/pod.link.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/pod.link.ft?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/pod.link.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/pod.link.ft Fri Mar 25 10:50:59 2005
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+<forrest:contract name="pod-link" type="nugget"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <description>
+    This functions will output the POD link with image.
+  </description>
+
+	<forrest:template
+  	xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  	format="xhtml" name="pod-link" inputFormat="xsl" body="true" head="false">
+    <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+		  <xsl:template name="xml-body">
+		    <body>
+		      <div class="podlink" title="Plain Old Documentation"><a href="{$filename-noext}.pod" class="dida">
+		        <img class="skin" src="{$skin-img-dir}/poddoc.png" alt="POD - icon" /><br/>
+		        POD</a>
+		      </div>
+		    </body>
+		  </xsl:template>
+		</xsl:stylesheet>
+  </forrest:template>
+</forrest:contract>
\ No newline at end of file

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/projectlogo.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/projectlogo.ft?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/projectlogo.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/projectlogo.ft Fri Mar 25 10:50:59 2005
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+<forrest:contract name="projectlogo" type="nugget"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <description>
+    This functions will output the projectlogo and link.
+  </description>
+  
+  <forrest:template
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  format="xhtml" name="projectlogo" inputFormat="xsl" body="true" head="false" css="true">
+
+    <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+		  
+		  <xsl:template name="projectlogo-css">
+#projectlogo {
+	height: 75px;
+	width: 150px;
+	padding: 5px;
+	float: left;
+}</xsl:template>
+		  
+		  <xsl:template name="projectlogo-body">
+		      <xsl:comment>+
+    |start Project Logo
+    +</xsl:comment> 
+     <div id="projectlogo">
+          <xsl:call-template name="renderlogo">
+            <xsl:with-param name="name" select="$config/project-name"/>
+            <xsl:with-param name="url" select="$config/project-url"/>
+            <xsl:with-param name="logo" select="$config/project-logo"/>
+            <xsl:with-param name="root" select="$root"/>
+            <xsl:with-param name="description" select="$config/project-description"/>
+        </xsl:call-template>
+      </div>
+<xsl:comment>+
+    |end Project Logo
+    +</xsl:comment> 
+		  </xsl:template>
+		</xsl:stylesheet>
+	</forrest:template>
+</forrest:contract>
\ No newline at end of file

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/searchbox.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/searchbox.ft?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/searchbox.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/searchbox.ft Fri Mar 25 10:50:59 2005
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+<forrest:contract name="searchbox" type="nugget"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <description>
+    This functions will output the searchbox.
+  </description>
+  
+  <forrest:template
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  format="xhtml" name="searchbox" inputFormat="xsl" body="true" head="false" css="true">
+
+    <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+		  
+		  <xsl:template name="searchbox-css">
+#searchbox {
+	padding: 8px;
+	float: right;
+	font-family: verdana, helvetica, sans;
+	font-size: 8pt;
+	font-weight: bold;
+	color: #ddddff;
+}
+#searchbox input {
+	font-size: 8pt;
+	font-family: verdana, helvetica, sans;
+}</xsl:template>
+		  
+		  <xsl:template name="searchbox-body">
+<div id="searchbox">
+<xsl:comment>+
+    |start Search
+    +</xsl:comment> 
+             <div class="searchbox-input">
+             <xsl:choose>
+              <xsl:when test="$config/search/@provider = 'lucene'">
+                <!-- Lucene search -->
+                <form method="get" action="{$root}{$lucene-search}">
+                  <input type="text" id="query" name="queryString" size="25" value="Search the site with {$config/search/@provider}:" onFocus="getBlank (this, 'Search the site with {$config/search/@provider}:');"/>
+		  &#160;
+		  <input type="submit" value="Search" name="Search"/>
+		 </form>
+	      </xsl:when>
+	      <xsl:otherwise>
+                <form class="roundtopsmall" method="get" action="http://www.google.com/search"> 
+                    <input type="hidden" 
+                    name="sitesearch" value="{$config/search/@domain}"/> 
+                    <input type="text" id="query" name="q" size="25"/>&#160; 
+                    <input type="submit" value="Search" name="Search"/> </form>
+        </xsl:otherwise>
+</xsl:choose>
+            </div>
+<xsl:comment>+
+    |end search
+    +</xsl:comment>
+    </div>
+		  </xsl:template>
+		</xsl:stylesheet>
+	</forrest:template>
+</forrest:contract>
\ No newline at end of file

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/txt-link.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/txt-link.ft?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/txt-link.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/txt-link.ft Fri Mar 25 10:50:59 2005
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+<forrest:contract name="txt-link" type="nugget"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <description>
+    This functions will output the TXT link with image and print link.
+  </description>
+  
+  <forrest:template
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  format="xhtml" name="txt-link" inputFormat="xsl" body="true" head="false">
+
+    <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+		  
+		  <xsl:template name="txt-link-body">
+	      <script type="text/javascript" language="Javascript">
+	function printit() {
+	  if (window.print) {
+	    window.focus();
+	    window.print();
+	  }
+	}
+	        </script>
+	
+	        <script type="text/javascript" language="Javascript">
+	var NS = (navigator.appName == "Netscape");
+	var VERSION = parseInt(navigator.appVersion);
+	if (VERSION > 3) {
+	  document.write('<div class="txt" title="Print this Page">');
+	  document.write('  <a href="javascript:printit()" class="dida">');
+	  document.write('    <img class="skin" src="{$skin-img-dir}/printer.gif" alt="print - icon" />');
+	  document.write('    <br />');
+	  document.write('  PRINT</a>');
+	  document.write('</div>');
+	}
+	        </script>
+		  </xsl:template>
+		</xsl:stylesheet>
+	</forrest:template>
+</forrest:contract>
\ No newline at end of file

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/xml-link.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/xml-link.ft?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/xml-link.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/resources/templates/xml-link.ft Fri Mar 25 10:50:59 2005
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+  <forrest:contract name="xml-link" type="nugget"
+    xmlns:forrest="http://apache.org/forrest/templates/1.0">
+    <description>
+      This functions will output the XML link with image.
+    </description>
+    
+    <forrest:template
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  format="xhtml" name="xml-link" inputFormat="xsl" body="true" css="true">
+      <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+			  <xsl:template name="xml-link-css">
+.xml-link {
+    position: relative; /* IE bugfix cont'd */
+    float: right;
+    margin: 0px 5px;
+    padding: 0;
+}
+.xml-link br {
+    margin-top: -10px;
+    padding-left: 1px;
+}
+.xml-link a {
+    display: block;
+    font-size: 70%;
+    text-align: center;
+    margin: 0;
+    padding: 0;
+}
+
+.xml-link img {
+    display: block;
+    height: 16px;
+    width: 16px;
+}</xsl:template>
+			  <xsl:template name="xml-link-body">
+				    <div class="xml-link" title="raw XML"><a href="{$filename-noext}.xml" class="dida">
+				      <img class="skin" src="{$skin-img-dir}/xmldoc.gif" alt="XML - icon" /><br/>
+				      XML</a>
+				    </div>
+			  </xsl:template>
+			
+			</xsl:stylesheet>
+	</forrest:template>
+</forrest:contract>
\ No newline at end of file

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/classes/CatalogManager.properties
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/classes/CatalogManager.properties?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/classes/CatalogManager.properties (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/classes/CatalogManager.properties Fri Mar 25 10:50:59 2005
@@ -0,0 +1,58 @@
+# Copyright 2002-2005 The Apache Software Foundation or its licensors,
+# as applicable.
+#
+# Licensed 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.
+
+#=======================================================================
+# CatalogManager.properties for Catalog Entity Resolver.
+#
+# This is the default properties file for your project.
+# This facilitates local configuration of application-specific catalogs.
+# If you have defined any local catalogs, then they will be loaded
+# before Forrest's core catalogs.
+#
+# See the Apache Forrest documentation:
+# http://forrest.apache.org/docs/your-project.html
+# http://forrest.apache.org/docs/validation.html
+
+# verbosity:
+# The level of messages for status/debug (messages go to standard output).
+# The setting here is for your own local catalogs.
+# The verbosity of Forrest's core catalogs is controlled via
+#  main/webapp/WEB-INF/cocoon.xconf
+#
+# The following messages are provided ...
+#  0 = none
+#  1 = ? (... not sure yet)
+#  2 = 1+, Loading catalog, Resolved public, Resolved system
+#  3 = 2+, Catalog does not exist, resolvePublic, resolveSystem
+#  10 = 3+, List all catalog entries when loading a catalog
+#    (Cocoon also logs the "Resolved public" messages.)
+verbosity=1
+
+# catalogs ... list of additional catalogs to load
+#  (Note that Apache Forrest will automatically load its own default catalog
+#  from main/webapp/resources/schema/catalog.xcat)
+# Use either full pathnames or relative pathnames.
+# pathname separator is always semi-colon (;) regardless of operating system
+# directory separator is always slash (/) regardless of operating system
+#catalogs=../resources/schema/catalog.xcat
+catalogs=
+
+# relative-catalogs
+# If false, relative catalog URIs are made absolute with respect to the
+# base URI of the CatalogManager.properties file. This setting only 
+# applies to catalog URIs obtained from the catalogs property in the
+# CatalogManager.properties file
+# Example: relative-catalogs=[yes|no]
+relative-catalogs=no

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/group-logo.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/group-logo.gif?view=auto&rev=159043
==============================================================================
Binary file - no diff available.

Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/group-logo.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/group.svg
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/group.svg?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/group.svg (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/group.svg Fri Mar 25 10:50:59 2005
@@ -0,0 +1,82 @@
+<?xml version="1.0" standalone="no"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+
+<!--
+       SVG Anteater logo
+
+To get started with SVG, I'd recommend getting the Adobe SVG plugin, and the
+xml-batik CVS module. Then have a look at the xml-batik/samples files. Use the
+SVG spec (http://www.w3.org/TR/SVG/) as a reference.
+-->
+
+<!-- See Forrest Issue: FOR-229
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
+"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"
+[
+ <!ATTLIST svg xmlns:for CDATA #FIXED "http://apache.org/forrest">
+ <!ENTITY % textExt "|for:group-name">
+ <!ELEMENT for:group-name (#PCDATA)>
+]>
+-->
+<svg xmlns="http://www.w3.org/2000/svg"
+     xmlns:xlink="http://www.w3.org/1999/xlink"
+     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+     xsl:version="1.0"
+     xmlns:for="http://apache.org/forrest"
+     width="220" height="65" >
+  <title>Anteater logo</title>
+
+  <defs>
+
+    <!--
+    <radialGradient id="radialGradient">
+      <stop style="stop-color:gold" offset="0"/>
+      <stop style="stop-color:orange" offset=".5"/>
+      <stop style="stop-color:crimson" offset="1"/>
+    </radialGradient>
+    <linearGradient id="linearGradient">
+      <stop style="stop-color:gold" offset="0"/>
+      <stop style="stop-color:orange" offset=".5"/>
+      <stop style="stop-color:crimson" offset="1"/>
+    </linearGradient>
+    -->
+
+    <linearGradient id="gradient" x1="0" y1="0" x2="0" y2="1">
+      <stop style="stop-color:white" offset="0"/>
+      <stop style="stop-color:lightgreen" offset="1"/>
+    </linearGradient>
+
+    <filter id="shadowFilter"  filterUnits="objectBoundingBox">
+      <!-- Takes the alpha channel (black outline of the text), blurs it and saves as 'blur' -->
+      <feGaussianBlur in="SourceAlpha" stdDeviation="2 2" result="blur"/>
+      <!-- Takes saved 'blur' and offsets it by 4 pixels, saves as 'offsetBlur' -->
+      <feOffset in="blur" dx="4" dy="4" result="offsetBlur"/>
+      <!-- Merges SourceGraphic (original image) and 'offsetBlur', putting the
+      former 'over' the latter, and using the merged result as the finished
+      image -->
+      <feComposite in="SourceGraphic" in2="offsetBlur" operator="over"/>
+    </filter>
+
+  </defs>
+
+  <g filter="url(#shadowFilter)" fill="url(#gradient)">
+    <text x="40%" y="60%" style="font-size:24pt; font-family:Verdana ; text-anchor: middle">
+    <for:group-name />
+    </text>
+  </g>
+</svg>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/icon.png
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/icon.png?view=auto&rev=159043
==============================================================================
Binary file - no diff available.

Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/icon.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/project-logo.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/project-logo.gif?view=auto&rev=159043
==============================================================================
Binary file - no diff available.

Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/project-logo.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/project.svg
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/project.svg?view=auto&rev=159043
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/project.svg (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/project.svg Fri Mar 25 10:50:59 2005
@@ -0,0 +1,82 @@
+<?xml version="1.0" standalone="no"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed 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.
+-->
+
+<!--
+       SVG Anteater logo
+
+To get started with SVG, I'd recommend getting the Adobe SVG plugin, and the
+xml-batik CVS module. Then have a look at the xml-batik/samples files. Use the
+SVG spec (http://www.w3.org/TR/SVG/) as a reference.
+-->
+
+<!-- See Forrest Issue: FOR-229
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
+"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"
+[
+ <!ATTLIST svg xmlns:for CDATA #FIXED "http://apache.org/forrest">
+ <!ENTITY % textExt "|for:project-name">
+ <!ELEMENT for:project-name (#PCDATA)>
+]>
+-->
+<svg xmlns="http://www.w3.org/2000/svg"
+     xmlns:xlink="http://www.w3.org/1999/xlink"
+     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+     xsl:version="1.0"
+     xmlns:for="http://apache.org/forrest"
+     width="220" height="65" >
+  <title>Anteater logo</title>
+
+  <defs>
+
+    <!--
+    <radialGradient id="radialGradient">
+      <stop style="stop-color:gold" offset="0"/>
+      <stop style="stop-color:orange" offset=".5"/>
+      <stop style="stop-color:crimson" offset="1"/>
+    </radialGradient>
+    <linearGradient id="linearGradient">
+      <stop style="stop-color:gold" offset="0"/>
+      <stop style="stop-color:orange" offset=".5"/>
+      <stop style="stop-color:crimson" offset="1"/>
+    </linearGradient>
+    -->
+
+    <linearGradient id="gradient" x1="0" y1="0" x2="0" y2="1">
+      <stop style="stop-color:white" offset="0"/>
+      <stop style="stop-color:lightgreen" offset="1"/>
+    </linearGradient>
+
+    <filter id="shadowFilter"  filterUnits="objectBoundingBox">
+      <!-- Takes the alpha channel (black outline of the text), blurs it and saves as 'blur' -->
+      <feGaussianBlur in="SourceAlpha" stdDeviation="2 2" result="blur"/>
+      <!-- Takes saved 'blur' and offsets it by 4 pixels, saves as 'offsetBlur' -->
+      <feOffset in="blur" dx="4" dy="4" result="offsetBlur"/>
+      <!-- Merges SourceGraphic (original image) and 'offsetBlur', putting the
+      former 'over' the latter, and using the merged result as the finished
+      image -->
+      <feComposite in="SourceGraphic" in2="offsetBlur" operator="over"/>
+    </filter>
+
+  </defs>
+
+  <g filter="url(#shadowFilter)" fill="url(#gradient)">
+    <text x="51%" y="75%" style="font-size:32pt; font-family:Verdana ; text-anchor: middle" >
+    <for:project-name />
+    </text>
+  </g>
+</svg>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/usemap.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.views/src/documentation/content/xdocs/images/usemap.gif?view=auto&rev=159043
==============================================================================
Binary file - no diff available.



Mime
View raw message