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/01/10 10:01:52 UTC

svn commit: r124777 - in forrest/trunk: main/fresh-site/src/documentation plugins/org.apache.forrest.plugin.fbits plugins/org.apache.forrest.plugin.fbits/fbits-xsl plugins/org.apache.forrest.plugin.fbits/resources/stylesheets plugins/org.apache.forrest.plugin.fbits/src/documentation plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs plugins/pluginTemplate/src/documentation

Author: thorsten
Date: Mon Jan 10 01:01:49 2005
New Revision: 124777

URL: http://svn.apache.org/viewcvs?view=rev&rev=124777
Log:
changed the fbits to xslt template which will give more freedom for advanced functions. The XML-templates are depreceated. fbits-xsl is the future.
Added:
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-fontsize-fct.xsl   (contents, props changed)
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-pdf.link-fct.xsl   (contents, props changed)
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-pod.link-fct.xsl   (contents, props changed)
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-txt.link-fct.xsl   (contents, props changed)
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-xml.link-fct.xsl   (contents, props changed)
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/dir2contracts-xsl.xsl   (contents, props changed)
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/filter-xsl.xsl   (contents, props changed)
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/ft-filter.xsl   (contents, props changed)
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/test.xsl   (contents, props changed)
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/xsl-transform.xsl   (contents, props changed)
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/leather.ft
Modified:
   forrest/trunk/main/fresh-site/src/documentation/skinconf.xml
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/index.xml
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/site.xml
   forrest/trunk/plugins/pluginTemplate/src/documentation/skinconf.xml

Modified: forrest/trunk/main/fresh-site/src/documentation/skinconf.xml
Url: http://svn.apache.org/viewcvs/forrest/trunk/main/fresh-site/src/documentation/skinconf.xml?view=diff&rev=124777&p1=forrest/trunk/main/fresh-site/src/documentation/skinconf.xml&r1=124776&p2=forrest/trunk/main/fresh-site/src/documentation/skinconf.xml&r2=124777
==============================================================================
--- forrest/trunk/main/fresh-site/src/documentation/skinconf.xml	(original)
+++ forrest/trunk/main/fresh-site/src/documentation/skinconf.xml	Mon Jan 10 01:01:49 2005
@@ -252,37 +252,33 @@
 -->
  <!-- Lenya using pelt-->
 <!--
+
     <color name="header" value="#ffffff"/>
 
-    <color name="tab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
-    <color name="tab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+    <color name="tab-selected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+    <color name="tab-unselected" value="#F5F4E9" link="#000000" vlink="#000000" hlink="#000000"/>
     <color name="subtab-selected" value="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
     <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
 
     <color name="heading" value="#E5E4D9"/>
     <color name="subheading" value="#000000"/>
-    <color name="published" value="#4C6C8F" font="#FFFFFF"/>
-    <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>
+    <color name="published" value="#000000"/>
     <color name="navstrip" value="#E5E4D9" font="#000000"/>
-
     <color name="toolbox" value="#CFDCED" font="#000000"/>
-
     <color name="border" value="#999999"/>
-    <color name="menu" value="#4C6C8F" font="#ffffff" link="#ffffff" vlink="#ffffff" hlink="#ffffff" current="#FFCC33" />    
-    <color name="menuheading" value="#cfdced" font="#000000" />
-    <color name="searchbox" value="#E5E4D9" font="#000000"/>
-    
+
+    <color name="menu" value="#E5E4D9" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
     <color name="dialog" value="#CFDCED"/>
-    <color name="body" value="#ffffff" />            
-    
-    <color name="table" value="#ccc"/>    
-    <color name="table-cell" value="#ffffff"/>   
+    <color name="body" value="#ffffff" />
+
+    <color name="table" value="#ccc"/>
+    <color name="table-cell" value="#ffffff"/>
     <color name="highlight" value="#ffff00"/>
     <color name="fixme" value="#cc6600"/>
     <color name="note" value="#006699"/>
     <color name="warning" value="#990000"/>
     <color name="code" value="#003366"/>
