Author: thorsten
Date: Sun Feb 26 08:30:35 2006
New Revision: 381117

URL: http://svn.apache.org/viewcvs?rev=381117&view=rev
Log:
refactoring siteinfo-current-time.ft (FOR-797)

Modified:
    
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/siteinfo-current-time.ft

Modified: 
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/siteinfo-current-time.ft
URL: 
http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/siteinfo-current-time.ft?rev=381117&r1=381116&r2=381117&view=diff
==============================================================================
--- 
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/siteinfo-current-time.ft
 (original)
+++ 
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/siteinfo-current-time.ft
 Sun Feb 26 08:30:35 2006
@@ -17,8 +17,7 @@
 -->
 <forrest:contract
   xmlns:forrest="http://apache.org/forrest/templates/1.0";
-  name="siteinfo-current-time"
-  type="nugget">
+  name="siteinfo-current-time">
   <description>
     siteinfo-current-time will output the current time and date with the help 
of jscript.
   </description>
@@ -26,13 +25,17 @@
   <forrest:template 
     xmlns:i18n="http://apache.org/cocoon/i18n/2.1";
     xmlns:forrest="http://apache.org/forrest/templates/1.0";
-    format="html" name="siteinfo-current-time" inputFormat="xsl" body="true" 
head="false">
+    name="siteinfo-current-time" inputFormat="xsl">
     <xsl:stylesheet version="1.1" 
                    xmlns:i18n="http://apache.org/cocoon/i18n/2.1";
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
-        <xsl:template name="siteinfo-current-time-body">
-                     <script type="text/javascript">document.write("<i18n:text 
>Today:</i18n:text>&#160;" + new Date());</script>
-                   </xsl:template>
+        <xsl:template match="/">
+        <forrest:content>
+          <forrest:part>
+            <script type="text/javascript">document.write("<i18n:text 
>Today:</i18n:text>&#160;" + new Date());</script>
+          </forrest:part>
+        </forrest:content>
+      </xsl:template>
     </xsl:stylesheet>
   </forrest:template>
 </forrest:contract>


Reply via email to