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/03/07 03:38:16 UTC

svn commit: r156369 - in forrest/trunk/plugins/org.apache.forrest.plugin.fbits: ./ fbits-xsl/ resources/stylesheets/templates/ resources/templates/ src/documentation/FORREST-INF/

Author: thorsten
Date: Sun Mar  6 18:38:13 2005
New Revision: 156369

URL: http://svn.apache.org/viewcvs?view=rev&rev=156369
Log:
Proof of concept version of fbits-plugin. http://localhost:8888/transform.ft will give out the page on basis of main.ft. There is only some variables working so far and only few contacts produce the correct html.

Added:
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/contract.property.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/contract.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/prepare.include.main.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/prepare.meta.main.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/prepare.xhtml.main.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/transform.main.ft.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/c-pdf.link-fct.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/c-pod.link-fct.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/feedback.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/fontsize.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/meta.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/txt-link.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/xml-link.ft
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/FORREST-INF/
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/FORREST-INF/main.ft
Modified:
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-pdf.link-fct.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-pod.link-fct.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-txt.link-fct.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-xml.link-fct.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-pdf.link-fct.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-pdf.link-fct.xsl?view=diff&r1=156368&r2=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-pdf.link-fct.xsl (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-pdf.link-fct.xsl Sun Mar  6 18:38:13 2005
@@ -29,8 +29,8 @@
 		  
 		  <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/>
+		      <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>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-pod.link-fct.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-pod.link-fct.xsl?view=diff&r1=156368&r2=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-pod.link-fct.xsl (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-pod.link-fct.xsl Sun Mar  6 18:38:13 2005
@@ -29,8 +29,8 @@
 		  
 		  <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/>
+		      <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>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-txt.link-fct.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-txt.link-fct.xsl?view=diff&r1=156368&r2=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-txt.link-fct.xsl (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-txt.link-fct.xsl Sun Mar  6 18:38:13 2005
@@ -45,7 +45,7 @@
 	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('    <img class="skin" src="${skin-img-dir}/printer.gif" alt="print - icon" />');
 	  document.write('    <br />');
 	  document.write('  PRINT</a>');
 	  document.write('</div>');

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-xml.link-fct.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-xml.link-fct.xsl?view=diff&r1=156368&r2=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-xml.link-fct.xsl (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-xml.link-fct.xsl Sun Mar  6 18:38:13 2005
@@ -29,8 +29,8 @@
 			  
 			  <xsl:template name="xml-body">
 		      <body>
-				    <div class="xml" title="raw XML"><a href="{$filename-noext}.xml" class="dida">
-				      <img class="skin" src="{$skin-img-dir}/xmldoc.gif" alt="XML - icon" /><br/>
+				    <div class="xml" 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>
 		      </body>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap?view=diff&r1=156368&r2=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap Sun Mar  6 18:38:13 2005
@@ -30,6 +30,83 @@
   </map:components>
 
 <map:pipelines>
+<!--Get the xsl:templates of the requested contract 
+  -->
+ <map:pipeline>
+   <map:match pattern="get.contract.*.*">
+     <map:generate src="resources/templates/{1}.ft"/>
+     <map:transform src="resources/stylesheets/templates/contract.xsl">
+      <!--¿which output format?-->
+      <map:parameter name="format" value="{2}"/>
+     </map:transform>
+     <map:serialize type="xml"/>
+   </map:match>
+  </map:pipeline>
+<!--Get the forrest:properties of the requested contract 
+  -->
+	<map:pipeline>
+   <map:match pattern="get.contract-meta.*">
+     <map:generate src="resources/templates/{1}.ft"/>
+     <map:transform src="resources/stylesheets/templates/contract.property.xsl"/>
+     <map:serialize type="xml"/>
+   </map:match>
+  </map:pipeline>
+  
+  <!--NOTE: The following pipelines are e.g. main.ft -> should be * for document specific output-->
+  
+<!--Aggregate the contract-templates requested by the main.ft for the xsl:include-->
+  <map:pipeline>
+    <map:match pattern="prepare.include.main">
+      <map:generate src="src/documentation/FORREST-INF/main.ft"/>
+      <map:transform src="resources/stylesheets/templates/prepare.include.main.xsl">
+	      <map:parameter name="config-file" value="{project:skinconf}"/>
+      </map:transform>
+      <map:transform type="xinclude"/> 
+     	<map:serialize type="xml"/>
+    </map:match>
+  </map:pipeline>
+<!--Aggregate the forrest:properties requested by the main.ft-->
+  <map:pipeline>
+    <map:match pattern="prepare.meta.main">
+      <map:generate src="src/documentation/FORREST-INF/main.ft"/>
+      <map:transform src="resources/stylesheets/templates/prepare.meta.main.xsl"/>
+      <map:transform type="xinclude"/> 
+     	<map:serialize type="xml"/>
+    </map:match>
+  </map:pipeline>
+  
+ <!--Aggregate all contracts-templates requested by the main.ft
+  getHead - will parse the xhtml head output
+  getBody - will parse the xhtml body output 
+  --> 
+  <map:pipeline>
+    <map:match pattern="prepare.xhtml.main">
+      <map:aggregate element="forrest:filter">
+        <map:part src="src/documentation/FORREST-INF/main.ft" />
+        <map:part src="cocoon:/prepare.meta.main" /> 
+      </map:aggregate>
+      <map:transform src="resources/stylesheets/templates/prepare.xhtml.main.xsl" >
+      </map:transform>
+     	<map:serialize type="xml"/>
+    </map:match>
+  </map:pipeline>
+  <!--Outputs xhtml of the main.ft-->
+  <map:pipeline>
+    <map:match pattern="transform.ft">
+      <map:aggregate element="forrest:filter">
+        <map:part src="src/documentation/FORREST-INF/main.ft" />
+        <map:part src="cocoon:/prepare.meta.main" /> 
+      </map:aggregate>
+      <map:transform src="resources/stylesheets/templates/transform.main.ft.xsl" >
+        <map:parameter name="path" value="{path}"/>
+        <map:parameter name="config-file" value="{project:skinconf}"/>
+      </map:transform>
+     	<map:serialize type="html"/>
+    </map:match>
+    
+  </map:pipeline>
+  
+  <!--Old stuff-->
 <!--
   [poc] - Proof of concept pipeline
   you can transform xsl 
@@ -61,7 +138,6 @@
      <map:serialize type="xml"/>
    </map:match>
   </map:pipeline>
-  
 <!-- 
   
 1. check all aviable fct -> ls.fbits

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/contract.property.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/contract.property.xsl?view=auto&rev=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/contract.property.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/contract.property.xsl Sun Mar  6 18:38:13 2005
@@ -0,0 +1,29 @@
+<?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="/">
+    <forrest:property body="{forrest:contract/forrest:template/@body}" 
+      head="{forrest:contract/forrest:template/@head}" 
+      name="{forrest:contract/forrest:template/@name}"/>
+  </xsl:template>
+  
+</xsl:stylesheet>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/contract.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/contract.xsl?view=auto&rev=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/contract.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/contract.xsl Sun Mar  6 18:38:13 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>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/prepare.include.main.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/prepare.include.main.xsl?view=auto&rev=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/prepare.include.main.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/prepare.include.main.xsl Sun Mar  6 18:38:13 2005
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<xsl:stylesheet version="1.0" 
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"  
+  xmlns:xi="http://www.w3.org/2001/XInclude"
+  xmlns:alias="http://www.w3.org/1999/XSL/TransformAlias">
+    <xsl:namespace-alias 
+         stylesheet-prefix="alias" result-prefix="xsl"/>
+
+  <xsl:template match="/">
+    <alias:stylesheet version="1.0">
+	    <xsl:for-each select="forrest:view//forrest:contract">
+	      <xi:include href="cocoon:/get.contract.{@name}.xhtml"/>
+	    </xsl:for-each>
+    </alias:stylesheet>
+  </xsl:template>
+
+</xsl:stylesheet>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/prepare.meta.main.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/prepare.meta.main.xsl?view=auto&rev=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/prepare.meta.main.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/prepare.meta.main.xsl Sun Mar  6 18:38:13 2005
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<xsl:stylesheet version="1.0" 
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"  
+  xmlns:xi="http://www.w3.org/2001/XInclude"
+  >
+
+
+  <xsl:template match="/">
+    <forrest:properties >
+	    <xsl:for-each select="forrest:view//forrest:contract">
+	      <xi:include href="cocoon:/get.contract-meta.{@name}"/>
+	    </xsl:for-each>
+    </forrest:properties>
+  </xsl:template>
+  
+</xsl:stylesheet>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/prepare.xhtml.main.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/prepare.xhtml.main.xsl?view=auto&rev=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/prepare.xhtml.main.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/prepare.xhtml.main.xsl Sun Mar  6 18:38:13 2005
@@ -0,0 +1,61 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<xsl:stylesheet version="1.0" 
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"  
+  xmlns:xi="http://www.w3.org/2001/XInclude"
+  xmlns:alias="http://www.w3.org/1999/XSL/TransformAlias"
+  >
+  <xsl:namespace-alias stylesheet-prefix="alias" result-prefix="xsl"/>
+  
+  <xsl:template match="/">
+    <alias:stylesheet version="1.0">
+      <xsl:comment>All xhtml head elements requested by the forrest:template</xsl:comment>
+			<alias:template name="getHead">
+			  <xsl:for-each select="/*/forrest:properties/*[@head='true']">
+		      <alias:call-template name="{@name}-head" />
+			  </xsl:for-each>
+		   </alias:template>
+		   
+      <xsl:comment>All xhtml body elements requested by the forrest:template</xsl:comment>
+			<alias:template name="getBody">
+          <xsl:apply-templates select="/*/forrest:view"/>
+		   </alias:template>
+		</alias:stylesheet>
+	</xsl:template>
+	
+  <xsl:template match="forrest:view">
+    <xsl:apply-templates/>
+  </xsl:template>
+	
+	<xsl:template match="forrest:hook">
+    <div id="{@name}">
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+  
+  <xsl:template match="forrest:contract">
+    <xsl:variable name="name" select="@name"/>
+    <!--Test whether there is a body template needed-->
+    <xsl:if test="/*/forrest:properties/*[@body='true' and @name=$name]">
+	    <alias:call-template name="{@name}-body" />
+    </xsl:if>
+  </xsl:template>
+
+</xsl:stylesheet>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/transform.main.ft.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/transform.main.ft.xsl?view=auto&rev=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/transform.main.ft.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/templates/transform.main.ft.xsl Sun Mar  6 18:38:13 2005
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<xsl:stylesheet version="1.0" 
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"  
+  xmlns:xi="http://www.w3.org/2001/XInclude"
+  xmlns:alias="http://www.w3.org/1999/XSL/TransformAlias"
+  xmlns:saxon="http://saxon.sf.net/"
+  extension-element-prefixes="saxon"
+  >
+  
+  <xsl:namespace-alias stylesheet-prefix="alias" result-prefix="xsl"/>
+  <!--FIXME: ¡¡¡Need to make sure all variables are matched!!!-->
+ 	<xsl:param name="config-file"/>
+  <xsl:param name="path"/>
+  <xsl:variable name="config" select="document($config-file)/skinconfig"/>
+  
+	<xsl:include href="cocoon:/prepare.include.main"/>
+  <xsl:include href="cocoon:/prepare.xhtml.main"/>
+
+  <xsl:template match="/">
+    <html>
+      <head>
+    		<xsl:call-template name="getHead"/>
+      </head>
+      <body onload="init()">
+        <xsl:call-template name="getBody"/>
+      </body>
+    </html>
+  </xsl:template>
+
+</xsl:stylesheet>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/c-pdf.link-fct.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/c-pdf.link-fct.xsl?view=auto&rev=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/c-pdf.link-fct.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/c-pdf.link-fct.xsl Sun Mar  6 18:38:13 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="pdf-fct" nc="pdf" tlc="content"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <description>
+    This functions will output the PDF link with image.
+  </description>
+
+	<xsl type="xhtml">
+    <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+		  <xsl:template name="pdf-head">
+		    <head/>
+		  </xsl:template>
+		  
+		  <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>
+	</xsl>
+</forrest:contract>
\ No newline at end of file

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/c-pod.link-fct.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/c-pod.link-fct.xsl?view=auto&rev=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/c-pod.link-fct.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/c-pod.link-fct.xsl Sun Mar  6 18:38:13 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="pod-fct" nc="pod" tlc="content"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <description>
+    This functions will output the POD link with image.
+  </description>
+
+	<xsl type="xhtml">
+    <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+		  <xsl:template name="xml-head">
+		    <head/>
+		  </xsl:template>
+		  
+		  <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>
+	</xsl>
+</forrest:contract>
\ No newline at end of file

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/feedback.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/feedback.ft?view=auto&rev=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/feedback.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/feedback.ft Sun Mar  6 18:38:13 2005
@@ -0,0 +1,62 @@
+<?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">
+      
+      <!--Looking for: -->
+      <!-- The optional feedback element will be used to construct a
+    feedback link in the footer with the page pathname appended:
+    <a href="@href">{@to}</a>
+    -->
+<!--  <feedback to="webmaster@foo.com"
+    href="mailto:webmaster@foo.com?subject=Feedback&#160;" >
+    Send feedback about the website to:
+  </feedback>-->
+      <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-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

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/fontsize.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/fontsize.ft?view=auto&rev=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/fontsize.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/fontsize.ft Sun Mar  6 18:38:13 2005
@@ -0,0 +1,46 @@
+<?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">
+	 	<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-body">
+			      <script type="text/javascript">ndeSetTextSize();</script>
+			      <div class="trail">
+			            Font size: 
+			              &#160;<input type="button" onclick="ndeSetTextSize('reset'); return false;" title="Reset text" class="resetfont" value="Reset"/>      
+			              &#160;<input type="button" onclick="ndeSetTextSize('decr'); return false;" title="Shrink text" class="smallerfont" value="-a"/>
+			              &#160;<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

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/meta.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/meta.ft?view=auto&rev=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/meta.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/meta.ft Sun Mar  6 18:38:13 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

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/txt-link.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/txt-link.ft?view=auto&rev=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/txt-link.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/txt-link.ft Sun Mar  6 18:38:13 2005
@@ -0,0 +1,56 @@
+<?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

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/xml-link.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/xml-link.ft?view=auto&rev=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/xml-link.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/templates/xml-link.ft Sun Mar  6 18:38:13 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="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" head="false">
+      <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+			  
+			  <xsl:template name="xml-link-body">
+				    <div class="xml" 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

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/FORREST-INF/main.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/FORREST-INF/main.ft?view=auto&rev=156369
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/FORREST-INF/main.ft (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/FORREST-INF/main.ft Sun Mar  6 18:38:13 2005
@@ -0,0 +1,34 @@
+<?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:view
+  xmlns:forrest="http://apache.org/forrest/templates/1.0" type="xhtml">
+  
+  <forrest:contract name="meta"/>
+  
+  <forrest:hook name="content">
+    <forrest:contract name="fontsize"/>
+		<forrest:hook name="export-link">
+      <forrest:contract name="txt-link"/>
+	    <forrest:contract name="xml-link"/>
+		</forrest:hook>
+  </forrest:hook>
+  
+  <forrest:contract name="feedback"/>
+  
+</forrest:view>