Author: rgardler
Date: Fri Aug 5 10:14:28 2005
New Revision: 230489
URL: http://svn.apache.org/viewcvs?rev=230489&view=rev
Log:
first stab at Google Sitemap generation. it works, but it is buggy, committed to enable community contributions to this much needed plugin (thanks to Rasik Pandey)
Added:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/README.txt (with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/build.xml (with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/forrest.properties (with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/internal.xmap (with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/resources/
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/resources/stylesheets/
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/resources/stylesheets/linkstatus-google_sitemap.xsl (with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/resources/stylesheets/linkstatus-google_sitemap_rss.xsl (with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/favicon.ico (with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/group.svg (with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/icon.png (with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/project-logo.gif (with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/project.svg (with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/index.xml (with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/site.xml (with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/tabs.xml (with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/skinconf.xml (with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/resources/
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/status.xml (with props)
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/README.txt
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/README.txt?rev=230489&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/README.txt (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/README.txt Fri Aug 5 10:14:28 2005
@@ -0,0 +1,30 @@
+org.apache.forrest.plugin.internal.GoogleSitemap Plugin
+===================
+
+This a simple internal plugin which allows users to access a list of pages
+(currently crawling only *.html and *.xml pages), in google sitemap format,
+contained in their site linkmap.html by the calling the top-level pages:
+-google-sitemap.xml
+-google-sitemap_rss.xml
+
+
+Known Issues
+============
+
+This does not work in a for sites generated for static use due to a Cocoon bug.
+See: forrest-dev list Thread: "Stacktrace from LinkStatusGenerator when generating stack site from command-line"
+
+
+Version
+=======
+
+0.1-dev
+
+Code, interfaces and functionality are likely to change. Use at your own risk.
+
+ToDo
+====
+
+- documentation
+
+
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/README.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/build.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/build.xml?rev=230489&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/build.xml (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/build.xml Fri Aug 5 10:14:28 2005
@@ -0,0 +1,43 @@
+<?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.internal.GoogleSitemap"/>
+ <property name="forrest.version" value="0.7"/>
+ <property name="type" value="internal"/>
+ <property name="plugin-version" value="0.1"/>
+ <property name="description" value="Generates a google-sitemap for all pages in each site."/>
+ <property name="author" value="Apache Forrest Project"/>
+ <property name="websiteURL" value="http://forrest.apache.org/docs/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/"/>
+ <property name="downloadURL" value="http://forrest.apache.org/plugins/"/>
+
+ <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/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/forrest.properties
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/forrest.properties?rev=230489&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/forrest.properties (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/forrest.properties Fri Aug 5 10:14:28 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)
+project.required.plugins=org.apache.forrest.plugin.internal.GoogleSitemap
\ No newline at end of file
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/forrest.properties
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/internal.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/internal.xmap?rev=230489&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/internal.xmap (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/internal.xmap Fri Aug 5 10:14:28 2005
@@ -0,0 +1,698 @@
+<?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 andpi
+ limitations under the License.
+-->
+<!-- ===============================================
+Default Forrest sitemap, defining the whole site.
+Delegates to the other *.xmap files. See
+http://forrest.apache.org/docs/sitemap-ref.html
+
+$Revision: 1.12 $
+==================================================== -->
+
+<!--
+ internal.xmap for org.apache.forrest.plugin.internal.GoogleSitemap
+ Basically, this is just the Apache Forrest 0.7 sitemap.xmap file with
+ a few additions for generating a google-sitemap file in various formats.
+ The output from passing the linkmap.html file to the
+ org.apache.cocoon.generation.LinkStatusGenerator is used to create
+ the google-sitemap.xml file
+ Search for the string:
+ 'Added for org.apache.forrest.plugin.internal.GoogleSitemap'
+ to see all specific modifications.
+-->
+
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+ <map:components>
+ <map:generators default="file">
+ <map:generator name="file" src="org.apache.cocoon.generation.FileGenerator" />
+ <map:generator name="html"
+ src="org.apache.cocoon.generation.HTMLGenerator">
+ <jtidy-config>WEB-INF/jtidy.properties</jtidy-config>
+ </map:generator>
+ <map:generator name="exception"
+ src="org.apache.cocoon.generation.ParseExceptionGenerator"/>
+ <!--
+ <map:generator name="html" src="org.apache.cocoon.generation.HTMLGenerator">
+ <jtidy-config>jtidy.properties</jtidy-config>
+ </map:generator>
+ <map:generator name="directory" src="org.apache.cocoon.generation.DirectoryGenerator" />
+ -->
+ <map:generator name="notifier" src="org.apache.cocoon.sitemap.NotifyingGenerator" />
+
+ <map:generator name="text2xml" logger="sitemap.generator.textgenerator"
+ src="org.apache.cocoon.generation.TextGenerator">
+ <parameter name="localizable" value="true"/>
+ </map:generator>
+
+ <!--Added for org.apache.forrest.plugin.internal.GoogleSitemap-->
+ <map:generator name="linkstatus" src="org.apache.cocoon.generation.LinkStatusGenerator">
+ <!--TODO: provide a means to allow the user to add/override regexp patterns here for include and exclude?-->
+ <include-name>.*\.html</include-name>
+ <include-name>.*\.xml</include-name>
+ </map:generator>
+ </map:generators>
+
+ <map:transformers default="xslt">
+
+ <!-- Add values to skinconf that need extra processing like the color shades -->
+ <map:transformer name="skinconf" src="org.apache.forrest.conf.SkinconfTransformer"/>
+
+ <!-- Generates @id attributes from <title> strings -->
+ <map:transformer name="idgen" src="org.apache.forrest.util.IdGeneratorTransformer">
+ <element>//*[local-name() = 'section']</element>
+ <id>title/text()</id>
+ </map:transformer>
+
+ <!-- Rewrites links, e.g. transforming href="site:index" to href="../index.html" -->
+ <!-- See http://forrest.apache.org/docs/sitemap-ref.html#linkrewriting_impl -->
+ <map:transformer name="linkrewriter" logger="sitemap.transformer.linkrewriter" src="org.apache.cocoon.transformation.LinkRewriterTransformer">
+ <link-attrs>href src</link-attrs>
+ <schemes>site ext</schemes>
+
+ <input-module name="site">
+ <input-module name="linkmap">
+ <file src="{src}" reloadable="true" />
+ </input-module>
+ <prefix>/site//</prefix>
+ <suffix>/@href</suffix>
+ </input-module>
+ <input-module name="ext">
+ <input-module name="linkmap">
+ <file src="{src}" reloadable="true" />
+ </input-module>
+ <prefix>/site/external-refs//</prefix>
+ <suffix>/@href</suffix>
+ </input-module>
+ </map:transformer>
+
+ <map:transformer name="xpath" logger="sitemap.transformer.xpath" src="org.apache.forrest.util.XPathTransformer" />
+
+ <map:transformer name="xslt" src="org.apache.cocoon.transformation.TraxTransformer" logger="sitemap.transformer.xslt" pool-max="32" pool-min="8" pool-grow="2">
+ <use-request-parameters>false</use-request-parameters>
+ <use-browser-capabilities-db>false</use-browser-capabilities-db>
+ <use-deli>false</use-deli>
+ <transformer-factory>org.apache.xalan.processor.TransformerFactoryImpl</transformer-factory>
+ <!--<transformer-factory>net.sf.saxon.TransformerFactoryImpl</transformer-factory>-->
+ <!--<transformer-factory>com.icl.saxon.TransformerFactoryImpl</transformer-factory>-->
+ <!--<transformer-factory>org.apache.xalan.xsltc.trax.TransformerFactoryImpl</transformer-factory>-->
+ </map:transformer>
+
+ <map:transformer name="xsltc" src="org.apache.cocoon.transformation.TraxTransformer" logger="sitemap.transformer.xslt" pool-max="32" pool-min="8" pool-grow="2">
+ <use-request-parameters>false</use-request-parameters>
+ <use-browser-capabilities-db>false</use-browser-capabilities-db>
+ <use-deli>false</use-deli>
+ <transformer-factory>org.apache.xalan.xsltc.trax.TransformerFactoryImpl</transformer-factory>
+ </map:transformer>
+
+ <map:transformer name="xslt-saxon"
+ pool-grow="2" pool-max="32" pool-min="8"
+ src="org.apache.cocoon.transformation.TraxTransformer">
+ <use-request-parameters>false</use-request-parameters>
+ <use-browser-capabilities-db>false</use-browser-capabilities-db>
+ <xslt-processor-role>saxon</xslt-processor-role>
+ </map:transformer>
+
+ <map:transformer name="xinclude" src="org.apache.cocoon.transformation.XIncludeTransformer" logger="sitemap.transformer.xinclude" pool-grow="2" pool-max="16" pool-min="2" />
+
+ <map:transformer name="cinclude" pool-grow="2" pool-max="16" pool-min="2" src="org.apache.cocoon.transformation.CIncludeTransformer" logger="sitemap.transformer.cinclude"/>
+ <map:transformer name="pattern"
+ src="org.apache.cocoon.transformation.PatternTransformer"
+ logger="sitemap.transformer.pattern">
+ <parameter name="groups" value="true"/>
+ </map:transformer>
+ <map:transformer name="lexer"
+ src="org.apache.cocoon.transformation.LexicalTransformer"
+ logger="sitemap.transformer.lexer">
+ <parameter name="localizable" value="true"/>
+ </map:transformer>
+ <map:transformer name="parser"
+ src="org.apache.cocoon.transformation.ParserTransformer"
+ logger="sitemap.transformer.parser">
+ <parameter name="flatten" value="true"/>
+ <parameter name="recovery" value="true"/>
+ <parameter name="localizable" value="true"/>
+ </map:transformer>
+ <map:transformer name="i18n" src="org.apache.cocoon.transformation.I18nTransformer">
+ <catalogues default="common">
+ <catalogue id="common" name="CommonMessages" location="skins/common/translations"/>
+ </catalogues>
+ <cache-at-startup>true</cache-at-startup>
+ </map:transformer>
+
+ <!--Added for org.apache.forrest.plugin.internal.GoogleSitemap-->
+ <map:transformer name="encodeURL" src="org.apache.cocoon.transformation.EncodeURLTransformer">
+ <!-- default configuration, explicitly defined -->
+ <include-name>.*/@href</include-name>
+ <exclude-name>img/@src|(a/@href|iframe/@src)=.*adserver</exclude-name>
+ </map:transformer>
+ </map:transformers>
+
+ <map:readers default="resource">
+ <map:reader name="resource" src="org.apache.cocoon.reading.ResourceReader"/>
+ </map:readers>
+
+ <map:serializers default="html">
+ <map:serializer name="html" mime-type="text/html" src="org.apache.cocoon.serialization.HTMLSerializer">
+ <doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public>
+ <doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
+ <encoding>UTF-8</encoding>
+ </map:serializer>
+
+ <map:serializer name="xml" mime-type="text/xml" src="org.apache.cocoon.serialization.XMLSerializer"/>
+
+ <map:serializer name="xml-document" mime-type="text/xml" src="org.apache.cocoon.serialization.XMLSerializer">
+ <cdata-section-elements>source</cdata-section-elements>
+ <doctype-public>-//APACHE//DTD Documentation V1.3//EN</doctype-public>
+ <doctype-system>document-v13.dtd</doctype-system>
+ </map:serializer>
+
+ <map:serializer name="links" src="org.apache.cocoon.serialization.LinkSerializer">
+ <encoding>ISO-8859-1</encoding>
+ </map:serializer>
+
+ <map:serializer name="svgxml" src="org.apache.cocoon.serialization.XMLSerializer" mime-type="image/svg+xml">
+ <doctype-public>-//W3C//DTD SVG 1.0//EN</doctype-public>
+ <doctype-system>http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd</doctype-system>
+ </map:serializer>
+ <map:serializer logger="sitemap.serializer.text" mime-type="text/plain" name="text" src="org.apache.cocoon.serialization.TextSerializer">
+ <encoding>UTF-8</encoding>
+ </map:serializer>
+
+ <!--
+ <map:serializer mime-type="application/x-shockwave-flash" name="swf" src="org.apache.cocoon.serialization.SWFSerializer"/>
+ <map:serializer mime-type="application/msword" name="fo2rtf" src="org.apache.cocoon.serialization.RTFSerializer"/>
+ -->
+ </map:serializers>
+
+ <map:matchers default="wildcard">
+ <map:matcher name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcher"/>
+ <map:matcher name="regexp" src="org.apache.cocoon.matching.RegexpURIMatcher"/>
+ </map:matchers>
+
+ <map:selectors>
+ <map:selector name="exists" logger="sitemap.selector.exists"
+ src="org.apache.forrest.sourceexists.SourceExistsSelector" />
+ <map:selector name="exception" logger="sitemap.selector.exception"
+ src="org.apache.cocoon.selection.ExceptionSelector">
+ <exception name="syntax" class="net.sourceforge.chaperon.process.ParseException"/>
+ <exception class="java.lang.Throwable" unroll="true"/>
+ </map:selector>
+ <map:selector name="config" logger="sitemap.selector.config"
+ src="org.apache.cocoon.selection.SimpleSelector" />
+ </map:selectors>
+
+ <map:pipes default="caching">
+ <map:pipe name="caching" src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline"/>
+ <!--
+ <map:pipe name="noncaching" src="org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline"/>
+ <map:pipe name="profile-caching" src="org.apache.cocoon.components.profiler.ProfilingCachingProcessingPipeline"/>
+ <map:pipe name="profile-noncaching" src="org.apache.cocoon.components.profiler.ProfilingNonCachingProcessingPipeline"/>
+ -->
+ </map:pipes>
+ </map:components>
+
+ <!--Added for org.apache.forrest.plugin.internal.GoogleSitemap-->
+ <map:views>
+ <map:view name="links" from-position="last">
+ <map:serialize type="links"/>
+ </map:view>
+ </map:views>
+
+ <map:resources>
+ <map:resource name="skinit">
+ <map:select type="exists">
+ <map:when test="{project:skins-dir}{forrest:skin}/xslt/html/{type}.xsl">
+ <map:transform src="{project:skins-dir}{forrest:skin}/xslt/html/{type}.xsl">
+ <map:parameter name="notoc" value="{notoc}"/>
+ <!-- For backwards-compat with 0.2 - 0.4 skins -->
+ <map:parameter name="isfaq" value="{notoc}"/>
+ <map:parameter name="nopdf" value="{nopdf}"/>
+ <map:parameter name="path" value="{path}"/>
+ <map:parameter name="config-file" value="{project:skinconf}"/>
+ </map:transform>
+ </map:when>
+ <map:otherwise>
+ <map:transform src="{forrest:context}/skins/{forrest:skin}/xslt/html/{type}.xsl">
+ <map:parameter name="notoc" value="{notoc}"/>
+ <!-- For backwards-compat with 0.2 - 0.4 skins -->
+ <map:parameter name="isfaq" value="{notoc}"/>
+ <map:parameter name="nopdf" value="{nopdf}"/>
+ <map:parameter name="path" value="{path}"/>
+ <map:parameter name="config-file" value="{project:skinconf}"/>
+ </map:transform>
+ </map:otherwise>
+ </map:select>
+ <map:select type="config">
+ <map:parameter name="value" value="{defaults:i18n}"/>
+ <map:when test="true">
+ <map:transform type="i18n">
+ <map:parameter name="locale" value="{request:locale}"/>
+ </map:transform>
+ </map:when>
+ </map:select>
+ <!--
+ FIXME: strip_namespace is because this bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=35348
+ -->
+ <map:transform src="{forrest:context}/skins/common/xslt/html/strip_namespaces.xsl"/>
+
+ <map:serialize/>
+ </map:resource>
+
+ </map:resources>
+
+ <!-- =========================== Pipelines ================================= -->
+ <map:pipelines>
+
+ <map:pipeline type="caching" internal-only="true">
+
+ <!--
+ FIXME: there is a bug in the Cocoon 2.2 resolving that can make cocoon:/
+ calls call the base sitemap; remove the following when it's fixed.
+
+ -->
+ <map:match pattern="*.xlex">
+ <map:select type="exists">
+ <map:when test="resources/chaperon/grammars/{1}.xlex">
+ <map:read src="resources/chaperon/grammars/{1}.xlex"/>
+ </map:when>
+ <map:otherwise>
+ <map:generate type="text2xml" src="{forrest:context}/resources/chaperon/grammars/{1}.grm"/>
+ <map:transform type="lexer" src="{forrest:context}/resources/chaperon/grammars/grm.xlex"/>
+ <map:transform type="parser" src="{forrest:context}/resources/chaperon/grammars/grm.xgrm"/>
+ <map:transform src="{forrest:context}/resources/chaperon/stylesheets/text4regex.xsl"/>
+ <map:transform type="lexer" src="{forrest:context}/resources/chaperon/grammars/regex.xlex"/>
+ <map:transform type="parser" src="{forrest:context}/resources/chaperon/grammars/regex.xgrm"/>
+ <map:transform src="{forrest:context}/resources/chaperon/stylesheets/grm2xlex.xsl"/>
+ <map:serialize type="xml"/>
+ </map:otherwise>
+ </map:select>
+ </map:match>
+ </map:pipeline>
+
+ <!--Added for org.apache.forrest.plugin.internal.GoogleSitemap-->
+ <map:pipeline internal-only="false">
+
+ <map:match pattern="linkstatus">
+ <map:redirect-to uri="linkstatus/linkmap.html"/>
+ </map:match>
+
+ <map:match pattern="linkstatus/**">
+ <map:generate type="linkstatus" src="{request:scheme}://{request:serverName}:{request:serverPort}/{1}"/>
+ <map:serialize type="xml"/>
+ </map:match>
+
+ <!--
+ TODO: other formats for google sitemaps - ATOM feed, text & OAI-PMH
+ SEE: http://www.google.com/webmasters/sitemaps/docs/en/other.html
+ -->
+
+ <!--
+ TODO: create resources and only pass stylesheet src value
+ -->
+
+ <map:match pattern="google-sitemap.xml">
+ <map:generate src="cocoon://linkstatus" />
+ <map:transform type="encodeURL"/>
+ <map:transform src="resources/stylesheets/linkstatus-google_sitemap.xsl">
+ <!--
+ TODO: is this the correct place to replace strings
+ fromBaseURI(potentially http://localhost:8080/) WITH
+ toBaseURI (like http://www.discountdracula.com)
+ Could it be done in a prior step?
+ This is necessary for 1) generating a static site, other cases?
+ -->
+ <map:parameter name="request-root" value="{request:scheme}://{request:serverName}:{request:serverPort}/"/>
+ <map:parameter name="site-root" value="{conf:project-url}"/>
+ </map:transform>
+ <map:serialize type="xml" />
+ </map:match>
+
+ <map:match pattern="google-sitemap.rss.xml">
+ <map:generate src="cocoon://linkstatus" />
+ <map:transform type="encodeURL"/>
+ <map:transform src="resources/stylesheets/linkstatus-google_sitemap_rss.xsl">
+ <!--
+ TODO: is this the correct place to replace strings
+ fromBaseURI(potentially http://localhost:8080/) WITH
+ toBaseURI (like http://www.discountdracula.com)
+ Could it be done in a prior step?
+ This is necessary for 1) generating a static site, other cases?
+ -->
+ <map:parameter name="request-root" value="{request:scheme}://{request:serverName}:{request:serverPort}/"/>
+ <map:parameter name="site-root" value="{conf:project-url}"/>
+ </map:transform>
+ <map:serialize type="xml" />
+ </map:match>
+
+
+ </map:pipeline>
+
+ <!--
+ This is the user pipeline, that can answer requests instead
+ of the Forrest one, or let requests pass through.
+ To take over the rendering of a file it must match the file name and path.
+ To take over the generation of the intermediate format, it must give
+ Forrest the same filename but ending with xml, and a DTD that Forrest
+ recognizes.
+ -->
+ <map:pipeline internal-only="false">
+ <map:select type="exists">
+ <map:when test="{project:sitemap}">
+ <map:mount uri-prefix=""
+ src="{project:sitemap}"
+ check-reload="yes"
+ pass-through="true"/>
+ </map:when>
+ </map:select>
+ </map:pipeline>
+
+
+
+ <map:pipeline internal-only="false">
+ <map:match pattern="skinconf.xml">
+ <map:generate src="{project:skinconf}" />
+ <map:transform src="{forrest:stylesheets}/strip-doctype.xsl"/>
+ <map:transform src="{forrest:stylesheets}/upgrade-skinconf.xsl"/>
+ <map:select type="exists">
+ <map:when test="{project:skins-dir}{forrest:skin}/skinconf.xsl">
+ <map:transform src="{project:skins-dir}{forrest:skin}/skinconf.xsl"/>
+ </map:when>
+ </map:select>
+ <map:select type="exists">
+ <map:when test="{forrest:context}/skins/{forrest:skin}/skinconf.xsl">
+ <map:transform src="{forrest:context}/skins/{forrest:skin}/skinconf.xsl"/>
+ </map:when>
+ </map:select>
+ <map:transform src="{forrest:context}/skins/common/skinconf.xsl"/>
+ <map:transform type="skinconf"/>
+ <map:serialize type="xml" />
+ </map:match>
+
+ <!-- Add some build information, which is added to the html head -->
+ <map:match pattern="build-info">
+ <map:generate src="{project:temp-dir}/build-info.xml"/>
+ <map:serialize type="xml"/>
+ </map:match>
+ </map:pipeline>
+
+ <map:pipeline internal-only="false">
+ <!-- ============================================================ -->
+ <!-- SOURCE FORMATS -->
+ <!-- Raw XML sources, typically doc-v12 format -->
+ <!-- ============================================================ -->
+ <!-- http://forrest.apache.org/docs/sitemap-ref.html#source_pipelines -->
+
+ <!-- Body content -->
+ <map:match pattern="**.xml">
+
+ <map:match pattern="pluginDocs/plugins_*/index.xml">
+ <map:aggregate element="pluginList">
+ <map:part src="{forrest:plugins-src}/plugins.xml"/>
+ <map:part src="{forrest:whiteboard-plugins-src}/whiteboard-plugins.xml"/>
+ </map:aggregate>
+ <map:transform src="{forrest:stylesheets}/plugins2xdoc.xsl"/>
+ <map:serialize type="xml"/>
+ </map:match>
+
+ <map:match pattern="linkmap.xml">
+ <map:mount uri-prefix="" src="{forrest:context}/linkmap.xmap" check-reload="yes" />
+ </map:match>
+
+ <map:match pattern="forrest-issues.xml">
+ <map:mount uri-prefix="" src="{forrest:context}/issues.xmap" check-reload="yes" />
+ </map:match>
+
+ <map:match pattern="**faq.xml">
+ <map:mount uri-prefix="" src="{forrest:context}/faq.xmap" check-reload="yes" />
+ </map:match>
+
+ <map:match pattern="community/**index.xml">
+ <map:mount uri-prefix="" src="{forrest:context}/forrest.xmap" check-reload="yes" />
+ </map:match>
+
+ <map:match pattern="community/*/**.xml">
+ <map:mount uri-prefix="" src="{forrest:context}/revisions.xmap" check-reload="yes" />
+ </map:match>
+
+ <!-- wholesite is preferred; site is here for compatibility -->
+ <map:match pattern="wholesite.xml">
+ <map:mount uri-prefix="" src="{forrest:context}/aggregate.xmap" check-reload="yes" />
+ </map:match>
+ <map:match pattern="site.xml">
+ <map:mount uri-prefix="" src="{forrest:context}/aggregate.xmap" check-reload="yes" />
+ </map:match>
+
+ <!-- Lucene index update and search -->
+ <map:match pattern="lucene-*.xml">
+ <map:mount uri-prefix="" src="{forrest:context}/search.xmap" check-reload="yes"/>
+ </map:match>
+
+ <!-- Default source types -->
+ <map:mount uri-prefix="" src="{forrest:context}/forrest.xmap" check-reload="yes" />
+
+ </map:match>
+
+ <!-- Menu content -->
+ <map:match pattern="abs-menulinks">
+ <map:mount uri-prefix="" src="{forrest:context}/menu.xmap" check-reload="yes" />
+ </map:match>
+
+ <map:match pattern="**menulinks-*">
+ <map:mount uri-prefix="" src="{forrest:context}/menu.xmap" check-reload="yes" />
+ </map:match>
+
+ <!-- Link maps -->
+ <map:match pattern="abs-linkmap">
+ <map:mount uri-prefix="" src="{forrest:context}/linkmap.xmap"/>
+ </map:match>
+
+ <map:match pattern="**linkmap-*">
+ <map:match pattern="linkmap-wholesite.*">
+ <map:mount uri-prefix="" src="{forrest:context}/aggregate.xmap" check-reload="yes" />
+ </map:match>
+ <map:match pattern="linkmap-site.*">
+ <map:mount uri-prefix="" src="{forrest:context}/aggregate.xmap" check-reload="yes" />
+ </map:match>
+
+ <map:mount uri-prefix="" src="{forrest:context}/linkmap.xmap" check-reload="yes" />
+ </map:match>
+
+ </map:pipeline>
+
+
+ <!-- ============================================================ -->
+ <!-- INTERMEDIATE FORMATS -->
+ <!-- Tabs, menus and body HTML. -->
+ <!-- Called from output format pipelines -->
+ <!-- ============================================================ -->
+ <!-- http://forrest.apache.org/docs/sitemap-ref.html#intermediate_pipelines -->
+
+ <map:pipeline internal-only="false">
+
+ <!-- External matches -->
+ <!-- (HTML rendered directly from special formats) -->
+ <map:match pattern="**body-faq.html">
+ <map:mount uri-prefix="" src="{forrest:context}/faq.xmap" check-reload="yes" />
+ </map:match>
+
+ <map:match pattern="**body-*.html">
+ <map:select type="exists">
+ <map:when test="{project:content.xdocs}{1}{2}.ehtml">
+ <map:generate src="{project:content.xdocs}{1}{2}.ehtml" />
+ <map:transform src="{forrest:stylesheets}/html2htmlbody.xsl" />
+ <map:transform type="linkrewriter" src="cocoon:/{1}linkmap-{2}.html"/>
+ <map:transform src="{forrest:context}/resources/stylesheets/declare-broken-site-links.xsl" />
+ <map:serialize type="xml" />
+ </map:when>
+ </map:select>
+ </map:match>
+
+ <!-- Default matches -->
+ <!-- (HTML rendered from doc-v11 intermediate format -->
+ <map:match pattern="**body-*.html">
+ <map:generate src="cocoon:/{1}{2}.xml"/>
+ <map:transform type="idgen"/>
+ <map:transform type="xinclude"/>
+ <map:transform type="linkrewriter" src="cocoon:/{1}linkmap-{2}.html"/>
+ <map:transform src="{forrest:context}/resources/stylesheets/declare-broken-site-links.xsl" />
+ <map:call resource="skinit">
+ <map:parameter name="type" value="document2html"/>
+ <map:parameter name="path" value="{1}{2}.html"/>
+ <map:parameter name="notoc" value="false"/>
+ </map:call>
+ </map:match>
+
+ <map:match pattern="**menu-*.html">
+ <map:generate src="cocoon:/{1}book-{2}.html"/>
+ <map:transform type="linkrewriter" src="cocoon:/{1}linkmap-{2}.html"/>
+ <map:transform src="{forrest:context}/resources/stylesheets/declare-broken-site-links.xsl" />
+ <map:call resource="skinit">
+ <map:parameter name="type" value="book2menu"/>
+ <map:parameter name="path" value="{1}{2}.html"/>
+ </map:call>
+ </map:match>
+
+ <map:match pattern="**tab-*.html">
+ <map:mount uri-prefix="" src="{forrest:context}/tabs.xmap" check-reload="yes" />
+ </map:match>
+
+ <map:match pattern="**i18n-*.html">
+ <map:mount uri-prefix="" src="{forrest:context}/i18n.xmap" check-reload="yes" />
+ </map:match>
+
+ <map:match pattern="**book-*.html">
+ <map:mount uri-prefix="" src="{forrest:context}/menu.xmap" check-reload="yes" />
+ </map:match>
+
+ </map:pipeline>
+
+ <!-- ============================================================ -->
+ <!-- OUTPUT FORMATS -->
+ <!-- Serves content directly to the user -->
+ <!-- +==========================================================+ -->
+ <!-- http://forrest.apache.org/docs/sitemap-ref.html#output_pipelines -->
+
+
+
+ <map:pipeline internal-only="false">
+<!--pipeline that "marries" the docs in the root dir with the skin to produce html-->
+ <map:match pattern="*.html">
+ <map:aggregate element="site">
+ <map:part src="cocoon:/skinconf.xml"/>
+ <map:part src="cocoon:/build-info"/>
+ <map:part src="cocoon:/tab-{0}"/>
+ <map:part src="cocoon:/menu-{0}"/>
+ <map:part src="cocoon:/body-{0}"/>
+ </map:aggregate>
+
+ <map:call resource="skinit">
+ <map:parameter name="type" value="site2xhtml"/>
+ <map:parameter name="path" value="{0}"/>
+ </map:call>
+ </map:match>
+<!--pipeline that "marries" the docs in all other dirs then root with the skin to produce html-->
+ <map:match pattern="**/*.html">
+ <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:aggregate>
+ <map:call resource="skinit">
+ <map:parameter name="type" value="site2xhtml"/>
+ <map:parameter name="path" value="{0}"/>
+ </map:call>
+ </map:match>
+
+ <map:match type="regexp" pattern="^.+$">
+ <map:select type="exists">
+ <map:when test="{project:content.xdocs}/{0}">
+ <map:mount uri-prefix="" src="{forrest:context}/raw.xmap" check-reload="yes" />
+ </map:when>
+ </map:select>
+ </map:match>
+
+ <!-- generate faq.fo specially -->
+ <map:match pattern="**faq.fo">
+ <map:mount uri-prefix="" src="{forrest:context}/faq.xmap" check-reload="yes" />
+ </map:match>
+
+ <!-- generate .fo from .xml -->
+ <map:match type="regexp" pattern="^(.*?)([^/]*).fo$">
+ <map:select type="exists">
+ <map:when test="{project:content.xdocs}{1}{2}.fo">
+ <map:generate src="{project:content.xdocs}{1}{2}.fo"/>
+ </map:when>
+ <map:otherwise>
+ <map:aggregate element="site">
+ <map:part src="cocoon:/skinconf.xml"/>
+ <map:part src="cocoon:/{1}{2}.xml"/>
+ </map:aggregate>
+ <!-- <map:transform type="idgen"/> -->
+ <map:transform type="xinclude"/>
+ <map:transform type="linkrewriter" src="cocoon://{1}linkmap-{2}.fo"/>
+ <map:select type="exists">
+ <map:when test="{project:skins-dir}{forrest:skin}/xslt/fo/document2fo.xsl">
+ <map:transform src="{project:skins-dir}{forrest:skin}/xslt/fo/document2fo.xsl">
+ <map:parameter name="imagesdir" value="{project:resources.images}/"/>
+ <map:parameter name="xmlbasedir" value="{project:content.xdocs}{1}"/>
+ </map:transform>
+ </map:when>
+ <map:when test="{forrest:context}/skins/{forrest:skin}/xslt/fo/document2fo.xsl">
+ <map:transform src="{forrest:context}/skins/{forrest:skin}/xslt/fo/document2fo.xsl">
+ <map:parameter name="imagesdir" value="{project:resources.images}/"/>
+ <map:parameter name="xmlbasedir" value="{project:content.xdocs}{1}"/>
+ </map:transform>
+ </map:when>
+ <map:otherwise>
+ <map:transform src="{forrest:context}/skins/common/xslt/fo/document2fo.xsl">
+ <map:parameter name="imagesdir" value="{project:resources.images}/"/>
+ <map:parameter name="xmlbasedir" value="{project:content.xdocs}{1}"/>
+ </map:transform>
+ </map:otherwise>
+ </map:select>
+ </map:otherwise>
+ </map:select>
+ <map:serialize type="xml"/>
+ </map:match>
+
+ <map:match pattern="profiler">
+ <map:mount uri-prefix="" src="{forrest:context}/profiler.xmap" check-reload="yes" />
+ </map:match>
+
+ <map:match pattern="**.lucene">
+ <map:mount uri-prefix="" src="{forrest:context}/search.xmap" check-reload="yes" />
+ </map:match>
+
+
+
+ <map:match pattern="**.js">
+ <map:mount uri-prefix="" src="{forrest:context}/resources.xmap" check-reload="yes" />
+ </map:match>
+ <map:match pattern="**.css">
+ <map:mount uri-prefix="" src="{forrest:context}/resources.xmap" check-reload="yes" />
+ </map:match>
+ <map:match pattern="**images**">
+ <map:mount uri-prefix="" src="{forrest:context}/resources.xmap" check-reload="yes" />
+ </map:match>
+ <map:match pattern="**.png">
+ <map:mount uri-prefix="" src="{forrest:context}/resources.xmap" check-reload="yes" />
+ </map:match>
+ <map:match pattern="**.ico">
+ <map:mount uri-prefix="" src="{forrest:context}/resources.xmap" check-reload="yes" />
+ </map:match>
+ </map:pipeline>
+
+
+
+ <!-- ============================================================ -->
+ <!-- REDIRECTS -->
+ <!-- ============================================================ -->
+ <map:pipeline internal-only="false">
+
+ <map:match pattern="">
+ <map:redirect-to uri="index.html" />
+ </map:match>
+ <map:match type="regexp" pattern="^.+/$">
+ <map:redirect-to uri="index.html"/>
+ </map:match>
+ </map:pipeline>
+
+
+ </map:pipelines>
+</map:sitemap>
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/internal.xmap
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/resources/stylesheets/linkstatus-google_sitemap.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/resources/stylesheets/linkstatus-google_sitemap.xsl?rev=230489&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/resources/stylesheets/linkstatus-google_sitemap.xsl (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/resources/stylesheets/linkstatus-google_sitemap.xsl Fri Aug 5 10:14:28 2005
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--the input for this stylesheet is the Cocoon LinkStatusGenerator XML output-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="java" exclude-result-prefixes="java">
+ <xsl:output method="xml" indent="yes" />
+ <xsl:param name="request-root"/>
+ <xsl:param name="site-root"/>
+ <xsl:variable name="ns.uri.google-sitemap" value="'http://www.google.com/schemas/sitemap/0.84'"/>
+
+ <xsl:template match="/">
+
+ <urlset xmlns="$ns.uri.google-sitemap">
+
+ <xsl:apply-templates select="//*[boolean(@href)]"/>
+ </urlset>
+ </xsl:template>
+
+ <xsl:template match="//*[boolean(@href)]">
+ <url>
+ <loc>
+ <xsl:variable name="relativeURI" select="substring-after(@href, $request-root)"/>
+ <xsl:choose>
+ <!--used when generating a static site and the site uri needs to replace the local uri-->
+ <xsl:when test="string-length($site-root) > 1 and $site-root != 'null'">
+ <xsl:value-of select="concat($site-root, $relativeURI)"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@href"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </loc>
+
+ <!--
+ TODO-Think: below the user needs a means of controlling the advanced google sitemaps options (elements and values)
+ like <changefreq>daily</changefreq>
+ SEE: http://www.google.com/webmasters/sitemaps/docs/en/protocol.html#xmlTagDefinitions
+ -->
+ <lastmod>
+ <!--
+ TODO-Replace: this is obviously a HACK, hopefully one day this will be provided from the LinkStatusGenerator xml ouput
+ which is the input for this stylsheet. We should then take that result and format it as 'yyyy-MM-dd' per Google's specs
+ -->
+ <xsl:value-of select="java:format(java:text.SimpleDateFormat.new('yyyy-MM-dd'), java:util.Date.new())"/>
+ </lastmod>
+
+ </url>
+ </xsl:template>
+
+ <!--do nothing with text nodes-->
+ <xsl:template match="*/text()"/>
+
+</xsl:stylesheet>
+
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/resources/stylesheets/linkstatus-google_sitemap.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/resources/stylesheets/linkstatus-google_sitemap_rss.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/resources/stylesheets/linkstatus-google_sitemap_rss.xsl?rev=230489&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/resources/stylesheets/linkstatus-google_sitemap_rss.xsl (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/resources/stylesheets/linkstatus-google_sitemap_rss.xsl Fri Aug 5 10:14:28 2005
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--the input for this stylesheet is the Cocoon LinkStatusGenerator XML output-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="java" exclude-result-prefixes="java">
+ <xsl:output method="xml" indent="yes" />
+ <xsl:param name="request-root"/>
+ <xsl:param name="site-root"/>
+ <xsl:variable name="version.rss" select="'2.0'"/>
+
+ <xsl:template match="/">
+ <rss version="$version.rss">
+ <channel>
+ <!--TODO: these need to be configurable-->
+ <title>Sitemap For a Site Built with Forrest</title>
+ <link><xsl:value-of select="$site-root"/></link>
+ <description>Sitemap file in RSS format for an Apache Forrest Site</description>
+ <xsl:apply-templates select="//*[boolean(@href)]"/>
+ </channel>
+ </rss>
+ </xsl:template>
+
+ <xsl:template match="//*[boolean(@href)]">
+ <item>
+ <link>
+ <xsl:variable name="relativeURI" select="substring-after(@href, $request-root)"/>
+ <xsl:choose>
+ <!--used when generating a static site and the site uri needs to replace the local uri-->
+ <xsl:when test="string-length($site-root) > 1 and $site-root != 'null'">
+ <xsl:value-of select="concat($site-root, $relativeURI)"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@href"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </link>
+
+ <pubDate>
+ <!--
+ TODO-Replace: this is obviously a HACK, hopefully one day this will be provided from the LinkStatusGenerator xml ouput
+ which is the input for this stylsheet. We should then take that result and format it like 'Sun, 19 May 2002 15:21:36 GMT'
+ per the RSS spec for the "pubDate" element
+ -->
+ <xsl:value-of select="java:util.Date.new()"/>
+ </pubDate>
+ </item>
+ </xsl:template>
+
+ <!--do nothing with text nodes-->
+ <xsl:template match="*/text()"/>
+
+</xsl:stylesheet>
+
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/resources/stylesheets/linkstatus-google_sitemap_rss.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/favicon.ico
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/favicon.ico?rev=230489&view=auto
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/favicon.ico
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/group.svg
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/group.svg?rev=230489&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/group.svg (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/group.svg Fri Aug 5 10:14:28 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/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/group.svg
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/icon.png
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/icon.png?rev=230489&view=auto
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/icon.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/project-logo.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/project-logo.gif?rev=230489&view=auto
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/project-logo.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/project.svg
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/project.svg?rev=230489&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/project.svg (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/project.svg Fri Aug 5 10:14:28 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="420" 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" width="1.4" height="1.4">
+ <!-- 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="100%" y="60%" style="font-size:24pt; font-family:Verdana ; text-anchor: end" >
+ <for:project-name />
+ </text>
+ </g>
+</svg>
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/images/project.svg
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/index.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/index.xml?rev=230489&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/index.xml (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/index.xml Fri Aug 5 10:14:28 2005
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
+<document>
+ <header>
+ <title>Google Sitemap plugin for Apache Forrest</title>
+ </header>
+ <body>
+ <section>
+ <title>Welcome to the Google Sitemap plugin for Apache Forrest website</title>
+ <p>
+ This a simple internal plugin which allows users to access a list of pages (currently crawling only
+ *.html and *.xml pages), in google sitemap format, contained in their site linkmap.html by the
+ calling the top-level pages:
+ </p>
+ <ul>
+ <li>
+ <a href="google-sitemap.xml">google-sitemap.xml</a>
+ </li>
+
+ <li>
+ <a href="google-sitemap.rss.xml">google-sitemap.rss.xml</a>
+ </li>
+ </ul>
+ </section>
+ </body>
+</document>
\ No newline at end of file
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/index.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/site.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/site.xml?rev=230489&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/site.xml (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/site.xml Fri Aug 5 10:14:28 2005
@@ -0,0 +1,62 @@
+<?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.logs" 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.logs"/>
+ <changes label="Changes" href="changes.html" description="History of Changes" />
+ <todo label="Todo" href="todo.html" description="Todo List" />
+ <xmlSitemap label="XML Sitemap" href="google-sitemap.xml"/>
+ <xmlSitemap label="RSS Sitemap" href="google-sitemap.rss.xml"/>
+ </sample>
+
+ <!--
+ 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/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/tabs.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/tabs.xml?rev=230489&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/tabs.xml (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/tabs.xml Fri Aug 5 10:14:28 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/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/content/xdocs/tabs.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/skinconf.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/skinconf.xml?rev=230489&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/skinconf.xml (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/skinconf.xml Fri Aug 5 10:14:28 2005
@@ -0,0 +1,297 @@
+<?xml version="1.0"?>
+<!--
+ 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.
+-->
+
+<!--
+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.7-1//EN" "http://forrest.apache.org/dtd/skinconfig-v07-1.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="IMSManifest 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>true</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>false</disable-font-script>
+
+ <!-- mandatory project logo
+ default skin: renders it at the top -->
+ <project-name>Plugin: IMSManifest</project-name>
+ <project-description>IMSManifest plugin for Apache Forrest</project-description>
+<!--
+ <project-url>http://forrest.apache.org/pluginDocs/IMSManifest/</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>Apache Forrest</group-name>
+ <group-description>Apache Forrest</group-description>
+ <group-url>http://forrest.apache.org/</group-url>
+<!--
+ <group-logo>images/group.png</group-logo>
+-->
+ <!-- Alternative static image:
+ <group-logo>images/project-logo.gif</group-logo>
+ <group-logo>images/apache-forrest.png</group-logo>
+ -->
+ <group-logo>images/project-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.ico</favicon-url>
+
+ <!-- The following are used to construct a copyright statement -->
+ <year>2004-2005</year>
+ <vendor>The Apache 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="Plugins" href="http://forrest.apache.org/pluginDocs/"/>
+ <link3 href="" name=""/>
+<!--
+ <link3 name="IMSManifest" href="http://forrest.apache.org/pluginDocs/IMSManifest/"/>
+-->
+ </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="underlined"/>
+
+ <!-- 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>-->
+
+ <!-- Optional message of the day (MOTD).
+ Note: This is only implemented in the pelt skin.
+ If the optional <motd> element is used, then messages will be appended
+ depending on the URI string pattern.
+ motd-option : Specifies a pattern to match and provides small text content.
+ motd-title : This text will be added in brackets after the <html><title>
+ motd-page : This text will be added in a panel on the face of the page,
+ with the "motd-page-url" being the hyperlink "More".
+ Values for the "location" attribute are:
+ page : on the face of the page, e.g. in the spare space of the toc
+ alt : at the bottom of the left-hand navigation panel
+ both : both
+ -->
+ <motd>
+ <motd-option pattern="">
+ <motd-title>v0.7</motd-title>
+ <motd-page location="both">
+ This is documentation for current version v0.7
+ </motd-page>
+ <motd-page-url>http://forrest.apache.org/versions/index.html</motd-page-url>
+ </motd-option>
+ </motd>
+
+ <!--
+ 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;
+ }
+ #footer a { color: #0F3660; }
+ #footer a:visited { color: #009999; }
+ </extra-css>
+
+ <colors>
+ <!-- These values are used for the generated CSS files. -->
+
+ <!-- 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="published" value="#4C6C8F" font="#FFFFFF"/>
+ <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>
+
+ <color name="navstrip" value="#4a6d8c" font="#ffffff" 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="menuheading" value="#cfdced" font="#000000" />
+ <color name="searchbox" value="#4a6d8c" font="#000000"/>
+
+ <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"/>
+ </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="a4" 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>1cm</top>
+ <bottom>1cm</bottom>
+ <inner>1.25cm</inner>
+ <outer>1.5cm</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>true</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>
+ <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/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/src/documentation/skinconf.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/status.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/status.xml?rev=230489&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/status.xml (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/status.xml Fri Aug 5 10:14:28 2005
@@ -0,0 +1,62 @@
+<?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>
+
+ <!-- Define here the Title of the Context you want to display in the Changes pages.
+ id = the context value of actions
+ title = Title of the Context
+ -->
+ <contexts>
+ <context id="code" title="Changes to the Code Base"/>
+ <context id="docs" title="Changes to Documentation"/>
+ <context id="admin" title="Changes to Project Administration"/>
+ <context id="design" title="Changes to Design"/>
+ <context id="build" title="Changes to Build"/>
+ </contexts>
+
+ <changes>
+ <release version="0.1-dev" date="unreleased">
+ <action dev="RBP" type="add" context="code">
+ Initial code contribution from Rasik Pandey (rbpandey@gmail.com)
+ </action>
+ </release>
+ </changes>
+
+ <todo>
+ <actions priority="medium">
+ <action context="design" dev="open">
+ Add support for other google sitemap formats to internal.xmap, see
+ TODO's in internal.xmap
+ </action>
+ <action context="design" dev="open">
+ Need ability to pass parameters from an xml file to
+ 'resources/stylesheets/*', see TODO's in stylesheets
+ </action>
+ <action context="design" dev="open">
+ Need ability to pass parameters from an xml file to the
+ org.apache.cocoon.generation.LinkStatusGenerator declared in
+ internal.xmap for include-name and exclude-name regexp crawl
+ patterns. Currently only *.html and *.xml files are crawled.
+ </action>
+ <action context="design" dev="open">
+ See other TODO's in 'internal.xmap' and 'resources/stylesheets/*'
+ </action>
+ </actions>
+ </todo>
+
+</status>
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.GoogleSitemap/status.xml
------------------------------------------------------------------------------
svn:eol-style = native
|