You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2006/01/03 01:59:28 UTC
svn commit: r365503 [3/4] - in
/forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat: ./ src/
src/documentation/ src/documentation/classes/ src/documentation/conf/
src/documentation/content/ src/documentation/content/xdocs/
src/documentation/...
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/content/xdocs/site.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/content/xdocs/site.xml?rev=365503&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/content/xdocs/site.xml (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/content/xdocs/site.xml Mon Jan 2 16:58:27 2006
@@ -0,0 +1,113 @@
+<?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.
+-->
+
+<!--
+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
+-->
+
+<!-- The label attribute of the outer "site" element will only show
+ in the linkmap (linkmap.html).
+ Use elements project-name and group-name in skinconfig to change name of
+ your site or project that is usually shown at the top of page.
+ No matter what you configure for the href attribute, Forrest will
+ always use index.html when you request http://yourHost/
+ See FAQ: "How can I use a start-up-page other than index.html?"
+-->
+
+<site label="MyProj" href="" xmlns="http://apache.org/forrest/linkmap/1.0"
+ tab="">
+
+ <about label="About">
+ <index label="Index" href="index.html" description="Welcome to MyProj"/>
+ </about>
+ <samples label="Samples" href="samples/">
+ <index href="index.html"/>
+ <sample label="Apache doc v2.0" href="sample.html" description="A nonsense
+ document using all possible elements in the current document v2.0">
+ <top href="#top"/>
+ <section href="#section"/>
+ </sample>
+ <document-v13 label="Apache doc v1.3" href="document-v13.html"
+ description="A nonsense document using all possible elements in the
+ document v1.3">
+ <top href="#top"/>
+ <section href="#section"/>
+ </document-v13>
+ <static label="Static content" href="static.html" description="Static raw
+ un-processed content"/>
+ <linking label="Linking" href="linking.html" description="Linking explained
+ and demonstrated"/>
+ <sample-html label="Embedded HTML" href="embedded_html.html"
+ description="Test of Embedded HTML"/>
+ <sample-ascii-art label="ascii-art page" href="ascii-art.html"
+ description="Sample Ascii Art page"/>
+ <sample-usemap label="usemap" href="usemap.html" description="Client-side
+ imagemap"/>
+ <sample-custom label="Custom Schema" href="customSchema.html"
+ description="Custom XML schema and doctypes"/>
+ <custom-example href="custom.html" description="A custom XML file"/>
+ <xml-entities label="XML entities" href="xml-entities.html"
+ description="Using XML entities for character replacements"/>
+ <faq label="FAQ" href="faq.html" description="Frequently Asked Questions"/>
+ <locationmap label="Locationmap" href="locationmap/index.html"
+ description="Locationmaps allow the user URL space to be different from
+ the storage URL Space"/>
+ <subdir label="Subdir" href="subdir/">
+ <index label="Index" href="index.html" description="Page generated from a
+ sub-directory"/>
+ </subdir>
+ </samples>
+ <plugins label="Plugins" href="pluginDocs/plugins_0_80/">
+ <index label="Index" href="index.html" description="List of plugins
+ available for Forrest"/>
+ </plugins>
+ <files>
+ <hello_print href="hello.pdf"/>
+ <test1 href="test1.html"/>
+ </files>
+ <!--
+ 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"/>
+ <new_content_type href="docs/your-project.html#adding_new_content_type"/>
+ <buildPlugin href="docs/howto/howto-buildPlugin.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.theme.Coat/src/documentation/content/xdocs/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/content/xdocs/tabs.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/content/xdocs/tabs.xml?rev=365503&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/content/xdocs/tabs.xml (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/content/xdocs/tabs.xml Mon Jan 2 16:58:27 2006
@@ -0,0 +1,51 @@
+<?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 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"/>
+ <tab id="samples" label="Samples" dir="samples" indexfile="sample.html">
+ <tab id="samples-index" label="Index" dir="samples" indexfile="index.html"/>
+ <tab id="samples-sample2" label="Sample2" dir="samples" indexfile="static.html"/>
+ </tab>
+ <tab label="Apache XML Projects" href="http://xml.apache.org">
+ <tab label="Forrest" href="http://forrest.apache.org"/>
+ <tab label="Xerces" href="http://xml.apache.org/xerces"/>
+ </tab>
+ <tab id="plugins" label="Plugins" dir="pluginDocs/plugins_0_70" 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.theme.Coat/src/documentation/content/xdocs/tabs.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/schema/catalog.xcat
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/schema/catalog.xcat?rev=365503&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/schema/catalog.xcat (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/schema/catalog.xcat Mon Jan 2 16:58:27 2006
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
+"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
+
+<!-- OASIS XML Catalog for Forrest Documents -->
+<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
+ prefer="public">
+
+<!-- Example catalog entry -->
+<public publicId="-//Acme//DTD Hello Document V1.0//EN"
+ uri="hello-v10.dtd"/>
+
+<!-- Sets of symbols. e.g. for string replacements -->
+<public publicId="-//Apache Forrest//ENTITIES Symbols Project v1.0//EN"
+ uri="symbols-project-v10.ent"/>
+
+</catalog>
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/schema/catalog.xcat
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/coat.fv
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/coat.fv?rev=365503&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/coat.fv (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/coat.fv Mon Jan 2 16:58:27 2006
@@ -0,0 +1,112 @@
+<?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.
+-->
+
+<forrest:views
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
+ <forrest:view type="html">
+ <forrest:css url="coat.css"/>
+
+ <forrest:contract name="siteinfo-meta">
+ <forrest:properties contract="siteinfo-meta">
+ <forrest:property name="siteinfo-meta" nugget="get.build.info">
+ <jx:import uri="cocoon://build-info"/>
+ </forrest:property>
+ </forrest:properties>
+ </forrest:contract>
+
+ <forrest:hook name="container">
+ <forrest:hook name="header">
+ <forrest:hook name="group-logo">
+ <forrest:contract name="branding-logo">
+ <forrest:properties contract="branding-logo">
+ <forrest:property name="branding-logo-name">The Apache Software Foundation</forrest:property>
+ <forrest:property name="branding-logo-description">The Apache Software Foundation</forrest:property>
+ <forrest:property name="branding-logo-url">http://www.apache.org/</forrest:property>
+ <forrest:property name="branding-logo-logo">images/group-logo.gif</forrest:property>
+ </forrest:properties>
+ </forrest:contract>
+ </forrest:hook>
+ </forrest:hook>
+ <forrest:hook name="page">
+ <forrest:hook name="leftbar">
+ <forrest:contract name="nav-section">
+ <forrest:properties contract="nav-section">
+ <forrest:property name="nav-section" nugget="get.navigation">
+ <jx:import uri="cocoon://#{$cocoon/parameters/getRequest}.navigation.xml"/>
+ </forrest:property>
+ <forrest:property name="expanding">false</forrest:property>
+ </forrest:properties>
+ </forrest:contract>
+ <forrest:contract name="search-input">
+ <forrest:properties contract="search-input">
+ <forrest:property name="search-input">
+ <search name="MyProject" domain="mydomain" provider="google"/>
+ </forrest:property>
+ </forrest:properties>
+ </forrest:contract>
+ </forrest:hook>
+<!--
+ You can group elements to a template and call it from any view. e.g.
+<forrest:hook name="export-link">
+ <forrest:contract name="content-xml-link"/>
+ <forrest:contract name="content-pdf-link"/>
+</forrest:hook>
+ can be called as <jx:import uri="cocoon://prepare.tiles.export-link"/>
+ when saved as
+ {project:resources}/templates/{project:theme}/export-link.vt.xml
+ or
+ {project:resources}/templates/export-link.vt.xml
+
+HEADSUP:
+<forrest:call-template name="export-link"/> is *not* working anymore!!!
+-->
+
+ <forrest:hook name="content">
+ <forrest:contract name="content-abstract">
+ <forrest:properties contract="content-abstract">
+ <forrest:property name="content-abstract" nugget="get.abstract">
+ <jx:import uri="cocoon://#{$cocoon/parameters/getRequest}.abstract.xml"/>
+ </forrest:property>
+ </forrest:properties>
+ </forrest:contract>
+ <forrest:contract name="content-main">
+ <forrest:properties contract="content-main">
+ <forrest:property name="content-main" nugget="get.body">
+ <jx:import uri="cocoon://#{$cocoon/parameters/getRequest}.body.xml"/>
+ </forrest:property>
+ </forrest:properties>
+ </forrest:contract>
+ </forrest:hook>
+ </forrest:hook>
+ </forrest:hook>
+ <forrest:hook name="footer">
+ <forrest:contract name="siteinfo-feedback">
+ <forrest:properties contract="siteinfo-feedback">
+ <forrest:property name="siteinfo-feedback">
+ <feedback to="webmaster@foo.com"
+ href="mailto:webmaster@foo.com?subject=Feedback " >
+ Send feedback about the website to:
+ </feedback>
+ </forrest:property>
+ </forrest:properties>
+ </forrest:contract>
+ <forrest:contract name="siteinfo-last-published"/>
+ </forrest:hook>
+ </forrest:view>
+</forrest:views>
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/coat/css/coat.css
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/coat/css/coat.css?rev=365503&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/coat/css/coat.css (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/coat/css/coat.css Mon Jan 2 16:58:27 2006
@@ -0,0 +1,168 @@
+/*
+* Copyright 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.
+*/
+/************************************************************************
+ * Apache Forrest - Coat Theme
+ *
+ ***********************************************************************/
+
+/* header */
+#header {
+ background: #ffffff;
+ padding-bottom: 5px;
+ border-bottom: thin solid #000000;
+}
+
+/* leftbar */
+#leftbar {
+ width: 20%;
+ border: solid #cccccc;
+ border-width: 0px 1px 0px 0px;
+ margin-top: 1em;
+ margin-bottom: 1em;
+ float: left;
+}
+
+/* menu */
+
+#nav-section ul {
+ padding-left: 20px;
+}
+
+.menupagetitle {
+ color: #013396;
+ display: inline;
+ font-weight: bold;
+}
+
+/* The actual content */
+#content {
+ padding-top: 1em;
+ padding-left: 1em;
+ padding-right: 1em;
+ margin-left: 25%;
+}
+
+/* footer */
+#footer {
+ text-align: center;
+ font-size: 80%;
+ margin-top: 5px;
+ padding-top: 5px;
+ border-top: thin solid #000000;
+}
+
+/* note */
+.note {
+ margin: 1em;
+ padding: 1em;
+ border: 2px solid gray;
+}
+
+.note .label {
+ font-weight: bold;
+ text-decoration: underline;
+ font-size: large;
+ text-align: center;
+ padding-bottom: 2px;
+}
+
+/* warning */
+.warning {
+ margin: 1em;
+ padding: 1em;
+ border: 2px solid #980101;
+ background: #f44800;
+}
+
+.warning .label {
+ font-weight: bold;
+ text-decoration: underline;
+ font-size: large;
+ text-align: center;
+ padding-bottom: 2px;
+}
+
+/* search box */
+#search-input {
+ padding-left: 10px;
+ padding-top: 10px;
+ border-top: 4px groove #bab5ab;
+}
+
+#search-input form input {
+ width: 90%;
+}
+
+div.searchbox-input form input {
+ display: block;
+}
+
+/* logo */
+.logoImage {
+ border: 0;
+}
+
+/* abstract */
+
+div.abstract {
+ font-style: italic;
+}
+
+/* HTML elements */
+body {
+ font-size: 95%;
+ font-family: Arial, Geneva, Helvetica, sans-serif;
+ color: black;
+ background-color: white;
+}
+
+h2 {
+ font-size: 130%;
+ font-weight: bold;
+ background-image: url('/images/redarrow.gif.png');
+ background-repeat: no-repeat;
+ background-position: center left;
+ padding-left: 20px;
+}
+
+h3 {
+ font-size: 110%;
+ font-weight: bold;
+}
+
+h4 {
+ font-size: 100%;
+ font-weight: bold;
+}
+
+table {
+ background-color: #dddddd;
+}
+
+td, th {
+ font-size: 95%;
+ font-family: Arial, Geneva, Helvetica, sans-serif;
+ color: black;
+ background-color: white;
+}
+
+pre {
+ margin: 0em 1em 0em 1em;
+ padding: 0em 1em 0em 1em;
+ border: 2px solid #bbbbbb;
+ white-space: pre;
+}
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/coat/css/coat.css
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/css/branding-generic-css.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/css/branding-generic-css.ft?rev=365503&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/css/branding-generic-css.ft (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/css/branding-generic-css.ft Mon Jan 2 16:58:27 2006
@@ -0,0 +1,44 @@
+<?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.
+-->
+<forrest:contract
+ xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="branding-generic-css" type="nugget">
+
+ <!--NOTE:
+ When using the branding-generic-css template as c'n p master just search and replace 'branding-generic-css' by the {contract-name}!-->
+
+ <description>
+ {contract-name} will output {contract-funtion}. This is just a branding-generic-css contract, it will output *nothing*.
+ </description>
+ <usage><![CDATA[<forrest:contract name="branding-generic-css"/>]]></usage>
+ <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="branding-generic-css" inputFormat="xsl">
+ <xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:param name="branding-generic-css-input"/>
+ <xsl:template match="/">
+ <forrest:content>
+ <forrest:part>
+<xsl:value-of select="$branding-generic-css-input"/>
+ </forrest:part>
+ </forrest:content>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/css/branding-theme-profiler.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/css/branding-theme-profiler.ft?rev=365503&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/css/branding-theme-profiler.ft (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/css/branding-theme-profiler.ft Mon Jan 2 16:58:27 2006
@@ -0,0 +1,373 @@
+<?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.
+-->
+<forrest:contract
+ xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="branding-theme-profiler" type="nugget">
+
+ <description>
+ <p>
+ <strong>branding-theme-profiler</strong> provides a quick
+ way to change the colors of the theme (it not a "real" color-theme switcher).
+ </p>
+ <pre class="code"><![CDATA[ A theme is a presentation layer that provides an aggregation of
+a) theme structure information (*.fv)
+b) theme style information (*.css & *.png|jpg|gif|...)
+c) theme functionality (*.js & *.ft)]]> </pre>
+ <p> A "real" theme switcher would change a/b/c. </p>
+ <p> A "real" color-theme switcher should also provide a possibility to
+ change each color with a WEB-GUI. </p>
+ <pre class="code"><![CDATA[ <!--Color group: Forrest: example colors similar to forrest.apache.org-->
+ <color name="breadtrail" value="#cedfef" font="#0F3660" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
+ <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="menu" value="#4a6d8c" font="#cedfef" link="#ffffff" vlink="#ffffff" hlink="#ffcf00"/>
+ <color name="toolbox" value="#4a6d8c"/>
+ <color name="border" value="#294563"/>
+ <color name="dialog" value="#4a6d8c"/>
+ <color name="searchbox" value="#4a6d8c" font="#000000"/>
+ <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"/>]]>
+ </pre>
+ <p>
+ These values are used for the generated CSS files.
+ They essentially "override" the default colors defined in the chosen theme.
+ To customize the colors of any theme,
+ use one or all color elements and change the values
+ of the particular color elements that you wish to change.
+ Note that by default, if you do not overide them means that
+ the default colors provided by the theme are being used.
+ </p>
+ <div class="warning">
+ <div class="label">fixme</div>
+ <div class="content">We need to use naming convention for the naming. To overcome following comment:<br/>
+ Some of the element names are obscure, so comments are added to show how
+ the "pelt" theme uses them, other themes might use these elements in a different way or do not support them at all.<br/>
+ Tip: temporarily change the value of an element to red (#ff0000) and see the effect.
+ </div>
+ </div>
+ <div class="note">
+ <div class="label">Comments</div>
+ <div class="content">
+ <p>
+ pelt: breadtrail: the strip at the top of the page and the second strip under the tabs<br/>
+ pelt: header: top strip containing project and group logos<br/>
+ pelt: heading|subheading: section headings within the content<br/>
+ pelt: navstrip: the strip under the tabs which contains the published date<br/>
+ pelt: menu: the left-hand navigation panel<br/>
+ pelt: toolbox: the selected menu item<br/>
+ pelt: searchbox: the background of the searchbox<br/>
+ pelt: border: line border around selected menu item<br/>
+ pelt: body: any remaining parts, e.g. the bottom of the page<br/>
+ pelt: footer: the second from bottom strip containing credit logos and published date<br/>
+ pelt: feedback: the optional bottom strip containing feedback link<br/>
+ </p>
+ </div>
+ </div>
+ </description>
+ <usage><![CDATA[<forrest:contract name="branding-theme-profiler">
+ <forrest:property name="branding-theme-profiler-theme">pelt</forrest:property>
+ <forrest:property name="branding-theme-profiler">
+ <color name="header" value="#ff0000"/>
+ <!-- more colors -->
+ </forrest:property>
+</forrest:contract>]]></usage>
+ <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="branding-theme-profiler" inputFormat="xsl">
+ <xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:param name="defaultVariables" select="'test.html'"/>
+ <xsl:param name="branding-theme-profiler"/>
+ <xsl:param name="branding-theme-profiler-theme"/>
+ <xsl:variable name="skin-img-dir" select="$defaultVariables/*/*[@name='skin-img-dir']/@value"/>
+ <xsl:variable name="header-input"
+ select="substring-after($branding-theme-profiler/color[@name='header']/@value, '#')"/>
+ <xsl:variable name="header">
+ <xsl:if test="$header-input=''">000000</xsl:if>
+ <xsl:if test="not($header-input='')">
+ <xsl:value-of select="$header-input"/>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:variable name="body-input"
+ select="substring-after($branding-theme-profiler/color[@name='body']/@value, '#')"/>
+ <xsl:variable name="body">
+ <xsl:if test="$body-input=''">ffffff</xsl:if>
+ <xsl:if test="not($body-input='')">
+ <xsl:value-of select="$body-input"/>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:variable name="searchbox-input"
+ select="substring-after($branding-theme-profiler/color[@name='searchbox']/@value, '#')"/>
+ <xsl:variable name="searchbox">
+ <xsl:if test="$searchbox-input=''">000000</xsl:if>
+ <xsl:if test="not($searchbox-input='')">
+ <xsl:value-of select="$searchbox-input"/>
+ </xsl:if>
+ </xsl:variable>
+ <!--FIXME: Add default values!
+ If not it can result in
+ <link message="http://localhost/:-1
+The attribute "rx of the element ><ellipse> can not be negative" uri="themes/images/roundcorner-t-l-5-bg003366-stroke-fg.png">
+ <referrer uri="samples/index.html"/>
+ </link>
+ Maybe like above. ;-)
+ -->
+ <xsl:variable name="tab-selected"
+ select="substring-after($branding-theme-profiler/color[@name='tab-selected']/@value, '#')"/>
+ <xsl:variable name="tab-unselected"
+ select="substring-after($branding-theme-profiler/color[@name='tab-unselected']/@value, '#')"/>
+ <xsl:variable name="menu"
+ select="substring-after($branding-theme-profiler/color[@name='menu']/@value, '#')"/>
+ <xsl:template match="/">
+ <forrest:content>
+ <forrest:part>
+/* branding-theme-profiler-theme: <xsl:value-of select="normalize-space($branding-theme-profiler-theme)"/> */
+#header .round-top-left-small {
+ background-image: url(<xsl:value-of select="$skin-img-dir"/>/roundcorner-t-l-5-bg<xsl:value-of select="normalize-space($header)"/>-stroke<xsl:value-of select="normalize-space($searchbox)"/>-fg<xsl:value-of select="normalize-space($searchbox)"/>.png);
+ background-repeat: no-repeat;
+ background-position: top left;
+}
+#header .round-top-right-small {
+ background-image: url(<xsl:value-of select="$skin-img-dir"/>/roundcorner-t-r-5-bg<xsl:value-of select="normalize-space($header)"/>-stroke<xsl:value-of select="normalize-space($searchbox)"/>-fg<xsl:value-of select="normalize-space($searchbox)"/>.png);
+ background-repeat: no-repeat;
+ background-position: top right;
+}
+#nav-main li {
+ background-image: url(<xsl:value-of select="$skin-img-dir"/>/roundcorner-t-r-5-bg<xsl:value-of select="normalize-space($header)"/>-stroke<xsl:value-of select="normalize-space($tab-unselected)"/>-fg<xsl:value-of select="normalize-space($tab-unselected)"/>.png);
+ background-repeat: no-repeat;
+ background-position: top right;
+}
+#nav-main li a {
+ background-image: url(<xsl:value-of select="$skin-img-dir"/>/roundcorner-t-l-5-bg<xsl:value-of select="normalize-space($header)"/>-stroke<xsl:value-of select="normalize-space($tab-unselected)"/>-fg<xsl:value-of select="normalize-space($tab-unselected)"/>.png);
+ background-repeat: no-repeat;
+ background-position: top left;
+}
+#nav-main .current {
+ background-image: url(<xsl:value-of select="$skin-img-dir"/>/roundcorner-t-r-5-bg<xsl:value-of select="normalize-space($header)"/>-stroke<xsl:value-of select="normalize-space($tab-selected)"/>-fg<xsl:value-of select="normalize-space($tab-selected)"/>.png);
+ background-repeat: no-repeat;
+ background-position: top right;
+}
+#nav-main .current a {
+ background-image: url(<xsl:value-of select="$skin-img-dir"/>/roundcorner-t-l-5-bg<xsl:value-of select="normalize-space($header)"/>-stroke<xsl:value-of select="normalize-space($tab-selected)"/>-fg<xsl:value-of select="normalize-space($tab-selected)"/>.png);
+ background-repeat: no-repeat;
+ background-position: top left;
+}
+#roundbottom {
+ background-image: url(<xsl:value-of select="$skin-img-dir"/>/roundcorner-b-r-15-bg<xsl:value-of select="normalize-space($body)"/>-stroke<xsl:value-of select="normalize-space($menu)"/>-fg<xsl:value-of select="normalize-space($menu)"/>.png);
+ background-repeat: no-repeat;
+ background-position: bottom right;
+}
+#roundbottomLeft {
+ background-image: url(<xsl:value-of select="$skin-img-dir"/>/roundcorner-b-l-15-bg<xsl:value-of select="normalize-space($body)"/>-stroke<xsl:value-of select="normalize-space($menu)"/>-fg<xsl:value-of select="normalize-space($menu)"/>.png);
+ background-repeat: no-repeat;
+ background-position: bottom left;
+}
+ <xsl:apply-templates select="$branding-theme-profiler/color"/>
+ </forrest:part>
+ </forrest:content>
+ </xsl:template>
+
+ <!-- ==================== main block colors ============================ -->
+ <xsl:template match="color[@name='header']">
+#container { background-color: <xsl:value-of select="@value"/>;} </xsl:template>
+
+<xsl:template match="color[@name='tab-selected']">
+#nav-main .current { background-color: <xsl:value-of select="@value"/>;}
+#nav-main .current a:link { color: <xsl:value-of select="@link"/>; }
+#nav-main .current a:visited { color: <xsl:value-of select="@vlink"/>; }
+#nav-main .current a:hover { color: <xsl:value-of select="@hlink"/>; }
+</xsl:template>
+
+<xsl:template match="color[@name='tab-unselected']">
+#nav-main li { background-color: <xsl:value-of select="@value"/> ;}
+#nav-main li a:link { color: <xsl:value-of select="@link"/>; }
+#nav-main li a:visited { color: <xsl:value-of select="@vlink"/>; }
+#nav-main li a:hover { color: <xsl:value-of select="@hlink"/>; }
+</xsl:template>
+
+<xsl:template match="color[@name='subtab-selected']">
+#level2tabs { background-color: <xsl:value-of select="@value"/> ;}
+#level2tabs a:link { color: <xsl:value-of select="@link"/>; }
+#level2tabs a:visited { color: <xsl:value-of select="@vlink"/>; }
+#level2tabs a:hover { color: <xsl:value-of select="@hlink"/>; }
+</xsl:template>
+
+<!--xsl:template match="color[@name='subtab-unselected']">
+.level2tabstrip { background-color: <xsl:value-of select="@value"/>;}
+.datenote { background-color: <xsl:value-of select="@value"/>;}
+.level2tabstrip.unselected a:link { color: <xsl:value-of select="@link"/>; }
+.level2tabstrip.unselected a:visited { color: <xsl:value-of select="@vlink"/>; }
+.level2tabstrip.unselected a:hover { color: <xsl:value-of select="@hlink"/>; }
+</xsl:template-->
+
+<xsl:template match="color[@name='heading']">
+.heading { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='subheading']">
+.boxed { background-color: <xsl:value-of select="@value"/>;}
+.underlined_5 {border-bottom: solid 5px <xsl:value-of select="@value"/>;}
+.underlined_10 {border-bottom: solid 10px <xsl:value-of select="@value"/>;}
+table caption {
+background-color: <xsl:value-of select="@value"/>;
+color: <xsl:value-of select="@font"/>;
+}
+</xsl:template>
+<xsl:template match="color[@name='feedback']">
+#feedback {
+color: <xsl:value-of select="@font"/>;
+background: <xsl:value-of select="@value"/>;
+text-align: <xsl:value-of select="@align"/>;
+}
+#feedback #feedbackto {
+color: <xsl:value-of select="@font"/>;
+}
+</xsl:template>
+
+<xsl:template match="color[@name='breadtrail']">
+.breadtrail {
+background: <xsl:value-of select="@value"/>;
+color: <xsl:value-of select="@font"/>;
+}
+.breadtrail a:link { color: <xsl:value-of select="@link"/>; }
+.breadtrail a:visited { color: <xsl:value-of select="@vlink"/>; }
+.breadtrail a:hover { color: <xsl:value-of select="@hlink"/>; }
+</xsl:template>
+<!--Fix for other (old) profiles-->
+<xsl:template match="color[@name='navstrip']">
+#publishedStrip {
+color: <xsl:value-of select="@font"/>;
+background: <xsl:value-of select="@value"/>;
+}
+</xsl:template>
+<!--has to go after the nav-strip (no 'navstrip')-->
+<xsl:template match="color[@name='published']">
+#publishedStrip {
+color: <xsl:value-of select="@font"/>;
+background: <xsl:value-of select="@value"/>;
+}
+</xsl:template>
+<xsl:template match="color[@name='toolbox']">
+#nav-section .menupagetitle { background-color: <xsl:value-of select="@value"/>}
+</xsl:template>
+
+<xsl:template match="color[@name='border']">
+#leftbar { border-color: <xsl:value-of select="@value"/>;}
+#nav-section .menupagetitle { border-color: <xsl:value-of select="@value"/>;}
+#nav-section .menupageitemgroup { border-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='menu']">
+#leftbar { background-color: <xsl:value-of select="@value"/>;}
+#leftbar { color: <xsl:value-of select="@font"/>;}
+#leftbar a:link { color: <xsl:value-of select="@link"/>;}
+#leftbar a:visited { color: <xsl:value-of select="@vlink"/>;}
+#leftbar a:hover {
+background-color: <xsl:value-of select="@value"/>;
+color: <xsl:value-of select="@hlink"/>;}
+</xsl:template>
+<xsl:template match="color[@name='dialog']">
+#nav-section .menupagetitle { color: <xsl:value-of select="@font"/>;}
+#nav-section .menupageitemgroup {
+background-color: <xsl:value-of select="@value"/>;
+}
+#nav-section .menupageitem {
+color: <xsl:value-of select="@font"/>;
+}
+#nav-section .menupageitem a:link { color: <xsl:value-of select="@link"/>;}
+#nav-section .menupageitem a:visited { color: <xsl:value-of select="@vlink"/>;}
+#nav-section .menupageitem a:hover {
+background-color: <xsl:value-of select="@value"/>;
+color: <xsl:value-of select="@hlink"/>;
+}
+</xsl:template>
+<xsl:template match="color[@name='menuheading']">
+#leftbar h1 {
+color: <xsl:value-of select="@font"/>;
+background-color: <xsl:value-of select="@value"/>;
+}
+</xsl:template>
+<xsl:template match="color[@name='searchbox']">
+#header .searchbox {
+background-color: <xsl:value-of select="@value"/> ;
+color: <xsl:value-of select="@font"/>;
+}
+</xsl:template>
+
+<xsl:template match="color[@name='body']">
+body{
+background-color: <xsl:value-of select="@value"/>;
+color: <xsl:value-of select="@font"/>;
+}
+a:link { color:<xsl:value-of select="@link"/>}
+a:visited { color:<xsl:value-of select="@vlink"/>}
+a:hover { color:<xsl:value-of select="@hlink"/>}
+
+</xsl:template>
+
+<xsl:template match="color[@name='footer']">
+#footer { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+
+<!-- ==================== other colors ============================ -->
+<xsl:template match="color[@name='highlight']">
+.highlight { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='fixme']">
+.fixme { border-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='note']">
+.note { border-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='warning']">
+.warning { border-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='code']">
+.code { border-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='table']">
+.ForrestTable { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='table-cell']">
+.ForrestTable td { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/ajax-example.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/ajax-example.ft?rev=365503&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/ajax-example.ft (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/ajax-example.ft Mon Jan 2 16:58:27 2006
@@ -0,0 +1,67 @@
+<?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.
+-->
+<forrest:contract
+ xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="ajax-example" type="nugget">
+
+ <description>
+ <p>
+ This contract is an example how to use ajax in forrest.
+ </p>
+ <div class="warning">
+ <div class="label">Warning</div>
+ <div class="content">You need to include <![CDATA[<forrest:contract name="helper-prototype-ajax"/>]]>
+ in your view!!! If you are not, it will not work.</div>
+ </div>
+ <div class="warning">
+ <div class="label">Warning</div>
+ <div class="content">This example <strong>only</strong> works in <strong>http://localhost:8888/</strong>.</div>
+ </div>
+ </description>
+ <usage><![CDATA[<forrest:contract name="ajax-example"/>]]></usage>
+ <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="html" name="ajax-example" inputFormat="xsl" body="true" head="true">
+ <xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template name="ajax-example-head">
+ <script type="text/javascript">
+ function preview(div){
+ $(div).innerHTML="please stand by";
+ var url = 'http://localhost:8888/less.contract.project-ajax-example.xml';
+ new Ajax.Updater({success: div}, url, {method: 'get', onFailure: reportError});
+ }
+ function reportError(request){
+ alert('Sorry. There was an error.');
+ }
+ </script>
+ </xsl:template>
+ <xsl:template name="ajax-example-body">
+ <div class="warning">
+ <div class="label">Warning</div>
+ <div class="content">This example <strong>only</strong> works in <strong>http://localhost:8888/</strong>.</div>
+ </div>
+ <p>
+ This is an example how to use AJAX in forrest. The <a href="javascript:preview('testDiv')">test</a>
+ will update the testDiv with the output of url = 'http://localhost:8888/less.contract.project-ajax-example.xml';
+ </p>
+ <div id="testDiv">testDiv</div>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/branding-css-links.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/branding-css-links.ft?rev=365503&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/branding-css-links.ft (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/branding-css-links.ft Mon Jan 2 16:58:27 2006
@@ -0,0 +1,125 @@
+<?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.
+-->
+<forrest:contract
+ xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="branding-css-links">
+
+ <description>
+ <p>branding-css-links will output html link elements for css usage. </p>
+ <p>The contract includes css files which are passed in parameter with the following syntax :</p>
+ <source><![CDATA[<css url="layout.]]><em>media</em>.css" [media="screen|print"] [theme="themeName"]<![CDATA[/>]]></source>
+ <ul>
+ <li><strong>url</strong> attribute indicates the name of the css file, the dispatcher
+ searches for this file in the following order :
+ <ul>
+ <li>Does the css file exists in the following directory - if yes, use this one :
+ <source>$PROJECT_HOME/src/documentation/resources/themes/yourtheme/css/</source>
+ </li>
+ <li>Otherwise, does the css file exists in the following directory - if yes, use this one :
+ <source>$FORREST_HOME/whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/yourtheme/css/</source>
+ </li>
+ <li>Otherwise, does the css file exists in the following directory - if yes, use this one :
+ <source>$FORREST_HOME/whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/common/css/</source>
+ </li>
+ </ul>
+ </li>
+ <li><strong>media</strong> to the browser the stylesheets to use
+ depending on the detination media :
+ <ul>
+ <li>screen : the stylesheet is used with the browser displaying the page on the screen,</li>
+ <li>print : the stylesheet is used while printing the document - or print preview...</li>
+ <li>othervalues can also be managed by browsers.cf. <a href="http://www.w3.org/TR/REC-CSS2/media.html#media-types" class="fork">W3C Media Types</a>.</li>
+ </ul>
+ <div class="note">
+ <div class="label">Firefox has a bug !</div>
+ <div class="content">
+ <p>There is a bug with firefox which does not manage media attribute while printing, the bug is already declared twice in bugzilla, so we are waiting...</p>
+ </div>
+ </div>
+ </li>
+ <li><strong>theme</strong> attribute indicates to the browser for which theme this
+ stylesheet should be used, letting you add several css files
+ corresponding to different themes of the same page.
+ </li>
+ </ul>
+ </description>
+ <usage><![CDATA[<forrest:contract name="branding-css-links">
+ <forrest:property name="branding-css-links-input">
+ <css url="common.css"/>
+ <css .../>
+ </forrest:property>
+ </forrest:contract>]]></usage>
+ <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="branding-css-links" inputFormat="xsl">
+ <xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <xsl:param name="defaultVariables" select="'test.html'"/>
+ <xsl:param name="branding-css-links-input"/>
+ <xsl:variable name="root" select="$defaultVariables/*/*[@name='root']/@value"/>
+ <xsl:template match="/">
+ <forrest:content>
+ <forrest:part xpath="/html/head">
+ <xsl:apply-templates select="$branding-css-links-input"/>
+ </forrest:part>
+ </forrest:content>
+ </xsl:template>
+ <xsl:template
+ match="css[@url]">
+ <xsl:copy-of select="@rel"/>
+ <link type="text/css">
+ <xsl:choose>
+ <xsl:when test="@rel">
+ <xsl:attribute name="rel">
+ <xsl:value-of select="@rel"/>
+ </xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="rel">stylesheet</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="@theme">
+ <xsl:attribute name="title">
+ <xsl:value-of select="@theme"/>
+ </xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="title">
+ <xsl:value-of select="@url"/>
+ </xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:attribute name="href"> <xsl:value-of select="$root"/>themes/<xsl:value-of
+ select="@url"/> </xsl:attribute>
+ <xsl:if test="@media">
+ <xsl:attribute name="media">
+ <xsl:value-of select="@media"/>
+ </xsl:attribute>
+ </xsl:if>
+ </link>
+ </xsl:template>
+ <xsl:template match="css[not(@url)]">
+ <style type="text/css">
+ <xsl:value-of select="."/>
+ </style>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/branding-theme-switcher.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/branding-theme-switcher.ft?rev=365503&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/branding-theme-switcher.ft (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/branding-theme-switcher.ft Mon Jan 2 16:58:27 2006
@@ -0,0 +1,106 @@
+<?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.
+-->
+<forrest:contract
+ xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="branding-theme-switcher" type="nugget">
+
+ <description>
+ <p> <strong>branding-theme-switcher</strong> provides a way to switch the
+ underlying stylesheets (b). </p>
+ <pre class="code"><![CDATA[A theme is a presentation layer that provides an aggregation of
+a) theme structure information (*.fv)
+b) theme style information (*.css & *.png|jpg|gif|...)
+c) theme functionality (*.js & *.ft)]]> </pre>
+ <p> A "real" theme switcher would change a/b/c. </p>
+ <p> A "real" color-theme switcher should also provide a possibility to
+ change each color with a WEB-GUI. </p>
+ <div class="note">
+ <div class="label">Note</div>
+ <div class="content">
+ branding-theme-switcher-profiler and branding-theme-switcher-defaultTheme are required!<br/>
+ branding-theme-switcher-profiler {true|false} only works on the defaultTheme.<br/>
+ normally you are not using an "a link" (branding-theme-switcher-a) and a "selectbox"
+ (branding-theme-switcher-select) switcher at the same time in the same position, so uncomment the one you want.
+ </div>
+ </div>
+ <p>
+ In combination with the branding-theme-profiler this contract provides a quick way to create new themes. The default theme
+ can have unlimited color derivatives. If you turn on the color profiling this contract will activate the default theme in combination
+ with the profiling styles.
+ </p>
+ </description>
+ <usage><![CDATA[<forrest:contract name="branding-theme-switcher">
+ <forrest:properties contract="branding-theme-switcher">
+ <!-- branding-theme-switcher-profiler and branding-theme-switcher-defaultTheme are required -->
+ <!-- branding-theme-switcher-profiler {true|false} only works on the defaultTheme -->
+ <forrest:property name="branding-theme-switcher-profiler" activated="true"/>
+ <forrest:property name="branding-theme-switcher-defaultTheme" defaultTheme="Pelt"/>
+ <!-- normally you are not using an "a link" (branding-theme-switcher-a) and a
+ "selectbox" (branding-theme-switcher-select) switcher at the same time
+ in the same position, so uncomment the one you want. -->
+ <!--<forrest:property name="branding-theme-switcher-a" seperator="|" caption="Theme switcher: "/>-->
+ <!--<forrest:property name="branding-theme-switcher-select" caption="Theme switcher: "/>-->
+ </forrest:properties>
+</forrest:contract>]]></usage>
+ <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="html" name="branding-theme-switcher" inputFormat="xsl" body="true" head="true">
+ <xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template name="branding-theme-switcher-head">
+ <xsl:param name="branding-theme-switcher-defaultTheme" />
+ <xsl:param name="branding-theme-switcher-profiler" />
+ <xsl:variable name="defaultTheme" select="$branding-theme-switcher-defaultTheme/@defaultTheme"/>
+ <xsl:variable name="profilerActivated" select="$branding-theme-switcher-profiler/@activated"/>
+ <script type="text/javascript" language="javascript"
+ src="{$root}themes/cssStyleSwitcher.js"> </script>
+ <script type="text/javascript">
+ initBrandingThemeSwitcher('<xsl:value-of
+ select="$defaultTheme"/>','<xsl:value-of
+ select="$profilerActivated"/>'); </script>
+ </xsl:template>
+ <xsl:template name="branding-theme-switcher-body">
+ <xsl:param name="branding-theme-switcher-a" select="false"/>
+ <xsl:param name="branding-theme-switcher-select" select="false"/>
+ <xsl:variable name="seperator" select="$branding-theme-switcher-a/@seperator"/>
+ <xsl:variable name="caption" select="$branding-theme-switcher-a/@caption"/>
+ <xsl:variable name="captionSelect" select="$branding-theme-switcher-select/@caption"/>
+ <xsl:if test="$branding-theme-switcher-a!='false'">
+ <xsl:value-of select="$caption"/>
+ <span id="theme-switcher-dyn-a">dynamic theme switcher links</span>
+ <script type="text/javascript">
+ initASwitcher('theme-switcher-dyn-a','<xsl:value-of
+ select="$seperator"/>'); </script>
+ </xsl:if>
+ <xsl:if test="$branding-theme-switcher-select!='false'">
+ <div id="theme-switcher-dyn">
+ <form action="">
+ <xsl:value-of select="$captionSelect"/>
+ <select id="themeSwitcherSelect"
+ onchange="switchThemeSelect(this);">
+ <option value="-1">Select a theme</option>
+ </select>
+ </form>
+ <script type="text/javascript">
+ initSelectSwitcher('themeSwitcherSelect'); </script>
+ </div>
+ </xsl:if>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/nav-main-testing-foo.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/nav-main-testing-foo.ft?rev=365503&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/nav-main-testing-foo.ft (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/nav-main-testing-foo.ft Mon Jan 2 16:58:27 2006
@@ -0,0 +1,44 @@
+<?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.
+-->
+<forrest:contract name="nav-main-testing-foo" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ nav-main will output the main or primary navigation AKA tabs.
+ </description>
+ <usage><![CDATA[<forrest:contract name="nav-main-testing-foo" nugget="cocoon://#{$cocoon/parameters/getRequest}.navigation.xml"/>]]>
+ </usage>
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="html" name="nav-main-testing-foo" inputFormat="xsl" >
+ <xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:param name="defaultVariables" select="'test.html'"/>
+ <xsl:variable name="path" select="$defaultVariables/*/*[@name='path']/@value"/>
+ <xsl:template match="/" >
+ <forrest:content>
+ <forrest:part> nav-main-testing-foo testing - no @xpath<br/>
+ Path: <xsl:value-of select="$path"/><br/>
+ skin-img-dir: <xsl:copy-of select="$defaultVariables/*/*"/> value:
+ <xsl:value-of select="$defaultVariables/*/*[@name='skin-img-dir']/@value"/>
+ <!--copy-of -->
+ </forrest:part>
+ </forrest:content>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/nav-main-testing.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/nav-main-testing.ft?rev=365503&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/nav-main-testing.ft (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/html/nav-main-testing.ft Mon Jan 2 16:58:27 2006
@@ -0,0 +1,49 @@
+<?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.
+-->
+<forrest:contract name="nav-main-testing" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ nav-main will output the main or primary navigation AKA tabs.
+ </description>
+ <usage><![CDATA[<forrest:contract name="nav-main-testing" nugget="cocoon://#{$cocoon/parameters/getRequest}.navigation.xml"/>]]>
+ </usage>
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="html" name="nav-main-testing" inputFormat="xsl" >
+
+ <xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:param name="nav-main-testing" select="/"/>
+ <xsl:param name="nav-main-testing-test1" select="'test'"/>
+ <xsl:template match="/" >
+ <forrest:content>
+ <forrest:part>
+ value-of select="$nav-main-testing-test1": <xsl:value-of select="$nav-main-testing-test1"/>
+ <div id="tabs"> <xsl:comment>+ |start Tabs new +</xsl:comment>
+ <xsl:copy-of
+ select="$nav-main-testing/navigation/tab/ul[@id='nav-main']"/>
+ <xsl:comment>+ |end Tabs +</xsl:comment> </div>
+ </forrest:part>
+ <forrest:part xpath="/html/head">
+ xXx nav-main-testing-foo testing - xpath="/html/head"
+ </forrest:part>
+ </forrest:content>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/js/cssStyleSwitcher.js
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/js/cssStyleSwitcher.js?rev=365503&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/js/cssStyleSwitcher.js (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/js/cssStyleSwitcher.js Mon Jan 2 16:58:27 2006
@@ -0,0 +1,179 @@
+/*
+* 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.
+*/
+
+/*
+* Note: this script depends on prototype.js
+*
+* cssStyleSwitcher.js
+*/
+var THEME_SWITCHER_PROFILING=false;
+var THEME_SWITCHER_DEFAULT_THEME="";
+function switchTheme(title){
+ var linkElements= document.getElementsByTagName("link"); // get all linked objects
+ for(var i = 0; i <linkElements.length; i++) {
+ var a = linkElements[i]; // get linked object
+ //deactivate all screen css
+ if (a.getAttribute("media") == "screen") {
+ a.disabled=true;
+ }
+ }
+ //activate the selected theme
+ for(var i = 0; i <linkElements.length; i++) {
+ var a = linkElements[i]; // get all linked objects
+ if (a.getAttribute("media") == "screen" ) {
+/* theme profiling will only change a couple of stylesheets so we need to include
+ the default theme on which the profiling is based on*/
+ if (THEME_SWITCHER_PROFILING){
+ if(title.lastIndexOf(THEME_SWITCHER_DEFAULT_THEME)>-1){
+ var profiled = (a.getAttribute("title") == THEME_SWITCHER_DEFAULT_THEME || a.getAttribute("title") == title)?true:false;
+ a.disabled = (profiled)?false:true;
+ }else{
+ a.disabled = (a.getAttribute("title") == title)?false:true;
+ }
+ }else{
+ a.disabled = (a.getAttribute("title") == title)?false:true;
+ }
+ }
+ }
+ var styleElements= document.getElementsByTagName("style");// get all inline style objects
+ for(var i = 0; i <styleElements.length; i++) {
+ var a = styleElements[i];
+ //deactivate all screen css
+ if (a.getAttribute("media") == "screen") {
+ a.disabled=true;
+ }
+ }
+ //activate the selected theme
+ for(var i = 0; i <styleElements.length; i++) {
+ var a = styleElements[i]; // get inline style object
+ if (a.getAttribute("media") == "screen" ) {
+/* theme profiling will only change a couple of stylesheets so we need to include
+ the default theme on which the profiling is based on*/
+ if (THEME_SWITCHER_PROFILING){
+ if(title.lastIndexOf(THEME_SWITCHER_DEFAULT_THEME)>-1){
+ var profiled = (a.getAttribute("title") == THEME_SWITCHER_DEFAULT_THEME || a.getAttribute("title") == title)?true:false;
+ a.disabled = (profiled)?false:true;
+ }else{
+ a.disabled = (a.getAttribute("title") == title)?false:true;
+ }
+ }else{
+ a.disabled = (a.getAttribute("title") == title)?false:true;
+ }
+ }
+ }
+ createCookie("style", title, 365);
+} // end method switchTheme(title)
+/* change the active (preferred) stylesheet to the selected one and save it */
+function switchThemeSelect(selBox){
+ var selIndex= selBox.selectedIndex; // get the selected index
+ var title= selBox.options[selIndex].value; // get the value of this index
+ if (title == "-1") return false;
+ switchTheme(title); // do the actual switch
+} // end method switchThemeSelect()
+function initSelectSwitcher(themeSwitcherSelect){
+ var select = $(themeSwitcherSelect);
+ var themes=aviableThemes();
+ var tempTheme = themes.split(';');
+ for(var xi=0;xi < tempTheme.length;xi++) {
+ if (tempTheme[xi].length>1){
+ select.options[select.options.length] = new Option(tempTheme[xi]);
+ }
+ }
+}
+function initASwitcher(themeSwitcherA,seperator){
+ var select = $(themeSwitcherA); // get the object where we want to insert the response
+ var output = "";// initialize output object
+ var themes = aviableThemes(); // get all aviable themes
+ var tempTheme = themes.split(';'); // get an array out of the themes
+ for(var xi=0;xi < tempTheme.length;xi++) {
+ if (tempTheme[xi].length>1){
+ output=output+"<a href=\"javascript:switchTheme('"+tempTheme[xi]+"')\">"+tempTheme[xi]+"</a>"+seperator; // add the theme to an a object
+ }
+ }
+ var response = output.substring(0, output.lastIndexOf(seperator)); // clean the output trailing seperator
+ $(select).innerHTML=response; // set the response
+}
+function aviableThemes(){
+ var currentTheme;
+ var themes="";
+ var linkElements= document.getElementsByTagName("link");
+ for(var i = 0; i <linkElements.length; i++) {
+ var a = linkElements[i];
+ if (a.getAttribute("media") == "screen" && a.getAttribute("title")) {
+ currentTheme=a.getAttribute("title");
+ var tempTheme = themes.split(';');
+ var contained = false;
+ for(var xi=0;xi < tempTheme.length;xi++) {
+ var theme = tempTheme[xi];
+ if (theme==currentTheme){
+ contained=true;
+ }
+ }
+ if (contained==false){
+ themes=themes+currentTheme+";";
+ }
+ }
+ }
+ var styleElements= document.getElementsByTagName("style");
+ for(var i = 0; i <styleElements.length; i++) {
+ var a = styleElements[i];
+ if (a.getAttribute("media") == "screen" && a.getAttribute("title")) {
+ currentTheme=a.getAttribute("title");
+ var tempTheme = themes.split(';');
+ var contained = false;
+ for(var xi=0;xi < tempTheme.length;xi++) {
+ var theme = tempTheme[xi];
+ if (theme==currentTheme){
+ contained=true;
+ }
+ }
+ if (contained==false){
+ themes=themes+currentTheme+";";
+ }
+ }
+ }
+ return themes;
+}
+
+/*CookieStuff*/
+function createCookie(name, value, days) {
+ var date = new Date();
+ date.setTime(date.getTime() + (days*24*60*60*1000));
+ var expires = "; expires="+date.toGMTString();
+ document.cookie = name + "=" + value + expires + "; path=/";
+}
+function readCookie(name) {
+ var nameEQ = name + "=";
+ var ca = document.cookie.split(';');
+ for(var i=0;i < ca.length;i++) {
+ var c = ca[i];
+ while (c.charAt(0)==' ') c = c.substring(1,c.length);
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
+ }
+ return null;
+}
+function initBrandingThemeSwitcher(defaultTheme,profilerActivated){
+ THEME_SWITCHER_PROFILING=profilerActivated;
+ THEME_SWITCHER_DEFAULT_THEME=defaultTheme;
+ var cookie = readCookie("style");
+ switchTheme((cookie)?cookie:defaultTheme);
+}
+//FIXME: Extract the following method to a helper class
+function startsWith(st, pref)
+{
+ return( (pref.length > 0) && (st.substring(0, pref.length) == pref) );
+}
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/resources/themes/common/js/cssStyleSwitcher.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/sitemap.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/sitemap.xmap?rev=365503&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/sitemap.xmap (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/sitemap.xmap Mon Jan 2 16:58:27 2006
@@ -0,0 +1,72 @@
+<?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.
+-->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+ <map:components>
+ <map:actions>
+ <map:action logger="sitemap.action.sourcetype" name="sourcetype" src="org.apache.forrest.sourcetype.SourceTypeAction">
+ <sourcetype name="hello-v1.0">
+ <document-declaration public-id="-//Acme//DTD Hello Document V1.0//EN" />
+ </sourcetype>
+ </map:action>
+ </map:actions>
+
+ <map:selectors default="parameter">
+ <map:selector logger="sitemap.selector.parameter" name="parameter" src="org.apache.cocoon.selection.ParameterSelector" />
+ </map:selectors>
+ </map:components>
+
+ <map:resources>
+ <map:resource name="transform-to-document">
+ <map:act type="sourcetype" src="{src}">
+ <map:select type="parameter">
+ <map:parameter name="parameter-selector-test" value="{sourcetype}" />
+
+ <map:when test="hello-v1.0">
+ <map:generate src="{project:content.xdocs}{../../1}.xml" />
+ <map:transform src="{project:resources.stylesheets}/hello2document.xsl" />
+ <map:serialize type="xml-document"/>
+ </map:when>
+ </map:select>
+ </map:act>
+ </map:resource>
+ </map:resources>
+
+ <map:pipelines>
+ <map:pipeline>
+ <map:match pattern="old_site/*.html">
+ <map:select type="exists">
+ <map:when test="{project:content}{1}.html">
+ <map:read src="{project:content}{1}.html" mime-type="text/html"/>
+ <!--
+ Use this instead if you want JTidy to clean up your HTML
+ <map:generate type="html" src="{project:content}/{0}" />
+ <map:serialize type="html"/>
+ -->
+ </map:when>
+ </map:select>
+ </map:match>
+
+ <map:match pattern="**.xml">
+ <map:call resource="transform-to-document">
+ <map:parameter name="src" value="{project:content.xdocs}{1}.xml" />
+ </map:call>
+ </map:match>
+ </map:pipeline>
+ </map:pipelines>
+</map:sitemap>
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.theme.Coat/src/documentation/sitemap.xmap
------------------------------------------------------------------------------
svn:eol-style = native