-        
+
     <color name="footer" value="#E5E4D9"/>
 -->
   </colors>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-fontsize-fct.xsl
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-fontsize-fct.xsl?view=auto&rev=124777
==============================================================================
--- (empty file)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-fontsize-fct.xsl	Mon Jan 10 01:01:49 2005
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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-fct" nc="fontsize" tlc="content"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <description>
+    This functions lets you change the size of the font you are using in the site with a jscript.
+  </description>
+
+	<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	  <xsl:template name="fontsize" mode="xhtml-head">
+	    <head>
+	      <script type="text/javascript" language="javascript" 
+	        src="{$root}skin/fontsize.js"></script>
+	    </head>
+	  </xsl:template>
+	  
+	  <xsl:template name="fontsize" mode="xhtml-body">
+			<body onload="init()">
+	      <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>
+	    </body>
+	  </xsl:template>
+	
+	</xsl:stylesheet>
+</forrest:contract>
\ No newline at end of file

Added: 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=auto&rev=124777
==============================================================================
--- (empty file)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-pdf.link-fct.xsl	Mon Jan 10 01:01:49 2005
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	  <xsl:template name="pdf" mode="xhtml-head">
+	    <head/>
+	  </xsl:template>
+	  
+	  <xsl:template name="pdf" mode="xhtml-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:contract>
\ No newline at end of file

Added: 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=auto&rev=124777
==============================================================================
--- (empty file)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-pod.link-fct.xsl	Mon Jan 10 01:01:49 2005
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	  <xsl:template name="xml" mode="xhtml-head">
+	    <head/>
+	  </xsl:template>
+	  
+	  <xsl:template name="xml" mode="xhtml-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:contract>
\ No newline at end of file

Added: 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=auto&rev=124777
==============================================================================
--- (empty file)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-txt.link-fct.xsl	Mon Jan 10 01:01:49 2005
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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-fct" nc="txt" tlc="content"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <description>
+    This functions will output the TXT link with image and print link.
+  </description>
+
+	<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	  <xsl:template name="txt" mode="xhtml-head">
+	    <head/>
+	  </xsl:template>
+	  
+	  <xsl:template name="txt" mode="xhtml-body">
+<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>
+    </body>
+	  </xsl:template>
+	
+	</xsl:stylesheet>
+</forrest:contract>
\ No newline at end of file

