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/06/15 02:49:01 UTC

svn commit: r190681 - /forrest/branches/locationmap_branch/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/content-main-lenya.ft

Author: thorsten
Date: Tue Jun 14 17:49:00 2005
New Revision: 190681

URL: http://svn.apache.org/viewcvs?rev=190681&view=rev
Log:
Created an example contract for including a lenya default pub page into the view. 

Added:
    forrest/branches/locationmap_branch/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/content-main-lenya.ft   (with props)

Added: forrest/branches/locationmap_branch/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/content-main-lenya.ft
URL: http://svn.apache.org/viewcvs/forrest/branches/locationmap_branch/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/content-main-lenya.ft?rev=190681&view=auto
==============================================================================
--- forrest/branches/locationmap_branch/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/content-main-lenya.ft (added)
+++ forrest/branches/locationmap_branch/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/content-main-lenya.ft Tue Jun 14 17:49:00 2005
@@ -0,0 +1,48 @@
+<?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:i18n="http://apache.org/cocoon/i18n/2.1"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  name="content-main-lenya" type="nugget">
+  <description>
+    content-main-lenya - Template will output the content-main-lenya.
+  </description>
+  <usage><![CDATA[<forrest:contract name="content-main-lenya">
+  <forrest:properties contract="content-main-lenya">
+    <forrest:property name="content-main-lenya" 
+      nugget="get.nugget.lenya.content.main">
+      <url>lenya/test.html</url>
+    </forrest:property>
+  </forrest:properties>
+</forrest:contract>]]></usage>
+  <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
+    format="xhtml" name="content-main-lenya" inputFormat="xsl" body="true" head="false">
+     <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	    <xsl:template name="content-main-lenya-body" >
+        <xsl:param name="content-main-lenya"/>
+	<xsl:comment>+
+	    |start content-main-lenya
+	    +</xsl:comment> 
+			  <xsl:copy-of select="$content-main-lenya//div[@id='body']/*"/>
+<xsl:comment>+
+    |end content-main-lenya
+    +</xsl:comment>
+		  </xsl:template>
+	  </xsl:stylesheet>
+  </forrest:template>
+</forrest:contract>
\ No newline at end of file

Propchange: forrest/branches/locationmap_branch/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/content-main-lenya.ft
------------------------------------------------------------------------------
    svn:eol-style = native