Author: gmcdonald
Date: Sun May 18 04:33:18 2008
New Revision: 657540
URL: http://svn.apache.org/viewvc?rev=657540&view=rev
Log:
Refactor to latest dispatcher FOR-797
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/siteinfo-last-published-net.ft
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/siteinfo-last-published-net.ft
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/siteinfo-last-published-net.ft?rev=657540&r1=657539&r2=657540&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/siteinfo-last-published-net.ft
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/siteinfo-last-published-net.ft
Sun May 18 04:33:18 2008
@@ -16,7 +16,7 @@
limitations under the License.
-->
<forrest:contract xmlns:forrest="http://apache.org/forrest/templates/1.0"
- name="siteinfo-last-published-net" type="nugget">
+ name="siteinfo-last-published-net">
<description>
<p>
siteinfo-last-published-net
@@ -35,18 +35,21 @@
<![CDATA[<forrest:contract name="siteinfo-last-published-net"/>]]>
</usage>
<forrest:template xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
- xmlns:forrest="http://apache.org/forrest/templates/1.0" format="html"
- name="siteinfo-last-published-net" inputFormat="xsl" body="true"
- head="false">
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
name="siteinfo-last-published-net" inputFormat="xsl">
<xsl:stylesheet version="1.1"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template name="siteinfo-last-published-net-body">
+ <xsl:param name="siteinfo-last-published-net-body">
+ <xsl:template match="/">
+ <forrest:content>
+ <forrest:part>
<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>  <xsl:value-of select="$dt"/>
+ </forrest:part>
+ </forrest:content>
</xsl:template>
</xsl:stylesheet>
</forrest:template>