Added: 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=auto&rev=124777
==============================================================================
--- (empty file)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/fbits-xsl/c-xml.link-fct.xsl	Mon Jan 10 01:01:49 2005
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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-fct" nc="xml" tlc="content"
+    xmlns:forrest="http://apache.org/forrest/templates/1.0">
+    <description>
+      This functions will output the XML link with image.
+    </description>
+
+	<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	  <xsl:template name="xml" mode="xhtml-head">
+	    <head/>
+	  </xsl:template>
+	  
+	  <xsl:template name="xml" mode="xhtml-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/>
+		      XML</a>
+		    </div>
+      </body>
+	  </xsl:template>
+	
+	</xsl:stylesheet>
+</forrest:contract>
\ No newline at end of file

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&rev=124777&p1=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap&r1=124776&p2=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap&r2=124777
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap	(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap	Mon Jan 10 01:01:49 2005
@@ -29,6 +29,21 @@
 
 <map:pipelines>
 
+	<map:pipeline>
+    <map:match pattern="x">
+      <map:generate src="cocoon:/x-src"/>
+      <map:transform src="resources/stylesheets/xsl-transform.xsl" />
+      <map:serialize type="xml" />
+    </map:match>
+  </map:pipeline>
+
+	<map:pipeline>
+    <map:match pattern="x-src">
+      <map:generate src="resources/stylesheets/test.xsl"/>
+      <map:serialize type="xml" />
+    </map:match>
+  </map:pipeline>
+
   <map:pipeline>
    <map:match pattern="static.get">
      <map:generate src="fbits/c-fontsize-fct.xml"/>
@@ -52,12 +67,12 @@
 4. output the xhtml
 -->
 
-<!-- 
+<!-- XSL
 1. check all aviable fct 
 -->
   <map:pipeline>
-    <map:match pattern="contracts-dir-fbits.get">
-		  <map:generate type="directory" src="fbits">
+    <map:match pattern="contracts-dir-fbits-xsl.get">
+		  <map:generate type="directory" src="fbits-xsl">
         <map:parameter name="depth" value="1"/>
         <!-- sorted alphabetically -->
       	<map:parameter name="reverse" value="false"/>
@@ -79,6 +94,66 @@
 </contracts>
 -->
   <map:pipeline>
+    <map:match pattern="contracts-xsl.get">
+		  <map:generate src="cocoon:/contracts-dir-fbits-xsl.get"/>
+      <map:transform src="resources/stylesheets/dir2contracts-xsl.xsl">
+        <map:parameter name="contentDir" value="{forrest:plugins}/org.apache.forrest.plugin.fbits"/>
+      </map:transform>
+      <map:serialize type="xml"/>
+    </map:match>
+  </map:pipeline>
+
+ <!-- XSL
+2. check which fct are needed and include them in the output
+-->
+  <map:pipeline>
+    <map:match pattern="ft.get">
+      <map:aggregate element="filter">
+        <map:part src="src/documentation/leather.ft" />
+        <map:part src="cocoon:/contracts-xsl.get" /> 
+      </map:aggregate>
+      <map:transform src="resources/stylesheets/ft-filter.xsl"/>
+      <map:transform type="xinclude"/>
+      <!--<map:transform src="resources/stylesheets/contract.xsl"/>-->
+      <map:serialize type="xml"/>
+    </map:match>
+  </map:pipeline>
+
+	<map:pipeline>
+    <map:match pattern="ft-xsl">
+      <map:generate src="cocoon:/ft.get"/>
+      <map:transform src="resources/stylesheets/filter-xsl.xsl"/>
+      <map:serialize type="xml"/>
+    </map:match>
+  </map:pipeline>
+<!--old "training" pipes-->
+
+<!-- XML
+1. check all aviable fct 
+-->
+  <map:pipeline>
+    <map:match pattern="contracts-dir-fbits.get">
+		  <map:generate type="directory" src="fbits">
+        <map:parameter name="depth" value="1"/>
+        <!-- sorted alphabetically -->
+      	<map:parameter name="reverse" value="false"/>
+      </map:generate>
+      <map:serialize type="xml"/>
+    </map:match>
+  </map:pipeline>  
+<!--
+transform this dir-list 
+output e.g.
+<contracts>
+  <contract file-name="c-fontsize-fct.xml" css="fontsize" name="fontsize-fct">
+    <description>
+      This functions lets you change the size of the font you are using in the site with a jscript.
+    </description>
+    <realpath>/home/thorsten/apache/cocoon-2.1.5.1/build/webapp/leather/fct-bits/c-fontsize-fct.xml</realpath>
+  </contract>
+</contracts>
+-->
+  <map:pipeline>
     <map:match pattern="contracts.get">
 		  <map:generate src="cocoon:/contracts-dir-fbits.get"/>
       <map:transform src="resources/stylesheets/dir2contracts.xsl">
@@ -87,8 +162,8 @@
       <map:serialize type="xml"/>
     </map:match>
   </map:pipeline>
-  
-<!-- 
+
+<!-- XML
 2. check which fct are needed
 -->
   <map:pipeline>
@@ -99,11 +174,12 @@
       </map:aggregate>
       <map:transform src="resources/stylesheets/filter.xsl"/>
       <map:transform type="xinclude"/>
-      <map:transform src="resources/stylesheets/contract.xsl"/>
+      <!--<map:transform src="resources/stylesheets/contract.xsl"/>-->
       <map:serialize type="xml"/>
     </map:match>
   </map:pipeline>
 
+  
 <!--f:t directly transformed to div id="@name"-->
   <map:pipeline>
     <map:match pattern="ft.get">

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/dir2contracts-xsl.xsl
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/dir2contracts-xsl.xsl?view=auto&rev=124777
==============================================================================
--- (empty file)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/dir2contracts-xsl.xsl	Mon Jan 10 01:01:49 2005
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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>/fbits-xsl/</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-nc">
+    <xsl:value-of select="document($fct-bit-file)/forrest:contract/@nc"/>
+  </xsl:variable>
+  <xsl:variable name="fct-bit-tlc">
+    <xsl:value-of select="document($fct-bit-file)/forrest:contract/@tlc"/>
+  </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-nc}" 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>
+

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/filter-xsl.xsl
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/filter-xsl.xsl?view=auto&rev=124777
==============================================================================
--- (empty file)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/filter-xsl.xsl	Mon Jan 10 01:01:49 2005
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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:attribute-set name="att">
+  <xsl:attribute name="xmlns:xsl">http://www.w3.org/1999/XSL/Transform</xsl:attribute>
+  <xsl:attribute name="xmlns:forrest">http://apache.org/forrest/templates/1.0</xsl:attribute>
+</xsl:attribute-set>
+
+  <xsl:template match="/">
+    <xsl:element name="xsl:stylesheet" use-attribute-sets="att">
+      <xsl:for-each select="forrest:filter/descendant::xsl:stylesheet">
+        <xsl:copy-of select="*"/>
+      </xsl:for-each>
+    </xsl:element>
+  </xsl:template>
+<!--
+  <xsl:template match="forrest:hook">
+    <forrest:hook id="{@name}">
+      <xsl:apply-templates select="forrest:contract"/>
+    </forrest:hook>
+  </xsl:template>
+  
+  <xsl:template match="forrest:contract">
+    <xsl:variable name="css-ft"><xsl:value-of select="@name"/></xsl:variable>
+    <xsl:variable name="includePath">fbits-xsl/<xsl:value-of select="//forrest:contracts/forrest:contract[@css=$css-ft]/@file-name"/></xsl:variable>
+    <xi:include href="{$includePath}"/>
+  </xsl:template>
+  
+  <xsl:template match="forrest:contracts/forrest:contract"/>
+  -->  
+</xsl:stylesheet>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/ft-filter.xsl
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/ft-filter.xsl?view=auto&rev=124777
==============================================================================
--- (empty file)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/ft-filter.xsl	Mon Jan 10 01:01:49 2005
@@ -0,0 +1,58 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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"  
+  xmlns:xi="http://www.w3.org/2001/XInclude"
+  >
+
+  <xsl:template match="/">
+    <forrest:filter>
+      <xsl:apply-templates/>
+    </forrest:filter>
+  </xsl:template>
+
+  <xsl:template match="forrest:hook">
+    <forrest:hook id="{@name}">
+      <xsl:apply-templates select="forrest:contract"/>
+    </forrest:hook>
+  </xsl:template>
+  
+  <xsl:template match="forrest:contract">
+    <xsl:variable name="css-ft"><xsl:value-of select="@name"/></xsl:variable>
+    <xsl:variable name="includePath">fbits-xsl/<xsl:value-of select="//forrest:contracts/forrest:contract[@css=$css-ft]/@file-name"/></xsl:variable>
+    <xi:include href="{$includePath}"/>
+  </xsl:template>
+  
+  <xsl:template match="forrest:contracts/forrest:contract"/>
+  
+</xsl:stylesheet>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/test.xsl
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/test.xsl?view=auto&rev=124777
==============================================================================
--- (empty file)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/test.xsl	Mon Jan 10 01:01:49 2005
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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">
+
+  <xsl:template match="/">
+    <test>something</test>
+  </xsl:template>
+  
+</xsl:stylesheet>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/xsl-transform.xsl
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/xsl-transform.xsl?view=auto&rev=124777
==============================================================================
--- (empty file)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/xsl-transform.xsl	Mon Jan 10 01:01:49 2005
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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">
+
+  <xsl:template match="/">
+    <docu>
+    <!--<node-name><xsl:value-of select="@name"/> </node-name>-->
+    <node-s><xsl:value-of select="xsl:stylesheet/@version"/></node-s>
+    <xsl-transform>
+      <xsl:copy-of select="xsl:stylesheet/xsl:template"/>
+    </xsl-transform>
+    </docu>
+  </xsl:template>
+  
+  <xsl:template match="xsl:template">
+    <reached/>
+  </xsl:template>
+    
+  
+</xsl:stylesheet>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/index.xml
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/index.xml?view=diff&rev=124777&p1=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/index.xml&r1=124776&p2=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/index.xml&r2=124777
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/index.xml	(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/index.xml	Mon Jan 10 01:01:49 2005
@@ -34,7 +34,7 @@
     <section>
       <title>Pipeline</title>
       <ol>
-        <li>check all aviable fct --result--><a href="site:contracts">contract</a></li>
+        <li>check all aviable fct --result--><a href="site:contracts">contract</a> <a href="site:contracts-xsl">contract-xsl</a></li>
         <li>check which fct are needed --result--><a href="site:filter">filter</a></li>
         <li>check where to place them</li>
         <li>output the xhtml</li>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/site.xml
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/site.xml?view=diff&rev=124777&p1=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/site.xml&r1=124776&p2=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/site.xml&r2=124777
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/site.xml	(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/site.xml	Mon Jan 10 01:01:49 2005
@@ -42,6 +42,7 @@
     <example label="examples">
       <static-sample label="static-sample" href="static.get"/>
       <contracts-dir-fbits label="contracts-dir-fbits" href="contracts-dir-fbits.get"/>
+      <contracts-dir-fbits-xsl label="contracts-dir-fbits-xsl" href="contracts-dir-fbits-xsl.get"/>
       <contracts-dir-nuggets label="contracts-dir-nuggets" href="contracts-dir-nuggets.get"/> 
       <contracts label="contracts" href="contracts.get"/>
       <ft label="ft" href="ft.get"/>
@@ -49,6 +50,7 @@
   </fbits>
   <pipeline label="pipeline" tab="pipe">
     <contracts label="contracts" href="contracts.get"/>
+    <contracts-xsl label="contracts" href="contracts-xsl.get"/>
     <filter label="filter" href="filter.get"/>
   </pipeline>
   <!--

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/leather.ft
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/leather.ft?view=auto&rev=124777
==============================================================================
--- (empty file)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/leather.ft	Mon Jan 10 01:01:49 2005
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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">
+  
+  <forrest:hook name="content">
+    <forrest:contract name="fontsize"/>
+    <forrest:contract name="txt"/>
+    <forrest:contract name="xml"/>
+  </forrest:hook>
+  
+</forrest:view>

Modified: forrest/trunk/plugins/pluginTemplate/src/documentation/skinconf.xml
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/pluginTemplate/src/documentation/skinconf.xml?view=diff&rev=124777&p1=forrest/trunk/plugins/pluginTemplate/src/documentation/skinconf.xml&r1=124776&p2=forrest/trunk/plugins/pluginTemplate/src/documentation/skinconf.xml&r2=124777
==============================================================================
--- forrest/trunk/plugins/pluginTemplate/src/documentation/skinconf.xml	(original)
+++ forrest/trunk/plugins/pluginTemplate/src/documentation/skinconf.xml	Mon Jan 10 01:01:49 2005
@@ -252,37 +252,33 @@
 -->
  <!-- Lenya using pelt-->
 <!--
+
     <color name="header" value="#ffffff"/>
 
-    <color name="tab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
-    <color name="tab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+    <color name="tab-selected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+    <color name="tab-unselected" value="#F5F4E9" link="#000000" vlink="#000000" hlink="#000000"/>
     <color name="subtab-selected" value="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
     <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
 
     <color name="heading" value="#E5E4D9"/>
     <color name="subheading" value="#000000"/>
-    <color name="published" value="#4C6C8F" font="#FFFFFF"/>
-    <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>
+    <color name="published" value="#000000"/>
     <color name="navstrip" value="#E5E4D9" font="#000000"/>
-
     <color name="toolbox" value="#CFDCED" font="#000000"/>
-
     <color name="border" value="#999999"/>
-    <color name="menu" value="#4C6C8F" font="#ffffff" link="#ffffff" vlink="#ffffff" hlink="#ffffff" current="#FFCC33" />    
-    <color name="menuheading" value="#cfdced" font="#000000" />
-    <color name="searchbox" value="#E5E4D9" font="#000000"/>
-    
+
+    <color name="menu" value="#E5E4D9" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
     <color name="dialog" value="#CFDCED"/>
-    <color name="body" value="#ffffff" />            
-    
-    <color name="table" value="#ccc"/>    
-    <color name="table-cell" value="#ffffff"/>   
+    <color name="body" value="#ffffff" />
+
+    <color name="table" value="#ccc"/>
+    <color name="table-cell" value="#ffffff"/>
     <color name="highlight" value="#ffff00"/>
     <color name="fixme" value="#cc6600"/>
     <color name="note" value="#006699"/>
     <color name="warning" value="#990000"/>
     <color name="code" value="#003366"/>
-        
+
     <color name="footer" value="#E5E4D9"/>
 -->
   </colors>