Author: gmcdonald
Date: Tue May 20 02:37:51 2008
New Revision: 658178
URL: http://svn.apache.org/viewvc?rev=658178&view=rev
Log:
Adding examples page and example
Added:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/examples/
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/examples/index.xml
(with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/resources/structurer/url/examples/
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/resources/structurer/url/examples/pelt.fv
(with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/resources/themes/pelt/panels/pelt-html.example-specific.panel.xml
(with props)
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/forrest.properties
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/site.xml
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/tabs.xml
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/forrest.properties
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/forrest.properties?rev=658178&r1=658177&r2=658178&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/forrest.properties
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/forrest.properties
Tue May 20 02:37:51 2008
@@ -22,4 +22,4 @@
# FIXME: FOR-785
forrest.validate.skinconf=false
-project.required.plugins=org.apache.forrest.plugin.internal.dispatcher,org.apache.forrest.themes.core,org.apache.forrest.plugin.output.inputModule,org.apache.forrest.plugin.input.projectInfo,org.apache.forrest.plugin.output.pdf,org.apache.forrest.plugin.input.glossary
+project.required.plugins=org.apache.forrest.plugin.internal.dispatcher,org.apache.forrest.themes.core,org.apache.forrest.plugin.output.inputModule,org.apache.forrest.plugin.input.projectInfo,org.apache.forrest.plugin.output.pdf,org.apache.forrest.plugin.input.glossary,org.apache.forrest.plugin.output.POD
Added:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/examples/index.xml
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/examples/index.xml?rev=658178&view=auto
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/examples/index.xml
(added)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/examples/index.xml
Tue May 20 02:37:51 2008
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
+ "http://forrest.apache.org/dtd/document-v20.dtd">
+<document>
+ <header>
+ <title>Dispatcher (Draft - feature under development)</title>
+ </header>
+ <body>
+ <warning>
+ The "dispatcher" is new functionality which is still in development
phase.
+ That is why it is in the "whiteboard" section of the Forrest
distribution.
+ We are working at the moment on moving this plugin from the whiteboard
+ into the core plugins. Further all dispatcher related documents will be
+ moved into the plugin as well. See
+ <a
+ href="http://forrest.apache.org/docs_0_90/status-themes.html">Status
+ of Themes: Skins and Dispatcher</a>.
+ </warning>
+ <section id="introduction">
+ <title>Introduction</title>
+ <p>
+ This section will grow and show example usage of contracts in
action -
+ either standalone contracts or those that work in conjunction
with
+ plugins. Contributions Welcome.
+ </p>
+ </section>
+ <section id="examples">
+ <title>Some examples to help you on your way</title>
+ <section id="pod-example">
+ <title>Enabling and adding the POD plugin</title>
+ <p>On this page you will see a link to a .pod version of this
page. Below are
+ the steps taken :-</p>
+ <ul><li>Add POD plugin to forrest.properties file</li>
+
<li><code><![CDATA[org.apache.forrest.plugin.output.POD]]></code></li>
+ <li>Add contract to include pod link - this can either be enabled in a
+ master theme file (such as pelt.fv) or on a per folder basis
(by altering a
+ nested pelt.fv to point to modified *.panels.xml). In this
case, we want a
+ modified option to only alter files in this examples folder.
+</li></ul>
+<fixme author="GM">Example not yet complete, will expand on it soon.</fixme>
+</section>
+</section>
+ </body>
+</document>
Propchange:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/examples/index.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/site.xml
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/site.xml?rev=658178&r1=658177&r2=658178&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/site.xml
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/site.xml
Tue May 20 02:37:51 2008
@@ -45,6 +45,9 @@
<internals label="Internals" tab="int" href="int/">
<index label="Overview" href="index.html"/>
</internals>
+ <examples label="Examples" tab="examples" href="examples/">
+ <index label="Overview" href="index.html"/>
+ </examples>
<!--
The href must be wholesite.html/pdf You can change the labels and node names
<all label="All">
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/tabs.xml
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/tabs.xml?rev=658178&r1=658177&r2=658178&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/tabs.xml
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/tabs.xml
Tue May 20 02:37:51 2008
@@ -34,6 +34,7 @@
<tab id="" label="Home" dir="" indexfile="index.html"/>
<tab id="how" label="HowTo" dir="how"
indexfile="howto-dispatcher-quickstart.html"/>
<tab id="int" label="Internals" dir="int" indexfile="index.html"/>
+ <tab id="examples" label="Examples" dir="examples" indexfile="index.html"/>
<!-- Add new tabs here, eg:
<tab label="How-Tos" dir="community/howto/"/>
<tab label="XML Site" dir="xml-site/"/>
Added:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/resources/structurer/url/examples/pelt.fv
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/resources/structurer/url/examples/pelt.fv?rev=658178&view=auto
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/resources/structurer/url/examples/pelt.fv
(added)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/resources/structurer/url/examples/pelt.fv
Tue May 20 02:37:51 2008
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<forrest:views xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
+<!-- The following variables are used to contact data models and/or contracts.
-->
+ <jx:set var="contextPath" value="#{$cocoon/parameters/contextPath}"/>
+ <jx:set var="getRequest" value="#{$cocoon/parameters/getRequest}"/>
+ <jx:set var="getRequestExtension"
value="#{$cocoon/parameters/getRequestExtension}" />
+ <forrest:view type="fo" hooksXpath="/">
+ <jx:import uri="cocoon://prepare.panels.common-fo"/>
+ </forrest:view>
+<!-- CSS View of the request e.g. index.dispatcher.css -->
+ <forrest:view type="css" hooksXpath="/">
+ <jx:import uri="cocoon://prepare.panels.pelt-css"/>
+ </forrest:view>
+<!-- HTML View of the request (e.g. index.html)-->
+ <forrest:view type="html" hooksXpath="/html/body">
+ <jx:import uri="cocoon://prepare.panels.pelt-html.head"/>
+ <forrest:hook name="container">
+ <jx:import uri="cocoon://prepare.panels.pelt-html.header"/>
+ <forrest:hook name="page">
+ <jx:import uri="cocoon://prepare.panels.pelt-html.leftbar"/>
+ <jx:import uri="cocoon://prepare.panels.pelt-html.example-specific"/>
+ </forrest:hook>
+ <jx:import uri="cocoon://prepare.panels.pelt-html.footer"/>
+ </forrest:hook>
+ </forrest:view>
+</forrest:views>
Propchange:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/resources/structurer/url/examples/pelt.fv
------------------------------------------------------------------------------
svn:eol-style = native
Added:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/resources/themes/pelt/panels/pelt-html.example-specific.panel.xml
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/resources/themes/pelt/panels/pelt-html.example-specific.panel.xml?rev=658178&view=auto
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/resources/themes/pelt/panels/pelt-html.example-specific.panel.xml
(added)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/resources/themes/pelt/panels/pelt-html.example-specific.panel.xml
Tue May 20 02:37:51 2008
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
+ <forrest:hook name="content">
+ <forrest:hook name="export-link">
+ <forrest:contract name="content-pod-link"/>
+ </forrest:hook>
+
+ <!-- FIXME - Problem with ndeSetTextSize() script from fontsize.js not
compliant between Pelt and Leather-dev... -->
+ <forrest:hook class="trail">
+ <forrest:contract name="branding-fontsize"/>
+ </forrest:hook>
+ <forrest:contract name="content-title"
+ dataURI="cocoon://#{$getRequest}.title.xml"/>
+ <forrest:contract name="content-abstract"
+ dataURI="cocoon://#{$getRequest}.abstract.xml"/>
+ <forrest:contract name="content-minitoc"
+ dataURI="cocoon://#{$getRequest}.toc.xml">
+ <forrest:property name="content-minitoc-conf" max-depth="2"
min-sections="1"
+ location="page"/>
+ </forrest:contract>
+ <forrest:contract name="content-main"
+ dataURI="cocoon://#{$getRequest}.body.xml">
+ <forrest:property name="content-main-conf">
+ <headings type="underlined"/>
+ </forrest:property>
+ </forrest:contract>
+ <!--
+ <forrest:contract name="content-authors">
+ <forrest:property name="content-authors" nugget="get.authors">
+ <jx:import uri="cocoon://#{$cocoon/parameters/getRequest}.authors.xml"/>
+ </forrest:property>
+ </forrest:contract>
+ -->
+ </forrest:hook>
+</forrest:template>
Propchange:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/resources/themes/pelt/panels/pelt-html.example-specific.panel.xml
------------------------------------------------------------------------------
svn:eol-style = native