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 2006/02/11 02:55:02 UTC

svn commit: r376907 - in /forrest/trunk/site-author/content/xdocs/docs_0_80: body-index.fv menu-index.fv tab-index.fv

Author: thorsten
Date: Fri Feb 10 17:55:01 2006
New Revision: 376907

URL: http://svn.apache.org/viewcvs?rev=376907&view=rev
Log:
FOR-807 adding structurer definition to imitate old fashion skin logic.

Added:
    forrest/trunk/site-author/content/xdocs/docs_0_80/body-index.fv
    forrest/trunk/site-author/content/xdocs/docs_0_80/menu-index.fv
    forrest/trunk/site-author/content/xdocs/docs_0_80/tab-index.fv

Added: forrest/trunk/site-author/content/xdocs/docs_0_80/body-index.fv
URL: http://svn.apache.org/viewcvs/forrest/trunk/site-author/content/xdocs/docs_0_80/body-index.fv?rev=376907&view=auto
==============================================================================
--- forrest/trunk/site-author/content/xdocs/docs_0_80/body-index.fv (added)
+++ forrest/trunk/site-author/content/xdocs/docs_0_80/body-index.fv Fri Feb 10 17:55:01 2006
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2002-2005 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:views xmlns:forrest="http://apache.org/forrest/templates/1.0" 
+  xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
+  <!-- The following variables are used to contact data models and/or contracts. -->
+  <jx:set var="getRequest" value="#{$cocoon/parameters/getRequest}"/>
+  <forrest:view type="html" hooksXpath="/">
+    <forrest:contract name="genericMarkup">
+      <forrest:property name="genericMarkup">
+        <jx:import 
+          uri="cocoon://${getRequest.substring(0,getRequest.indexOf('body-index')).concat('index')}.body.xml"/>
+      </forrest:property>
+    </forrest:contract>
+  </forrest:view>
+</forrest:views>
\ No newline at end of file

Added: forrest/trunk/site-author/content/xdocs/docs_0_80/menu-index.fv
URL: http://svn.apache.org/viewcvs/forrest/trunk/site-author/content/xdocs/docs_0_80/menu-index.fv?rev=376907&view=auto
==============================================================================
--- forrest/trunk/site-author/content/xdocs/docs_0_80/menu-index.fv (added)
+++ forrest/trunk/site-author/content/xdocs/docs_0_80/menu-index.fv Fri Feb 10 17:55:01 2006
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2002-2005 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:views xmlns:forrest="http://apache.org/forrest/templates/1.0" 
+  xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
+  <!-- The following variables are used to contact data models and/or contracts. -->
+  <jx:set var="getRequest" value="#{$cocoon/parameters/getRequest}"/>
+  <forrest:view type="html" hooksXpath="/">
+    <forrest:contract name="genericMarkup">
+      <forrest:property name="genericMarkup">
+        <jx:import 
+          uri="cocoon://${getRequest.substring(0,getRequest.indexOf('menu-index')).concat('index')}.menu.xml"/>
+      </forrest:property>
+    </forrest:contract>
+  </forrest:view>
+</forrest:views>
\ No newline at end of file

Added: forrest/trunk/site-author/content/xdocs/docs_0_80/tab-index.fv
URL: http://svn.apache.org/viewcvs/forrest/trunk/site-author/content/xdocs/docs_0_80/tab-index.fv?rev=376907&view=auto
==============================================================================
--- forrest/trunk/site-author/content/xdocs/docs_0_80/tab-index.fv (added)
+++ forrest/trunk/site-author/content/xdocs/docs_0_80/tab-index.fv Fri Feb 10 17:55:01 2006
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2002-2005 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:views xmlns:forrest="http://apache.org/forrest/templates/1.0" 
+  xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
+  <!-- The following variables are used to contact data models and/or contracts. -->
+  <jx:set var="getRequest" value="#{$cocoon/parameters/getRequest}"/>
+  <forrest:view type="html" hooksXpath="/">
+    <forrest:contract name="genericMarkup">
+      <forrest:property name="genericMarkup">
+        <jx:import 
+          uri="cocoon://${getRequest.substring(0,getRequest.indexOf('tab-index')).concat('index')}.tab.xml"/>
+      </forrest:property>
+    </forrest:contract>
+  </forrest:view>
+</forrest:views>
\ No newline at end of file