You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2005/04/03 03:56:03 UTC
svn commit: r159861 [2/3] -
forrest/trunk/plugins/org.apache.forrest.plugin.feeder/resources/stylesheets
forrest/trunk/plugins/org.apache.forrest.plugin.leather
forrest/trunk/plugins/org.apache.forrest.plugin.leather/resources
forrest/trunk/plugins/org.apache.forrest.plugin.leather/resources/stylesheets
forrest/trunk/plugins/org.apache.forrest.plugin.leather/resources/templates
forrest/trunk/plugins/org.apache.forrest.plugin.leather/src
forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation
forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/classes
forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content
forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs
forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/feeds
forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images
forrest/trunk/plugins/org.apache.forrest.plugin.view
forrest/trunk/plugins/org.apache.forrest.plugin.view/resources
forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/screenshots
forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets
forrest/trunk/plugins/org.apache.forrest.plugin.view/src
forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation
forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/classes
forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content
forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs
forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs/feeds
forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs/images
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.leather/resources/templates/xml-link.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/classes/CatalogManager.properties
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/classes/CatalogManager.properties?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/classes/CatalogManager.properties (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/classes/CatalogManager.properties Sat Apr 2 17:55:54 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
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/classes/CatalogManager.properties
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/commands.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/commands.xml?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/commands.xml (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/commands.xml Sat Apr 2 17:55:54 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.
+-->
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
+<document>
+ <header>
+ <title>View commands</title>
+ </header>
+ <body>
+ <section>
+ <title>ls - list directory contents</title>
+ <dl>
+ <dt><a href="/ls.contracts">ls.contracts</a></dt>
+ <dd>list the default contracts as xml</dd>
+ <dt><a href="/ls.contracts.l">ls.contracts.l</a></dt>
+ <dd>transform the dir-list (ls.contrcats) and add more information about usage</dd>
+ <dt><a href="/ls.contracts.project">ls.contracts.project</a> <strong>NOT working in views plugin</strong> </dt>
+ <dd>list the project specific contracts as xml</dd>
+ <dt><a href="/ls.contracts.project.l">ls.contracts.project.l</a> <strong>NOT working in views plugin</strong></dt>
+ <dd>transform the dir-list (ls.contrcats.project) and add more information about usage</dd>
+ </dl>
+ </section>
+ </body>
+</document>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/commands.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/feeds/default.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/feeds/default.xml?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/feeds/default.xml (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/feeds/default.xml Sat Apr 2 17:55:54 2005
@@ -0,0 +1,25 @@
+<?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.
+-->
+<feedDescriptor>
+ <feed id="shows">
+ <url>http://m11.btefnet.net/torrents/backend.xml</url>
+ </feed>
+ <feed id="sf">
+ <url>http://sourceforge.net/export/rss2_projnews.php?group_id=96589</url>
+ </feed>
+</feedDescriptor>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/feeds/default.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/group-logo.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/group-logo.gif?view=auto&rev=159861
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/group-logo.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/group.svg
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/group.svg?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/group.svg (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/group.svg Sat Apr 2 17:55:54 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>
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/group.svg
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/icon.png
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/icon.png?view=auto&rev=159861
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/icon.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/project-logo.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/project-logo.gif?view=auto&rev=159861
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/project-logo.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/project.svg
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/project.svg?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/project.svg (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/project.svg Sat Apr 2 17:55:54 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>
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/project.svg
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/usemap.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/usemap.gif?view=auto&rev=159861
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/images/usemap.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/index.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/index.xml?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/index.xml (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/index.xml Sat Apr 2 17:55:54 2005
@@ -0,0 +1,194 @@
+<?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.
+-->
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
+<document>
+ <header>
+ <title>Welcome to the org.apache.forrest.plugin.views Plugin</title>
+ </header>
+ <body>
+ <section>
+ <title>Apache Forrest - org.apache.forrest.plugin.views Plugin</title>
+ <source>
+How it works
+************
+
+(taken from SOME comments of the output.xmap of views)
+
+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 - prepares and transforms the requested contracts (fbits)
+ and populate them with the content (nuggets)
+
+1. fbits
+ This is the template producing factory.
+
+a. <![CDATA[<map:match pattern="resolve.contract.*">]]> -> 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.
+
+b. <![CDATA[<map:match pattern="get.contract.*.*">]]>
+Get the xsl:templates of the requested contract and specific format.
+
+c. <![CDATA[<map:match pattern="get.contract-property.*">]]>
+Get the forrest:properties of the requested contract.
+This will determine which templates (css, head, body) we have to call
+later on
+
+GENERAL:
+Contracts are stored in forrest:templates ({contract-name}.ft) please
+have look on
+plugins/org.apache.forrest.plugin.views/resources/templates/*.ft do get
+an idea how your own implementation have to look like.
+
+
+2. nuggets
+ This is the content producing factory.
+
+NOTE: <![CDATA[<map:match pattern="*.page">]]>
+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.
+
+
+3. views
+ prepares and transforms the requested contracts (fbits) and populate
+them with the content (nuggets).
+
+a. <![CDATA[<map:match pattern="prepare.view.*">]]> -> View config resolver
+File specific views have priority before default ones.
+If no view can be found in the project we use the default one of the
+views plugin.
+
+b. <![CDATA[<map:match pattern="prepare.include.*"> ]]>
+Aggregate the contract-templates requested by the view with xinclude.
+The result is a stylesheet with all needed xsl:templates.
+
+c. <![CDATA[<map:match pattern="prepare.properties.*">]]>
+Aggregate the forrest:properties requested by the *.fv.
+The result is an aggregation of properties which defines the templates
+to be call.
+
+d. <![CDATA[<map:match pattern="prepare.xhtml.*">]]>
+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.
+
+e. <![CDATA[<map:match pattern="*.html"> ]]>-> Last processing step.
+Here we are overriding the default skin generation.
+
+GENERAL:
+Views are stored in forrest:view ({file-name}.fv) please have look on
+plugins/org.apache.forrest.plugin.views/src/documentation/default.fv do
+get an idea how your own implementation have to look like.
+
+Known issues
+************
+- The generation of the linking is not working.
+- Menu /innermenu templates are added directly. Add support for
+additional templates support.
+- Uses resources of leather (document2html.xsl defines the pdf/xml/...
+link this have to be done by the template).
+- The views are only working for html so far
+- The css support and implementation is VERY basic
+- Only first level files are working
+- ...
+
+Resume
+******
+The views plugin can be seen as prototype for the next generation
+skinning of forrest. It is still in early stage but with the cleanup I
+hope to make it easier for all devs (not only committer) to get the idea
+and help to enhance it.
+
+Some basic and simple hints:
+a) If you want another implementation of a contract then create a folder
+"templates" in ${project.resources-dir} and it will be matched before
+the standard implementation.
+
+e.g. feedback contract:
+<![CDATA[
+<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"> Modified project implementation
+<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>
+]]>
+The @attributes (body="true" head="false" css="true") of the
+forrest:template defining which parts of the html page (head, head-css
+and body) we have to render. The xsl:templates are following the simple
+naming convention {@name}-(css|head|body).
+
+
+b. If you want a default view for your project then copy the default.fv
+from the plugin to your ${project.conf-dir} and modify this file. When
+you want another view for a specific file (e.g. index.html) then copy
+the default.fv to your ${project.xdocs-dir} and renamed it to e.g.
+index.fv.
+ </source>
+ </section>
+ </body>
+</document>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/index.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/site.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/site.xml?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/site.xml (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/site.xml Sat Apr 2 17:55:54 2005
@@ -0,0 +1,61 @@
+<?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.
+-->
+
+<!--
+Forrest site.xml
+
+This file contains an outline of the site's information content. It is used to:
+- Generate the website menus (though these can be overridden - see docs)
+- Provide semantic, location-independent aliases for internal 'site:' URIs, eg
+<link href="site:changes"> links to changes.html (or ../changes.html if in
+ subdir).
+- Provide aliases for external URLs in the external-refs section. Eg, <link
+ href="ext:cocoon"> links to http://cocoon.apache.org/
+
+See http://forrest.apache.org/docs/linking.html for more info
+-->
+
+<site label="org.apache.forrest.plugin.views" href="" xmlns="http://apache.org/forrest/linkmap/1.0" tab="">
+
+ <about label="About">
+ <index label="Index" href="index.html" description="Welcome to org.apache.forrest.plugin.views"/>
+ <commands label="commands" href="commands.html" description="All commands of this plugin"/>
+ <changes label="Changes" href="changes.html" description="History of Changes" />
+ <todo label="Todo" href="todo.html" description="Todo List" />
+ </about>
+
+ <!--
+ The href must be wholesite.html/pdf You can change the labels and node names
+ <all label="All">
+ <whole_site_html label="Whole Site HTML" href="wholesite.html"/>
+ <whole_site_pdf label="Whole Site PDF" href="wholesite.pdf"/>
+ </all>
+ -->
+
+ <external-refs>
+ <forrest href="http://forrest.apache.org/">
+ <linking href="docs/linking.html"/>
+ <validation href="docs/validation.html"/>
+ <webapp href="docs/your-project.html#webapp"/>
+ <dtd-docs href="docs/dtd-docs.html"/>
+ </forrest>
+ <cocoon href="http://cocoon.apache.org/"/>
+ <xml.apache.org href="http://xml.apache.org/"/>
+ </external-refs>
+
+</site>
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/tabs.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/tabs.xml?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/tabs.xml (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/tabs.xml Sat Apr 2 17:55:54 2005
@@ -0,0 +1,42 @@
+<?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.
+-->
+<!DOCTYPE tabs PUBLIC "-//APACHE//DTD Cocoon Documentation Tab V1.1//EN" "http://forrest.apache.org/dtd/tab-cocoon-v11.dtd">
+
+<tabs software="MyProj"
+ title="MyProj"
+ copyright="Foo"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+
+ <!-- The rules for tabs are:
+ @dir will always have '/@indexfile' added.
+ @indexfile gets appended to @dir if the tab is selected. Defaults to 'index.html'
+ @href is not modified unless it is root-relative and obviously specifies a
+ directory (ends in '/'), in which case /index.html will be added
+ If @id's are present, site.xml entries with a matching @tab will be in that tab.
+
+ Tabs can be embedded to a depth of two. The second level of tabs will only
+ be displayed when their parent tab is selected.
+ -->
+
+ <tab id="" label="Home" dir="" indexfile="index.html"/>
+ <!-- Add new tabs here, eg:
+ <tab label="How-Tos" dir="community/howto/"/>
+ <tab label="XML Site" dir="xml-site/"/>
+ -->
+
+</tabs>
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/content/xdocs/tabs.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/skinconf.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/skinconf.xml?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/skinconf.xml (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/skinconf.xml Sat Apr 2 17:55:54 2005
@@ -0,0 +1,351 @@
+<?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.
+-->
+
+<!--
+Skin configuration file. This file contains details of your project,
+which will be used to configure the chosen Forrest skin.
+-->
+
+<!DOCTYPE skinconfig PUBLIC "-//APACHE//DTD Skin Configuration V0.6-3//EN" "http://forrest.apache.org/dtd/skinconfig-v06-3.dtd">
+<skinconfig>
+ <!-- To enable lucene search add provider="lucene" (default is google).
+ Add box-location="alt" to move the search box to an alternate location
+ (if the skin supports it) and box-location="all" to show it in all
+ available locations on the page. Remove the <search> element to show
+ no search box. @domain will enable sitesearch for the specific domain with google.
+ In other words google will search the @domain for the query string.
+ -->
+ <search name="org.apache.forrest.plugin.leather Plugin" domain="mydomain" provider="google"/>
+
+ <!-- Disable the print link? If enabled, invalid HTML 4.0.1 -->
+ <disable-print-link>true</disable-print-link>
+ <!-- Disable the PDF link? -->
+ <disable-pdf-link>false</disable-pdf-link>
+ <!-- Disable the POD link? -->
+ <disable-pod-link>true</disable-pod-link>
+ <!-- Disable the Text link? FIXME: NOT YET IMPLEMENETED. -->
+ <disable-txt-link>true</disable-txt-link>
+ <!-- Disable the xml source link? -->
+ <!-- The xml source link makes it possible to access the xml rendition
+ of the source frim the html page, and to have it generated statically.
+ This can be used to enable other sites and services to reuse the
+ xml format for their uses. Keep this disabled if you don't want other
+ sites to easily reuse your pages.-->
+ <disable-xml-link>true</disable-xml-link>
+
+ <!-- Disable navigation icons on all external links? -->
+ <disable-external-link-image>false</disable-external-link-image>
+
+ <!-- Disable w3c compliance links?
+ Use e.g. align="center" to move the compliance links logos to
+ an alternate location default is left.
+ (if the skin supports it) -->
+ <disable-compliance-links>false</disable-compliance-links>
+
+ <!-- Render mailto: links unrecognisable by spam harvesters? -->
+ <obfuscate-mail-links>true</obfuscate-mail-links>
+ <obfuscate-mail-value>.at.</obfuscate-mail-value>
+
+ <!-- Disable the javascript facility to change the font size -->
+ <disable-font-script>true</disable-font-script>
+
+ <!-- mandatory project logo
+ default skin: renders it at the top -->
+ <project-name>org.apache.forrest.plugin.leather</project-name>
+ <project-description>org.apache.forrest.plugin.leather plugin for Apache Forrest</project-description>
+ <project-url>http://myproj.mygroup.org/</project-url>
+ <project-logo>images/project.png</project-logo>
+ <!-- Alternative static image:
+ <project-logo>images/project-logo.gif</project-logo> -->
+
+ <!-- optional group logo
+ default skin: renders it at the top-left corner -->
+ <group-name>MyGroup</group-name>
+ <group-description>MyGroup Description</group-description>
+ <group-url>http://mygroup.org</group-url>
+ <group-logo>images/group.png</group-logo>
+ <!-- Alternative static image:
+ <group-logo>images/group-logo.gif</group-logo> -->
+
+ <!-- optional host logo (e.g. sourceforge logo)
+ default skin: renders it at the bottom-left corner -->
+ <host-url></host-url>
+ <host-logo></host-logo>
+
+ <!-- relative url of a favicon file, normally favicon.ico -->
+ <favicon-url></favicon-url>
+
+ <!-- The following are used to construct a copyright statement -->
+ <year>2004</year>
+ <vendor>The Acme Software Foundation.</vendor>
+ <!-- The optional copyright-link URL will be used as a link in the
+ copyright statement
+ <copyright-link>http://www.apache.org/licenses/</copyright-link>
+ -->
+
+ <!-- Some skins use this to form a 'breadcrumb trail' of links.
+ Use location="alt" to move the trail to an alternate location
+ (if the skin supports it).
+ Omit the location attribute to display the trail in the default location.
+ Use location="none" to not display the trail (if the skin supports it).
+ For some skins just set the attributes to blank.
+ -->
+ <trail>
+ <link1 name="Apache Forrest" href="http://forrest.apache.org/"/>
+ <link2 name="org.apache.forrest.plugin.leather" href="http://forrest.apache.org/plugins/org.apache.forrest.plugin.leather"/>
+ <link3 name="" href=""/>
+ </trail>
+
+ <!-- Configure the TOC, i.e. the Table of Contents.
+ @max-depth
+ how many "section" levels need to be included in the
+ generated Table of Contents (TOC).
+ @min-sections
+ Minimum required to create a TOC.
+ @location ("page","menu","page,menu", "none")
+ Where to show the TOC.
+ -->
+ <toc max-depth="2" min-sections="1" location="page"/>
+
+ <!-- Heading types can be clean|underlined|boxed -->
+ <headings type="boxed"/>
+
+ <!-- The optional feedback element will be used to construct a
+ feedback link in the footer with the page pathname appended:
+ <a href="@href">{@to}</a>
+ -->
+ <feedback to="webmaster@foo.com"
+ href="mailto:webmaster@foo.com?subject=Feedback " >
+ Send feedback about the website to:
+ </feedback>
+ <!--
+ extra-css - here you can define custom css-elements that are
+ a. overriding the fallback elements or
+ b. adding the css definition from new elements that you may have
+ used in your documentation.
+ -->
+ <extra-css>
+ <!--Example of b.
+ To define the css definition of a new element that you may have used
+ in the class attribute of a <p> node.
+ e.g. <p class="quote"/>
+ -->
+ p.quote {
+ margin-left: 2em;
+ padding: .5em;
+ background-color: #f0f0f0;
+ font-family: monospace;
+ }
+ </extra-css>
+
+ <colors>
+ <!-- These values are used for the generated CSS files. -->
+
+ <!-- Krysalis -->
+<!--
+ <color name="header" value="#FFFFFF"/>
+
+ <color name="tab-selected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="tab-unselected" value="#F7F7F7" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-selected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-unselected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
+
+ <color name="heading" value="#a5b6c6"/>
+ <color name="subheading" value="#CFDCED"/>
+
+ <color name="navstrip" value="#CFDCED" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="toolbox" value="#a5b6c6"/>
+ <color name="border" value="#a5b6c6"/>
+
+ <color name="menu" value="#F7F7F7" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="dialog" value="#F7F7F7"/>
+
+ <color name="body" value="#ffffff" link="#0F3660" vlink="#009999" hlink="#000066"/>
+
+ <color name="table" value="#a5b6c6"/>
+ <color name="table-cell" value="#ffffff"/>
+ <color name="highlight" value="#ffff00"/>
+ <color name="fixme" value="#cc6600"/>
+ <color name="note" value="#006699"/>
+ <color name="warning" value="#990000"/>
+ <color name="code" value="#a5b6c6"/>
+
+ <color name="footer" value="#a5b6c6"/>
+-->
+
+ <!-- Forrest -->
+<!--
+ <color name="header" value="#294563"/>
+
+ <color name="tab-selected" value="#4a6d8c" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
+ <color name="tab-unselected" value="#b5c7e7" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
+ <color name="subtab-selected" value="#4a6d8c" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
+ <color name="subtab-unselected" value="#4a6d8c" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
+
+ <color name="heading" value="#294563"/>
+ <color name="subheading" value="#4a6d8c"/>
+
+ <color name="navstrip" value="#cedfef" font="#0F3660" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
+ <color name="toolbox" value="#4a6d8c"/>
+ <color name="border" value="#294563"/>
+
+ <color name="menu" value="#4a6d8c" font="#cedfef" link="#ffffff" vlink="#ffffff" hlink="#ffcf00"/>
+ <color name="dialog" value="#4a6d8c"/>
+
+ <color name="body" value="#ffffff" link="#0F3660" vlink="#009999" hlink="#000066"/>
+
+ <color name="table" value="#7099C5"/>
+ <color name="table-cell" value="#f0f0ff"/>
+ <color name="highlight" value="#ffff00"/>
+ <color name="fixme" value="#cc6600"/>
+ <color name="note" value="#006699"/>
+ <color name="warning" value="#990000"/>
+ <color name="code" value="#CFDCED"/>
+
+ <color name="footer" value="#cedfef"/>
+-->
+
+ <!-- Collabnet -->
+<!--
+ <color name="header" value="#003366"/>
+
+ <color name="tab-selected" value="#dddddd" link="#555555" vlink="#555555" hlink="#555555"/>
+ <color name="tab-unselected" value="#999999" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
+ <color name="subtab-selected" value="#cccccc" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-unselected" value="#cccccc" link="#555555" vlink="#555555" hlink="#555555"/>
+
+ <color name="heading" value="#003366"/>
+ <color name="subheading" value="#888888"/>
+
+ <color name="navstrip" value="#dddddd" font="#555555"/>
+ <color name="toolbox" value="#dddddd" font="#555555"/>
+ <color name="border" value="#999999"/>
+
+ <color name="menu" value="#ffffff"/>
+ <color name="dialog" value="#eeeeee"/>
+
+ <color name="body" value="#ffffff"/>
+
+ <color name="table" value="#ccc"/>
+ <color name="table-cell" value="#ffffff"/>
+ <color name="highlight" value="#ffff00"/>
+ <color name="fixme" value="#cc6600"/>
+ <color name="note" value="#006699"/>
+ <color name="warning" value="#990000"/>
+ <color name="code" value="#003366"/>
+
+ <color name="footer" value="#ffffff"/>
+-->
+ <!-- Lenya using pelt-->
+<!--
+
+ <color name="header" value="#ffffff"/>
+
+ <color name="tab-selected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="tab-unselected" value="#F5F4E9" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-selected" value="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+
+ <color name="heading" value="#E5E4D9"/>
+ <color name="subheading" value="#000000"/>
+ <color name="published" value="#000000"/>
+ <color name="navstrip" value="#E5E4D9" font="#000000"/>
+ <color name="toolbox" value="#CFDCED" font="#000000"/>
+ <color name="border" value="#999999"/>
+
+ <color name="menu" value="#E5E4D9" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="dialog" value="#CFDCED"/>
+ <color name="body" value="#ffffff" />
+
+ <color name="table" value="#ccc"/>
+ <color name="table-cell" value="#ffffff"/>
+ <color name="highlight" value="#ffff00"/>
+ <color name="fixme" value="#cc6600"/>
+ <color name="note" value="#006699"/>
+ <color name="warning" value="#990000"/>
+ <color name="code" value="#003366"/>
+
+ <color name="footer" value="#E5E4D9"/>
+-->
+ </colors>
+
+ <!-- Settings specific to PDF output. -->
+ <pdf>
+ <!--
+ Supported page sizes are a0, a1, a2, a3, a4, a5, executive,
+ folio, legal, ledger, letter, quarto, tabloid (default letter).
+ Supported page orientations are portrait, landscape (default
+ portrait).
+ Supported text alignments are left, right, justify (default left).
+ -->
+ <page size="letter" orientation="portrait" text-align="left"/>
+
+ <!--
+ Margins can be specified for top, bottom, inner, and outer
+ edges. If double-sided="false", the inner edge is always left
+ and the outer is always right. If double-sided="true", the
+ inner edge will be left on odd pages, right on even pages,
+ the outer edge vice versa.
+ Specified below are the default settings.
+ -->
+ <margins double-sided="false">
+ <top>1in</top>
+ <bottom>1in</bottom>
+ <inner>1.25in</inner>
+ <outer>1in</outer>
+ </margins>
+
+ <!--
+ Print the URL text next to all links going outside the file
+ -->
+ <show-external-urls>false</show-external-urls>
+
+ <!--
+ Disable the copyright footer on each page of the PDF.
+ A footer is composed for each page. By default, a "credit" with role=pdf
+ will be used, as explained below. Otherwise a copyright statement
+ will be generated. This latter can be disabled.
+ -->
+ <disable-copyright-footer>false</disable-copyright-footer>
+ </pdf>
+
+ <!-- Credits are typically rendered as a set of small clickable
+ images in the page footer.
+ Use box-location="alt" to move the credit to an alternate location
+ (if the skin supports it).
+ -->
+ <credits>
+ <credit box-location="alt">
+ <name>Built with Apache Forrest</name>
+ <url>http://forrest.apache.org/</url>
+ <image>images/built-with-forrest-button.png</image>
+ <width>88</width>
+ <height>31</height>
+ </credit>
+ <!-- A credit with @role="pdf" will be used to compose a footer
+ for each page in the PDF, using either "name" or "url" or both.
+ -->
+ <!--
+ <credit role="pdf">
+ <name>Built with Apache Forrest</name>
+ <url>http://forrest.apache.org/</url>
+ </credit>
+ -->
+ </credits>
+
+</skinconfig>
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.leather/src/documentation/skinconf.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.leather/status.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.leather/status.xml?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.leather/status.xml (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.leather/status.xml Sat Apr 2 17:55:54 2005
@@ -0,0 +1,48 @@
+<?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.
+-->
+<status>
+
+ <developers>
+ <person name="Ross Gardler" email="rgardler@apache.org" id="RDG" />
+ <person name="Volunteer needed" email="dev@forrest.apache.org" id="open"/>
+ </developers>
+
+ <changes>
+ <!-- Add new releases here -->
+ <release version="0.1" date="unreleased">
+ <action dev="RDG" type="add" context="admin">
+ Initial plugin code.
+ </action>
+ </release>
+ </changes>
+
+ <todo>
+ <actions priority="high">
+ <action context="docs" dev="open">
+ Customize this template plugin with your plugin's details. This
+ TODO list is generated from 'status.xml'.
+ </action>
+ <action context="docs" dev="open">
+ Create the documentation with lots of examples and samples.
+ XML content goes in
+ <code>src/documentation/content/xdocs</code>.
+ </action>
+ </actions>
+ </todo>
+
+</status>
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.leather/status.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.view/build.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.view/build.xml?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.view/build.xml (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.view/build.xml Sat Apr 2 17:55:54 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.view"/>
+
+ <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>
+
+
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.view/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.view/forrest.properties
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.view/forrest.properties?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.view/forrest.properties (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.view/forrest.properties Sat Apr 2 17:55:54 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=pelt
+
+# 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.plugins.view,org.apache.forrest.plugin.projectInfo,org.apache.forrest.plugin.pdf-output
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.view/forrest.properties
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.view/internal.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.view/internal.xmap?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.view/internal.xmap (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.view/internal.xmap Sat Apr 2 17:55:54 2005
@@ -0,0 +1,198 @@
+<?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 x components:
+ 2. nuggets - delivers content that is used in the contracts
+ 3. views - transforms the requested contracts (fbits)
+ and populate them with the content (nuggets)
+ -->
+
+
+<!--
+ 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}.html"/>
+ <map:part src="cocoon://menu-{1}.html"/>
+ <map:part src="cocoon://body-{1}.html"/>
+ <map:part src="cocoon:/prepare.view-nugget.{1}"/>
+ </map:aggregate>
+ <map:serialize type="xml"/>
+ </map:match>
+ <map:match pattern="**/*.page">
+ <map:aggregate element="site">
+ <map:part src="cocoon://skinconf.xml"/>
+ <map:part src="cocoon://build-info"/>
+ <map:part src="cocoon://{1}/tab-{2}.html"/>
+ <map:part src="cocoon://{1}/menu-{2}.html"/>
+ <map:part src="cocoon://{1}/body-{2}.html"/>
+ <map:part src="cocoon:/prepare.view-nugget.{2}"/>
+ </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 views have priority before default ones.
+ If no views can be found in the project 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>
+
+ <!--Add nuggets to the view that the content can be used later on.-->
+ <map:match pattern="prepare.view-nugget.*">
+ <map:generate src="cocoon:/prepare.view.{1}"/>
+ <map:transform src="resources/stylesheets/prepare.view.xsl">
+ <map:parameter name="view" value="{1}"/>
+ </map:transform>
+ <map:transform type="xinclude"/>
+ <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.properties.*">
+ <map:generate src="cocoon:/prepare.view.{1}"/>
+ <map:transform src="resources/stylesheets/prepare.properties.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.properties.{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>
+
+ </map:pipeline>
+ </map:pipelines>
+</map:sitemap>
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.view/internal.xmap
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/screenshots/index.html.png
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/screenshots/index.html.png?view=auto&rev=159861
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/screenshots/index.html.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/nugget.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/nugget.xsl?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/nugget.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/nugget.xsl Sat Apr 2 17:55:54 2005
@@ -0,0 +1,52 @@
+<?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:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
+ <xsl:strip-space elements="forrest:properties"/>
+ <xsl:param name="contract"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="forrest:property[@name=$contract]">
+ <xsl:comment> properties <xsl:value-of select="$contract"/> </xsl:comment>
+ <xsl:copy-of select="*"/>
+ </xsl:template>
+
+ <xsl:template match="forrest:property"/>
+
+</xsl:stylesheet>
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/nugget.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.include.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.include.xsl?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.include.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.include.xsl Sat Apr 2 17:55:54 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>
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.include.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.properties.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.properties.xsl?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.properties.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.properties.xsl Sat Apr 2 17:55:54 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-property.{@name}"/>
+ </xsl:for-each>
+ </forrest:properties>
+ </xsl:template>
+
+</xsl:stylesheet>
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.properties.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.view.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.view.xsl?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.view.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.view.xsl Sat Apr 2 17:55:54 2005
@@ -0,0 +1,46 @@
+<?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:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
+ <xsl:strip-space elements="forrest:property"/>
+
+ <xsl:param name="view"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="forrest:property[@nugget]">
+ <forrest:property name="{@name}"><xi:include href="cocoon://{url}"/></forrest:property>
+ </xsl:template>
+
+ <xsl:template match="@*|*|text()|processing-instruction()|comment()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|*|text()|processing-instruction()|comment()"/>
+ </xsl:copy>
+ </xsl:template>
+
+
+</xsl:stylesheet>
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.view.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.xhtml.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.xhtml.xsl?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.xhtml.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.xhtml.xsl Sat Apr 2 17:55:54 2005
@@ -0,0 +1,135 @@
+<?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"/>
+ <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: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"/>
+
+ <!--Test whether there is a body template needed-->
+ <xsl:if test="/*/forrest:properties/*[@body='true' and @name=$name]">
+ <!--If next son is not forrest:properties go on-->
+ <xsl:choose>
+ <xsl:when test="not(forrest:properties[@contract=$name])">
+ <xsl:apply-templates/>
+ <alias:call-template name="{@name}-body" />
+ </xsl:when>
+ <xsl:when test="forrest:properties[@contract=$name]">
+ <alias:call-template name="{@name}-body" >
+ <xsl:for-each select="forrest:properties[@contract=$name]/forrest:property">
+ <alias:with-param name="{@name}" select=".//forrest:properties[@contract='{$name}']/forrest:property[@name='{@name}']" />
+ </xsl:for-each>
+ </alias:call-template>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:if>
+ </xsl:template>
+
+</xsl:stylesheet>
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.xhtml.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/classes/CatalogManager.properties
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/classes/CatalogManager.properties?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/classes/CatalogManager.properties (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/classes/CatalogManager.properties Sat Apr 2 17:55:54 2005
@@ -0,0 +1,57 @@
+# 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
+
+# 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
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/classes/CatalogManager.properties
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs/commands.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs/commands.xml?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs/commands.xml (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs/commands.xml Sat Apr 2 17:55:54 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.
+-->
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
+<document>
+ <header>
+ <title>View commands</title>
+ </header>
+ <body>
+ <section>
+ <title>ls - list directory contents</title>
+ <dl>
+ <dt><a href="/ls.contracts">ls.contracts</a></dt>
+ <dd>list the default contracts as xml</dd>
+ <dt><a href="/ls.contracts.l">ls.contracts.l</a></dt>
+ <dd>transform the dir-list (ls.contrcats) and add more information about usage</dd>
+ <dt><a href="/ls.contracts.project">ls.contracts.project</a> <strong>NOT working in views plugin</strong> </dt>
+ <dd>list the project specific contracts as xml</dd>
+ <dt><a href="/ls.contracts.project.l">ls.contracts.project.l</a> <strong>NOT working in views plugin</strong></dt>
+ <dd>transform the dir-list (ls.contrcats.project) and add more information about usage</dd>
+ </dl>
+ </section>
+ </body>
+</document>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs/commands.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs/feeds/default.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs/feeds/default.xml?view=auto&rev=159861
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs/feeds/default.xml (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs/feeds/default.xml Sat Apr 2 17:55:54 2005
@@ -0,0 +1,25 @@
+<?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.
+-->
+<feedDescriptor>
+ <feed id="shows">
+ <url>http://m11.btefnet.net/torrents/backend.xml</url>
+ </feed>
+ <feed id="sf">
+ <url>http://sourceforge.net/export/rss2_projnews.php?group_id=96589</url>
+ </feed>
+</feedDescriptor>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs/feeds/default.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs/images/group-logo.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs/images/group-logo.gif?view=auto&rev=159861
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs/images/group-logo.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream