You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2005/04/09 04:25:02 UTC
svn commit: r160651 [2/3] -
forrest/trunk/plugins/org.apache.forrest.plugin.leather
forrest/trunk/plugins/org.apache.forrest.plugin.view
forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/views
forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation
forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs
forrest/trunk/plugins/org.apache.forrest.plugin.view/src/documentation/content/xdocs/images
forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper
forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources
forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin
forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/css
forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images
forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets
forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates
forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src
forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation
forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/classes
forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content
forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs
forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/printer.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/printer.gif?view=auto&rev=160651
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/printer.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/search-left.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/search-left.gif?view=auto&rev=160651
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/search-left.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/search-right.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/search-right.gif?view=auto&rev=160651
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/search-right.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/sidebar_bg.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/sidebar_bg.gif?view=auto&rev=160651
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/sidebar_bg.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/singlepage.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/singlepage.gif?view=auto&rev=160651
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/singlepage.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/spacer.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/spacer.gif?view=auto&rev=160651
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/spacer.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tab-left.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tab-left.gif?view=auto&rev=160651
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tab-left.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tab-right.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tab-right.gif?view=auto&rev=160651
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tab-right.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tl-off.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tl-off.gif?view=auto&rev=160651
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tl-off.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tl-on.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tl-on.gif?view=auto&rev=160651
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tl-on.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tr-off.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tr-off.gif?view=auto&rev=160651
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tr-off.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tr-on.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tr-on.gif?view=auto&rev=160651
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/tr-on.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/xmldoc.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/xmldoc.gif?view=auto&rev=160651
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/skin/images/xmldoc.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/contract.css.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/contract.css.xsl?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/contract.css.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/contract.css.xsl Fri Apr 8 19:24:54 2005
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+
+ <xsl:template match="/">
+ <xsl:apply-templates select="//forrest:template/xsl:stylesheet/xsl:template[contains(@name,'-css')]"/>
+ </xsl:template>
+
+ <xsl:template match="xsl:template[contains(@name,'-css')]">
+ <xsl:value-of select="."/>
+ </xsl:template>
+</xsl:stylesheet>
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/contract.css.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/contract.property.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/contract.property.xsl?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/contract.property.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/contract.property.xsl Fri Apr 8 19:24:54 2005
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+
+ <xsl:template match="/">
+ <xsl:apply-templates select="//forrest:template"/>
+ </xsl:template>
+
+ <xsl:template match="forrest:template">
+ <forrest:property body="{@body}"
+ head="{@head}"
+ css="{@css}"
+ name="{@name}"/>
+ </xsl:template>
+</xsl:stylesheet>
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/contract.property.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/contract.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/contract.xsl?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/contract.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/contract.xsl Fri Apr 8 19:24:54 2005
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!--
+site2xml.xsl is the final stage in XML page production. It merges HTML from
+document2html.xsl, tab2menu.xsl and book2menu.xsl, and adds the site header,
+footer, searchbar, css etc. As input, it takes XML of the form:
+
+<elements>
+ <branding/>
+ <search/>
+ <menu/>
+ <content/>
+ <siteinfo/>
+</elements>
+
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+
+ <xsl:param name="format"/>
+ <xsl:template match="/">
+ <xsl:copy-of select="forrest:contract/forrest:template[@format=$format]/xsl:stylesheet/*"/>
+ </xsl:template>
+</xsl:stylesheet>
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/contract.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/ls.contracts.html.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/ls.contracts.html.xsl?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/ls.contracts.html.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/ls.contracts.html.xsl Fri Apr 8 19:24:54 2005
@@ -0,0 +1,54 @@
+<?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.
+-->
+<xsl:stylesheet
+ version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml"
+ xmlns:dir="http://apache.org/cocoon/directory/2.0"
+ xmlns:session="http://apache.org/cocoon/session/1.0"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ >
+
+ <!--
+ Create row for each document. Information about the document is
+ extracted from the document itself using the document()
+ function.
+ -->
+ <xsl:template match="/">
+ <xhtml>
+ <head>
+ <title>ls.contracts.l</title>
+ </head>
+ <body>
+ <xsl:apply-templates/>
+ </body>
+ </xhtml>
+ </xsl:template>
+<xsl:template match="forrest:contracts">
+ <h1>ls.contracts.l</h1>
+ <xsl:apply-templates/>
+</xsl:template>
+<xsl:template match="forrest:contract">
+ <h2><xsl:value-of select="@name" /></h2>
+<p><b>file-name:</b> <br/><xsl:value-of select="@file-name" /></p>
+<p><b>description:</b> <br/><xsl:value-of select="./description" /></p>
+<p><b>realpath:</b> <br/><xsl:value-of select="./realpath" /></p>
+</xsl:template>
+
+</xsl:stylesheet>
+
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/ls.contracts.html.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/ls.contracts.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/ls.contracts.xsl?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/ls.contracts.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/ls.contracts.xsl Fri Apr 8 19:24:54 2005
@@ -0,0 +1,68 @@
+<?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.
+-->
+<xsl:stylesheet
+ version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml"
+ xmlns:dir="http://apache.org/cocoon/directory/2.0"
+ xmlns:session="http://apache.org/cocoon/session/1.0"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ >
+
+<xsl:param name="contentDir" select="'default/path'"/>
+
+ <!--
+ Create row for each document. Information about the document is
+ extracted from the document itself using the document()
+ function.
+ -->
+ <xsl:template match="/">
+ <forrest:contracts xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <xsl:apply-templates select="//dir:file"/>
+ </forrest:contracts>
+ </xsl:template>
+
+<xsl:template match="dir:file">
+ <xsl:variable name="fct-bit-file">
+ <xsl:value-of select="$contentDir"/>
+ <xsl:text>/resources/templates/</xsl:text>
+ <xsl:value-of select="@name"/>
+ </xsl:variable>
+ <xsl:variable name="fct-bit-title">
+ <xsl:value-of select="document($fct-bit-file)//forrest:contract/@name"/>
+ </xsl:variable>
+ <xsl:variable name="fct-bit-type">
+ <xsl:value-of select="document($fct-bit-file)/forrest:contract/@type"/>
+ </xsl:variable>
+ <xsl:variable name="fct-bit-description">
+ <xsl:value-of select="document($fct-bit-file)/forrest:contract/description"/>
+ </xsl:variable>
+
+ <forrest:contract name="{$fct-bit-title}" css="{$fct-bit-type}" file-name="{@name}">
+ <description>
+ <xsl:value-of select="$fct-bit-description"/>
+ </description>
+ <realpath>
+ <xsl:value-of select="$fct-bit-file"/>
+ </realpath>
+ </forrest:contract>
+
+</xsl:template>
+
+</xsl:stylesheet>
+
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/stylesheets/ls.contracts.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/content.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/content.ft?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/content.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/content.ft Fri Apr 8 19:24:54 2005
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<forrest:contract name="content" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ This functions will output the content and link.
+ </description>
+
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="content" inputFormat="xsl" body="true" head="false" css="true">
+
+ <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template name="content-css">
+ /*============Main content=======================*/
+#content {
+ clear: none;
+ margin-left: 25%;
+ padding: 10px;
+ font-family: verdana, helvetica, sans;
+ font-size: 10pt;
+ max-width: 75%;
+}
+#content-pdf {
+ float: right;
+ text-decoration: none;
+}
+#content-pdf a {
+ text-decoration: none;
+}
+#content h1 {
+ font-weight: bold;
+ font-size: 16pt;
+ letter-spacing: 2px;
+ padding: 0;
+ margin: 0;
+ display: block;
+ border-bottom: 2px solid #ddd;
+ color: #9AB;
+}
+#content h2 {
+ font-weight: bold;
+ font-size: 11pt;
+ letter-spacing: 1.5px;
+ padding: 0;
+ margin: 0;
+ display: block;
+ border-bottom: 2px solid #ddd;
+ color: #567;
+ font-family: "Trebuchet MS", helvetica, sans
+}
+#content h3 {
+ font-weight: bold;
+ font-size: 10pt;
+ letter-spacing: 1px;
+ padding: 0;
+ margin: 0;
+ display: block;
+ border-bottom: 2px solid #ddd;
+ color: #567;
+ font-family: verdana, helvetica, sans
+}
+
+#content a {
+ text-decoration:underline;
+ color: #567;
+}
+#content a:hover {
+ text-decoration:none;
+ color: #678;
+}
+.section {
+ text-decoration:none;
+ color: #000;
+}</xsl:template>
+ <xsl:template name="content-body">
+<xsl:comment>+
+ |start content
+ +</xsl:comment>
+ <xsl:apply-templates select="div[@id='content']"/>
+<xsl:comment>+
+ |end content
+ +</xsl:comment>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/content.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/feedback-dyn.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/feedback-dyn.ft?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/feedback-dyn.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/feedback-dyn.ft Fri Apr 8 19:24:54 2005
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<forrest:contract name="feedback-dyn" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ This function will output the html feedback-dyn information.
+ </description>
+
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="feedback-dyn" inputFormat="xsl" body="true" head="false" css="true">
+
+ <xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
+
+ <xsl:template name="feedback-dyn-css">
+#feedback {
+ color: black;
+ background: #CFDCED;
+ text-align:center;
+ margin-top: 5px;
+}
+#feedback #feedbackto {
+ font-size: 90%;
+ color: black;
+}</xsl:template>
+
+ <xsl:template name="feedback-dyn-body">
+ <xsl:param name="main"/>
+ <div id="feedback">
+ <xsl:value-of select="$main/feedback"/>
+ <xsl:choose>
+ <xsl:when test="$main/feedback/@href and not($main/feedback/@href='')">
+ <a id="feedbackto">
+ <xsl:attribute name="href">
+ <xsl:value-of select="$main/feedback/@href"/>
+ <xsl:value-of select="$path"/>
+ </xsl:attribute>
+ <xsl:value-of select="$main/feedback/@to"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$config/feedback/@to"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </div>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/feedback-dyn.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/feedback.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/feedback.ft?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/feedback.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/feedback.ft Fri Apr 8 19:24:54 2005
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<forrest:contract name="feedback" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ This function will output the html feedback information.
+ </description>
+
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="feedback" inputFormat="xsl" body="true" head="false" css="true">
+
+ <xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
+
+ <xsl:template name="feedback-css">
+#feedback {
+ color: black;
+ background: #CFDCED;
+ text-align:center;
+ margin-top: 5px;
+}
+#feedback #feedbackto {
+ font-size: 90%;
+ color: black;
+}</xsl:template>
+
+ <xsl:template name="feedback-body">
+ <div id="feedback">
+ <xsl:value-of select="$config/feedback"/>
+ <xsl:choose>
+ <xsl:when test="$config/feedback/@href and not($config/feedback/@href='')">
+ <a id="feedbackto">
+ <xsl:attribute name="href">
+ <xsl:value-of select="$config/feedback/@href"/>
+ <xsl:value-of select="$path"/>
+ </xsl:attribute>
+ <xsl:value-of select="$config/feedback/@to"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$config/feedback/@to"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </div>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/feedback.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/feeder.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/feeder.ft?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/feeder.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/feeder.ft Fri Apr 8 19:24:54 2005
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<forrest:contract name="feeder" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ This function will output the html feeder information.
+ </description>
+
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="feeder" inputFormat="xsl" body="true" head="false" css="true">
+
+ <xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
+
+ <xsl:template name="feeder-css">
+#feeder {
+ width: 23%;
+ display: block;
+ margin: 10px 0 0 0;
+ padding: 0;
+ background: #E0E9E9;
+ float: right;
+ color: black;
+ /*background: #CFDCED;*/
+ text-align:center;
+ margin-top: 5px;
+}
+.channelTitle {
+ background: #EDF2F2;
+ text-decoration: none;
+ font-size: 10pt;
+ font-family: verdana, helvetica, sans;
+ color: #000066;
+ padding: 5px;
+}
+.channelItems {
+ background: #D9E4E4;
+ text-decoration: none;
+ font-size: 10pt;
+ font-family: verdana, helvetica, sans;
+ color: #000066;
+ padding: 5px;
+}</xsl:template>
+
+ <xsl:template name="feeder-body" >
+ <xsl:param name="feeder"/>
+ <xsl:param name="feedConfig"/>
+ <xsl:copy-of select="$feedConfig"/>
+ <xsl:apply-templates select="$feeder/document">
+ <xsl:with-param name="feedConfig" select="$feedConfig"/>
+ </xsl:apply-templates>
+ </xsl:template>
+
+ <xsl:template match="document">
+ <xsl:param name="feedConfig"/>
+ <div id="feeder">
+ <xsl:apply-templates select="body/section">
+ <xsl:with-param name="feedConfig" select="$feedConfig"/>
+ </xsl:apply-templates>
+ </div>
+ </xsl:template>
+
+ <xsl:template match="section">
+ <xsl:param name="feedConfig"/>
+ <div class="channelTitle">
+ <xsl:value-of select="title"/>
+ </div>
+ <div class="channelItems">
+ <xsl:apply-templates select="p[@class]">
+ <xsl:with-param name="feedConfig" select="$feedConfig"/>
+ </xsl:apply-templates>
+ </div>
+ </xsl:template>
+
+ <xsl:template match="link">
+ <a href="{@href}">...more</a>
+ </xsl:template>
+
+ <xsl:template match="p[@class]">
+ <xsl:param name="feedConfig"/>
+ <div class="{@class}">
+ <xsl:apply-templates/>
+ </div>
+
+<!--
+ <xsl:variable name="parse">
+ <xsl:if test="$feedConfig/feed[@position]">
+ <xsl:value-of select="position()"/><xsl:value-of select="$feedConfig/feed/@position"/>
+ </xsl:if>
+ <div class="itemTitle"><xsl:value-of select="title" disable-output-escaping="yes"/></div>
+ <div class="itemLink"><a href="{link}">...more</a></div>
+ </xsl:variable>
+
+ <xsl:choose>
+ <xsl:when test="$feedConfig/feed[@maxItem]">
+ <xsl:if test="position()<=$feedConfig/feed/@maxItem">
+ <xsl:copy-of select="$parse"/>
+ </xsl:if>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy-of select="$parse"/>
+ </xsl:otherwise>
+ </xsl:choose>-->
+ </xsl:template>
+
+ </xsl:stylesheet>
+
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/feeder.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/fontsize.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/fontsize.ft?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/fontsize.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/fontsize.ft Fri Apr 8 19:24:54 2005
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<forrest:contract name="fontsize" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ This function lets you change the size of the font you are using in the site with a jscript.
+ </description>
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="fontsize" inputFormat="xsl" body="true" head="true" css="true">
+ <xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template name="fontsize-head">
+ <script type="text/javascript" language="javascript"
+ src="{$root}skin/fontsize.js"> </script>
+ </xsl:template>
+
+ <xsl:template name="fontsize-css">
+.branding-trail {
+ position: relative; /* IE bugfix cont'd */
+ font-size: 70%;
+ text-align: right;
+ float: right;
+ margin: -10px 5px 0px 5px;
+ padding: 0;
+}</xsl:template>
+
+ <xsl:template name="fontsize-body">
+ <script type="text/javascript">ndeSetTextSize();</script>
+ <div class="branding-trail">
+ Font size:
+  <input type="button" onclick="ndeSetTextSize('reset'); return false;" title="Reset text" class="resetfont" value="Reset"/>
+  <input type="button" onclick="ndeSetTextSize('decr'); return false;" title="Shrink text" class="smallerfont" value="-a"/>
+  <input type="button" onclick="ndeSetTextSize('incr'); return false;" title="Enlarge text" class="biggerfont" value="+a"/>
+ </div>
+ </xsl:template>
+
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/fontsize.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/grouplogo.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/grouplogo.ft?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/grouplogo.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/grouplogo.ft Fri Apr 8 19:24:54 2005
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<forrest:contract name="grouplogo" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ This functions will output the grouplogo and link.
+ </description>
+
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="grouplogo" inputFormat="xsl" body="true" head="false" css="true">
+
+ <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:template name="grouplogo-css">
+#grouplogo {
+ height: 75px;
+ width: 150px;
+ margin-left: 25px;
+ padding: 5px;
+ float: left;
+}</xsl:template>
+
+ <xsl:template name="grouplogo-body">
+ <xsl:comment>+
+ |start group Logo
+ +</xsl:comment>
+ <div id="grouplogo">
+ <xsl:call-template name="renderlogo">
+ <xsl:with-param name="name" select="$config/group-name"/>
+ <xsl:with-param name="url" select="$config/group-url"/>
+ <xsl:with-param name="logo" select="$config/group-logo"/>
+ <xsl:with-param name="root" select="$root"/>
+ <xsl:with-param name="description" select="$config/group-description"/>
+ </xsl:call-template>
+ </div>
+<xsl:comment>+
+ |end group Logo
+ +</xsl:comment>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/grouplogo.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/meta.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/meta.ft?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/meta.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/meta.ft Fri Apr 8 19:24:54 2005
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<forrest:contract name="meta" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ This functions will output the html meta information.
+ </description>
+
+
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="meta" inputFormat="xsl" body="false" head="true">
+ <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template name="meta-head">
+ <meta name="Generator" content="Apache Forrest"/>
+ <meta name="Forrest-version">
+ <xsl:attribute name="content">
+ <xsl:value-of select="//info/forrest-version"/>
+ </xsl:attribute>
+ </meta>
+ <meta name="Forrest-skin-name">
+ <xsl:attribute name="content">
+ <xsl:value-of select="//info/project-skin"/>
+ </xsl:attribute>
+ </meta>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/meta.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/nav-main-sub.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/nav-main-sub.ft?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/nav-main-sub.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/nav-main-sub.ft Fri Apr 8 19:24:54 2005
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<forrest:contract name="nav-main-sub" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ This functions will output the nav-main-sub and link.
+ </description>
+
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="nav-main-sub" inputFormat="xsl" body="true" head="false" css="true">
+
+ <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template name="nav-main-sub-css">
+
+/*============Sub-tabs===========================*/
+#nav-main-sub {
+ text-align: right;
+ margin-right: 20px;
+}</xsl:template>
+ <xsl:template name="nav-main-sub-body">
+ <xsl:apply-templates select="div[@id='nav-main-sub']"/>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/nav-main-sub.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/nav-main.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/nav-main.ft?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/nav-main.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/nav-main.ft Fri Apr 8 19:24:54 2005
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<forrest:contract name="nav-main" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ This functions will output the nav-main and link.
+ </description>
+
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="nav-main" inputFormat="xsl" body="true" head="false" css="true">
+
+ <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:template name="nav-main-css">
+#branding ul {
+ position: absolute;
+ /*display: block;*/
+ bottom: 0px;
+ right: 0;
+ margin: 0;
+ padding: 0px 15px 0px 0px;
+ list-style: none;
+}
+#branding li {
+ float: right;
+ background: transparent url("/skin/images/tr-on.gif") 100% 0% no-repeat;
+ padding: 0 6px 0 0;
+ margin: 0 1px 0 0;
+ border-bottom: 1px solid #515358;
+}
+#branding ul a {
+ float: left;
+ display: block;
+ padding: 4px 4px 4px 10px;
+ background: transparent url("/skin/images/tl-on.gif") no-repeat;
+ font-weight: bold;
+ color: #fff;
+ text-decoration: none;
+}
+#branding ul li:hover a {background: url("/skin/images/tl-off.gif") no-repeat;}
+#branding ul li:hover {background: url("/skin/images/tr-off.gif") 100% 0% no-repeat;}
+
+#branding ul li.current a {background: url("/skin/images/tl-off.gif") no-repeat;}
+#branding ul li.current {background: url("/skin/images/tr-off.gif") 100% 0% no-repeat;}
+
+</xsl:template>
+
+ <xsl:template name="nav-main-body">
+ <div id="tabs">
+<xsl:comment>+
+ |start Tabs
+ +</xsl:comment>
+ <xsl:apply-templates select="ul[@id='nav-main']"/>
+<xsl:comment>+
+ |end Tabs
+ +</xsl:comment>
+
+ </div>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/nav-main.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/nav.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/nav.ft?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/nav.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/nav.ft Fri Apr 8 19:24:54 2005
@@ -0,0 +1,198 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<forrest:contract name="nav" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ This functions will output the nav and link.
+ </description>
+
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="nav" inputFormat="xsl" body="true" head="false" css="true">
+
+ <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template name="nav-css">
+
+#nav {
+ width: 23%;
+ display: block;
+ margin: 10px 0 0 0;
+ padding: 0;
+ background: #E0E9E9;
+ float: left;
+}
+#nav ul {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ font-size: 0px;
+}
+#nav ul li a {
+ display: block;
+ width: auto;
+ padding: 6px 10px 6px 10px;
+ background: #EDF2F2;
+ text-decoration: none;
+ font-size: 10pt;
+ font-family: verdana, helvetica, sans;
+ color: #000066;
+ margin: 0;
+ border-left: 1px solid #fff;
+ border-bottom: 1px solid #ddd;
+ border-top: 1px solid #fff;
+ border-right: 1px solid #ddd;
+}
+#nav ul .menupage {
+ display: block;
+ font-weight: bold;
+ width: auto;
+ padding: 6px 10px;
+ background: #D9E4E4;
+ text-decoration: none;
+ font-size: 10pt;
+ font-family: verdana, helvetica, sans;
+ color: #000066;
+ margin: 0;
+ border-left: 1px solid #fff;
+ border-bottom: 1px solid #ddd;
+ border-top: 1px solid #fff;
+ border-right: 1px solid #ddd;
+}
+#nav ul li .menupage {
+ display: block;
+ font-weight: bold;
+ width: auto;
+ padding: 4px 8px 4px 20px;
+ background: #C9D4D4;
+ text-decoration: none;
+ font-size: 8pt;
+ font-family: verdana, helvetica, sans;
+ color: #000066;
+ margin: 0;
+ border-left: 1px solid #fff;
+ border-bottom: 1px solid #ddd;
+ border-top: 1px solid #fff;
+ border-right: 1px solid #ddd;
+}
+#nav ul strong {
+ display: block;
+ width: auto;
+ padding: 6px 10px;
+ background: #E0E9E9;
+ text-decoration: none;
+ font-size: 10pt;
+ font-family: verdana, helvetica, sans;
+ color: #000066;
+ margin: 0;
+ border-left: 1px solid #fff;
+ border-bottom: 1px solid #ddd;
+ border-top: 1px solid #fff;
+ border-right: 1px solid #ddd;
+}
+#nav ul li li a {
+ padding: 4px 8px 4px 20px;
+ margin: 0;
+ font-size: 8pt;
+}
+#nav ul li a:hover {
+ background: #E0E9E9;
+}</xsl:template>
+ <xsl:template name="nav-body">
+<xsl:comment>+
+ |start menu
+ +</xsl:comment>
+ <xsl:if test="div[@id='menu']/ul/li">
+ <xsl:call-template name="menu"/>
+ </xsl:if>
+<xsl:comment>+
+ |end menu
+ +</xsl:comment>
+ </xsl:template>
+ <xsl:template name="menu">
+<xsl:comment>+
+ |start Menu
+ +</xsl:comment>
+ <div id="nav">
+ <ul>
+<!--menu - inner-->
+ <xsl:for-each select = "div[@id='menu']/ul/li">
+ <xsl:call-template name = "innermenuli" >
+ <xsl:with-param name="id" select="concat('1.', position())"/>
+ </xsl:call-template>
+ </xsl:for-each>
+ </ul>
+ </div>
+ </xsl:template>
+
+ <xsl:template name="innermenuli">
+ <xsl:param name="id"/>
+ <xsl:variable name="tagid">
+ <xsl:choose>
+ <xsl:when test="descendant-or-self::node()/li/div/@class='current'"><xsl:value-of select="concat('menu_selected_',$id)"/></xsl:when>
+ <xsl:otherwise><xsl:value-of select="concat('menu_',concat(font,$id))"/></xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="whichGroup">
+ <xsl:choose>
+ <xsl:when test="descendant-or-self::node()/li/div/@class='current'">currentmenuitemgroup</xsl:when>
+ <xsl:otherwise>menuitemgroup</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <li class="pagegroup"><strong><xsl:value-of select="h1"/></strong>
+ <ul>
+ <xsl:for-each select= "ul/li">
+
+ <xsl:choose>
+ <xsl:when test="a">
+ <li><a href="{a/@href}"><xsl:value-of select="a" /></a></li>
+ </xsl:when>
+ <xsl:when test="div/@class='current'">
+ <li class="menupage">
+ <div class="menupagetitle"><xsl:value-of select="div" /></div>
+ <xsl:if test="$config/toc/@max-depth>0 and contains($minitoc-location,'menu')">
+ <li class="menupageitemgroup">
+ <xsl:for-each select = "//tocitems/tocitem">
+ <div class="menupageitem">
+ <xsl:choose>
+ <xsl:when test="string-length(@title)>15">
+ <a href="{@href}" title="{@title}"><xsl:value-of select="substring(@title,0,20)" />...</a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{@href}"><xsl:value-of select="@title" /></a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </div>
+ </xsl:for-each>
+ </li>
+ </xsl:if>
+ </li>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name = "innermenuli">
+ <xsl:with-param name="id" select="concat($id, '.', position())"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ </xsl:for-each>
+ </ul></li>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/nav.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/noFt.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/noFt.ft?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/noFt.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/noFt.ft Fri Apr 8 19:24:54 2005
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<forrest:contract xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="noFt" type="nugget">
+ <description>
+ This functions is a fallback when no ft is found.
+ </description>
+
+ <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="noFt" inputFormat="xsl" body="false" head="false" css="false">
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/noFt.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/pdf-link.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/pdf-link.ft?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/pdf-link.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/pdf-link.ft Fri Apr 8 19:24:54 2005
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<forrest:contract name="pdf-fct" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ This functions will output the PDF link with image.
+ </description>
+
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="pdf-link" inputFormat="xsl" body="true" head="false">
+ <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template name="pdf-body">
+ <body>
+ <div id="pdf" title="Portable Document Format"><a href="{$filename-noext}.pdf" class="dida">
+ <img class="skin" src="{$skin-img-dir}/pdfdoc.gif" alt="PDF - icon"/><br/>
+ PDF</a>
+ </div>
+ </body>
+ </xsl:template>
+
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/pdf-link.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/pod-link.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/pod-link.ft?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/pod-link.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/pod-link.ft Fri Apr 8 19:24:54 2005
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<forrest:contract name="pod-link" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ This functions will output the POD link with image.
+ </description>
+
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="pod-link" inputFormat="xsl" body="true" head="false">
+ <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template name="xml-body">
+ <body>
+ <div class="podlink" title="Plain Old Documentation"><a href="{$filename-noext}.pod" class="dida">
+ <img class="skin" src="{$skin-img-dir}/poddoc.png" alt="POD - icon" /><br/>
+ POD</a>
+ </div>
+ </body>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/pod-link.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/projectlogo.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/projectlogo.ft?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/projectlogo.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/projectlogo.ft Fri Apr 8 19:24:54 2005
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<forrest:contract name="projectlogo" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ This functions will output the projectlogo and link.
+ </description>
+
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="projectlogo" inputFormat="xsl" body="true" head="false" css="true">
+
+ <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:template name="projectlogo-css">
+#projectlogo {
+ height: 75px;
+ width: 150px;
+ padding: 5px;
+ float: left;
+}</xsl:template>
+
+ <xsl:template name="projectlogo-body">
+ <xsl:comment>+
+ |start Project Logo
+ +</xsl:comment>
+ <div id="projectlogo">
+ <xsl:call-template name="renderlogo">
+ <xsl:with-param name="name" select="$config/project-name"/>
+ <xsl:with-param name="url" select="$config/project-url"/>
+ <xsl:with-param name="logo" select="$config/project-logo"/>
+ <xsl:with-param name="root" select="$root"/>
+ <xsl:with-param name="description" select="$config/project-description"/>
+ </xsl:call-template>
+ </div>
+<xsl:comment>+
+ |end Project Logo
+ +</xsl:comment>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/projectlogo.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/searchbox.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/searchbox.ft?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/searchbox.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/searchbox.ft Fri Apr 8 19:24:54 2005
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<forrest:contract name="searchbox" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ This functions will output the searchbox.
+ </description>
+
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="searchbox" inputFormat="xsl" body="true" head="false" css="true">
+
+ <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:template name="searchbox-css">
+#searchbox {
+ padding: 8px;
+ float: right;
+ font-family: verdana, helvetica, sans;
+ font-size: 8pt;
+ font-weight: bold;
+ color: #ddddff;
+}
+#searchbox input {
+ font-size: 8pt;
+ font-family: verdana, helvetica, sans;
+}</xsl:template>
+
+ <xsl:template name="searchbox-body">
+<div id="searchbox">
+<xsl:comment>+
+ |start Search
+ +</xsl:comment>
+ <div class="searchbox-input">
+ <xsl:choose>
+ <xsl:when test="$config/search/@provider = 'lucene'">
+ <!-- Lucene search -->
+ <form method="get" action="{$root}{$lucene-search}">
+ <input type="text" id="query" name="queryString" size="25" value="Search the site with {$config/search/@provider}:" onFocus="getBlank (this, 'Search the site with {$config/search/@provider}:');"/>
+  
+ <input type="submit" value="Search" name="Search"/>
+ </form>
+ </xsl:when>
+ <xsl:otherwise>
+ <form class="roundtopsmall" method="get" action="http://www.google.com/search">
+ <input type="hidden"
+ name="sitesearch" value="{$config/search/@domain}"/>
+ <input type="text" id="query" name="q" size="25"/> 
+ <input type="submit" value="Search" name="Search"/> </form>
+ </xsl:otherwise>
+</xsl:choose>
+ </div>
+<xsl:comment>+
+ |end search
+ +</xsl:comment>
+ </div>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/searchbox.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/txt-link.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/txt-link.ft?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/txt-link.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/txt-link.ft Fri Apr 8 19:24:54 2005
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<forrest:contract name="txt-link" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ This functions will output the TXT link with image and print link.
+ </description>
+
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="txt-link" inputFormat="xsl" body="true" head="false">
+
+ <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:template name="txt-link-body">
+ <script type="text/javascript" language="Javascript">
+ function printit() {
+ if (window.print) {
+ window.focus();
+ window.print();
+ }
+ }
+ </script>
+
+ <script type="text/javascript" language="Javascript">
+ var NS = (navigator.appName == "Netscape");
+ var VERSION = parseInt(navigator.appVersion);
+ if (VERSION > 3) {
+ document.write('<div class="txt" title="Print this Page">');
+ document.write(' <a href="javascript:printit()" class="dida">');
+ document.write(' <img class="skin" src="{$skin-img-dir}/printer.gif" alt="print - icon" />');
+ document.write(' <br />');
+ document.write(' PRINT</a>');
+ document.write('</div>');
+ }
+ </script>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/txt-link.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/xml-link.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/xml-link.ft?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/xml-link.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/xml-link.ft Fri Apr 8 19:24:54 2005
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+ <forrest:contract name="xml-link" type="nugget"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ This functions will output the XML link with image.
+ </description>
+
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="xml-link" inputFormat="xsl" body="true" css="true">
+ <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template name="xml-link-css">
+.xml-link {
+ position: relative; /* IE bugfix cont'd */
+ float: right;
+ margin: 0px 5px;
+ padding: 0;
+}
+.xml-link br {
+ margin-top: -10px;
+ padding-left: 1px;
+}
+.xml-link a {
+ display: block;
+ font-size: 70%;
+ text-align: center;
+ margin: 0;
+ padding: 0;
+}
+
+.xml-link img {
+ display: block;
+ height: 16px;
+ width: 16px;
+}</xsl:template>
+ <xsl:template name="xml-link-body">
+ <div class="xml-link" title="raw XML"><a href="{$filename-noext}.xml" class="dida">
+ <img class="skin" src="{$skin-img-dir}/xmldoc.gif" alt="XML - icon" /><br/>
+ XML</a>
+ </div>
+ </xsl:template>
+
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/resources/templates/xml-link.ft
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/classes/CatalogManager.properties
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/classes/CatalogManager.properties?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/classes/CatalogManager.properties (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/classes/CatalogManager.properties Fri Apr 8 19:24:54 2005
@@ -0,0 +1,58 @@
+# Copyright 2002-2005 The Apache Software Foundation or its licensors,
+# as applicable.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#=======================================================================
+# CatalogManager.properties for Catalog Entity Resolver.
+#
+# This is the default properties file for your project.
+# This facilitates local configuration of application-specific catalogs.
+# If you have defined any local catalogs, then they will be loaded
+# before Forrest's core catalogs.
+#
+# See the Apache Forrest documentation:
+# http://forrest.apache.org/docs/your-project.html
+# http://forrest.apache.org/docs/validation.html
+
+# verbosity:
+# The level of messages for status/debug (messages go to standard output).
+# The setting here is for your own local catalogs.
+# The verbosity of Forrest's core catalogs is controlled via
+# main/webapp/WEB-INF/cocoon.xconf
+#
+# The following messages are provided ...
+# 0 = none
+# 1 = ? (... not sure yet)
+# 2 = 1+, Loading catalog, Resolved public, Resolved system
+# 3 = 2+, Catalog does not exist, resolvePublic, resolveSystem
+# 10 = 3+, List all catalog entries when loading a catalog
+# (Cocoon also logs the "Resolved public" messages.)
+verbosity=1
+
+# catalogs ... list of additional catalogs to load
+# (Note that Apache Forrest will automatically load its own default catalog
+# from main/webapp/resources/schema/catalog.xcat)
+# Use either full pathnames or relative pathnames.
+# pathname separator is always semi-colon (;) regardless of operating system
+# directory separator is always slash (/) regardless of operating system
+#catalogs=../resources/schema/catalog.xcat
+catalogs=
+
+# relative-catalogs
+# If false, relative catalog URIs are made absolute with respect to the
+# base URI of the CatalogManager.properties file. This setting only
+# applies to catalog URIs obtained from the catalogs property in the
+# CatalogManager.properties file
+# Example: relative-catalogs=[yes|no]
+relative-catalogs=no
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/classes/CatalogManager.properties
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/group-logo.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/group-logo.gif?view=auto&rev=160651
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/group-logo.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/group.svg
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/group.svg?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/group.svg (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/group.svg Fri Apr 8 19:24:54 2005
@@ -0,0 +1,82 @@
+<?xml version="1.0" standalone="no"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!--
+ SVG Anteater logo
+
+To get started with SVG, I'd recommend getting the Adobe SVG plugin, and the
+xml-batik CVS module. Then have a look at the xml-batik/samples files. Use the
+SVG spec (http://www.w3.org/TR/SVG/) as a reference.
+-->
+
+<!-- See Forrest Issue: FOR-229
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
+"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"
+[
+ <!ATTLIST svg xmlns:for CDATA #FIXED "http://apache.org/forrest">
+ <!ENTITY % textExt "|for:group-name">
+ <!ELEMENT for:group-name (#PCDATA)>
+]>
+-->
+<svg xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xsl:version="1.0"
+ xmlns:for="http://apache.org/forrest"
+ width="220" height="65" >
+ <title>Anteater logo</title>
+
+ <defs>
+
+ <!--
+ <radialGradient id="radialGradient">
+ <stop style="stop-color:gold" offset="0"/>
+ <stop style="stop-color:orange" offset=".5"/>
+ <stop style="stop-color:crimson" offset="1"/>
+ </radialGradient>
+ <linearGradient id="linearGradient">
+ <stop style="stop-color:gold" offset="0"/>
+ <stop style="stop-color:orange" offset=".5"/>
+ <stop style="stop-color:crimson" offset="1"/>
+ </linearGradient>
+ -->
+
+ <linearGradient id="gradient" x1="0" y1="0" x2="0" y2="1">
+ <stop style="stop-color:white" offset="0"/>
+ <stop style="stop-color:lightgreen" offset="1"/>
+ </linearGradient>
+
+ <filter id="shadowFilter" filterUnits="objectBoundingBox">
+ <!-- Takes the alpha channel (black outline of the text), blurs it and saves as 'blur' -->
+ <feGaussianBlur in="SourceAlpha" stdDeviation="2 2" result="blur"/>
+ <!-- Takes saved 'blur' and offsets it by 4 pixels, saves as 'offsetBlur' -->
+ <feOffset in="blur" dx="4" dy="4" result="offsetBlur"/>
+ <!-- Merges SourceGraphic (original image) and 'offsetBlur', putting the
+ former 'over' the latter, and using the merged result as the finished
+ image -->
+ <feComposite in="SourceGraphic" in2="offsetBlur" operator="over"/>
+ </filter>
+
+ </defs>
+
+ <g filter="url(#shadowFilter)" fill="url(#gradient)">
+ <text x="40%" y="60%" style="font-size:24pt; font-family:Verdana ; text-anchor: middle">
+ <for:group-name />
+ </text>
+ </g>
+</svg>
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/group.svg
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/icon.png
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/icon.png?view=auto&rev=160651
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/icon.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/project-logo.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/project-logo.gif?view=auto&rev=160651
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/project-logo.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/project.svg
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/project.svg?view=auto&rev=160651
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/project.svg (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/project.svg Fri Apr 8 19:24:54 2005
@@ -0,0 +1,82 @@
+<?xml version="1.0" standalone="no"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!--
+ SVG Anteater logo
+
+To get started with SVG, I'd recommend getting the Adobe SVG plugin, and the
+xml-batik CVS module. Then have a look at the xml-batik/samples files. Use the
+SVG spec (http://www.w3.org/TR/SVG/) as a reference.
+-->
+
+<!-- See Forrest Issue: FOR-229
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
+"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"
+[
+ <!ATTLIST svg xmlns:for CDATA #FIXED "http://apache.org/forrest">
+ <!ENTITY % textExt "|for:project-name">
+ <!ELEMENT for:project-name (#PCDATA)>
+]>
+-->
+<svg xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xsl:version="1.0"
+ xmlns:for="http://apache.org/forrest"
+ width="220" height="65" >
+ <title>Anteater logo</title>
+
+ <defs>
+
+ <!--
+ <radialGradient id="radialGradient">
+ <stop style="stop-color:gold" offset="0"/>
+ <stop style="stop-color:orange" offset=".5"/>
+ <stop style="stop-color:crimson" offset="1"/>
+ </radialGradient>
+ <linearGradient id="linearGradient">
+ <stop style="stop-color:gold" offset="0"/>
+ <stop style="stop-color:orange" offset=".5"/>
+ <stop style="stop-color:crimson" offset="1"/>
+ </linearGradient>
+ -->
+
+ <linearGradient id="gradient" x1="0" y1="0" x2="0" y2="1">
+ <stop style="stop-color:white" offset="0"/>
+ <stop style="stop-color:lightgreen" offset="1"/>
+ </linearGradient>
+
+ <filter id="shadowFilter" filterUnits="objectBoundingBox">
+ <!-- Takes the alpha channel (black outline of the text), blurs it and saves as 'blur' -->
+ <feGaussianBlur in="SourceAlpha" stdDeviation="2 2" result="blur"/>
+ <!-- Takes saved 'blur' and offsets it by 4 pixels, saves as 'offsetBlur' -->
+ <feOffset in="blur" dx="4" dy="4" result="offsetBlur"/>
+ <!-- Merges SourceGraphic (original image) and 'offsetBlur', putting the
+ former 'over' the latter, and using the merged result as the finished
+ image -->
+ <feComposite in="SourceGraphic" in2="offsetBlur" operator="over"/>
+ </filter>
+
+ </defs>
+
+ <g filter="url(#shadowFilter)" fill="url(#gradient)">
+ <text x="51%" y="75%" style="font-size:12pt; font-family:Verdana ; text-anchor: middle" >
+ <for:project-name />
+ </text>
+ </g>
+</svg>
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/project.svg
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/usemap.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/usemap.gif?view=auto&rev=160651
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/src/documentation/content/xdocs/images/usemap.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream