forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r180079 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/last-published-net.ft
Date Sun, 05 Jun 2005 11:08:17 GMT
Author: thorsten
Date: Sun Jun  5 04:08:16 2005
New Revision: 180079

URL: http://svn.apache.org/viewcvs?rev=180079&view=rev
Log:
Added the last-published-net.ft contract that is based on a timeserver ant not onjavascript.
contract is based on the one, Diwaker Gupta, sended to the ml. thx Diwaker Gupta. :)

Added:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/last-published-net.ft
  (with props)

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/last-published-net.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/last-published-net.ft?rev=180079&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/last-published-net.ft
(added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/last-published-net.ft
Sun Jun  5 04:08:16 2005
@@ -0,0 +1,37 @@
+<?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="last-published-net" type="nugget">
+    <description>
+        Last published contract. This functions will output the last published date of the
site.
+    </description>
+    <forrest:template 
+        xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+        xmlns:forrest="http://apache.org/forrest/templates/1.0"
+        format="xhtml" name="last-published-net" inputFormat="xsl" body="true" head="false"
css="false">
+        <xsl:stylesheet version="1.1" 
+            xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+            <xsl:template name="last-published-net-body">
+                <xsl:variable name="date"
+                    select="document('http://xobjex.com/service/date.xsl')/date"/>
+                <xsl:variable name="dt" select="$date/utc/@rfc-822"/>
+                <i18n:text >Last Published:</i18n:text>&#160; <xsl:value-of
select="$dt"/>
+            </xsl:template>
+        </xsl:stylesheet>
+    </forrest:template>
+</forrest:contract>
\ No newline at end of file

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/last-published-net.ft
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message