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/04/09 13:38:18 UTC
svn commit: r392706 - in /forrest/trunk/whiteboard/doco:
content/authoring/common.fv resources/ resources/structurer/
resources/structurer/resource-types/
resources/structurer/resource-types/xhtml.fv
Author: thorsten
Date: Sun Apr 9 04:38:17 2006
New Revision: 392706
URL: http://svn.apache.org/viewcvs?rev=392706&view=rev
Log:
Adding xhtml structurer. This structurer will match with the lenya meta data resourceType definition and treat the input document as xhtml.
Added:
forrest/trunk/whiteboard/doco/resources/
forrest/trunk/whiteboard/doco/resources/structurer/
forrest/trunk/whiteboard/doco/resources/structurer/resource-types/
forrest/trunk/whiteboard/doco/resources/structurer/resource-types/xhtml.fv (with props)
Removed:
forrest/trunk/whiteboard/doco/content/authoring/common.fv
Added: forrest/trunk/whiteboard/doco/resources/structurer/resource-types/xhtml.fv
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/doco/resources/structurer/resource-types/xhtml.fv?rev=392706&view=auto
==============================================================================
--- forrest/trunk/whiteboard/doco/resources/structurer/resource-types/xhtml.fv (added)
+++ forrest/trunk/whiteboard/doco/resources/structurer/resource-types/xhtml.fv Sun Apr 9 04:38:17 2006
@@ -0,0 +1,92 @@
+<?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}"/>
+ <jx:set var="getRequestExtension" value="#{$cocoon/parameters/getRequestExtension}" />
+ <forrest:view type="html" hooksXpath="/html/body">
+ <!--
+ @type defines this structurer to html.
+ @hooksXpath defines where all hooks will be injected (as prefix).
+ -->
+ <forrest:contract name="branding-css-links">
+ <!-- More information around this contract
+ http://marc.theaimsgroup.com/?l=forrest-dev&m=113473237805195&w=2
+ -->
+ <!--Note: The forrest:properties element does not exit anymore (in comparison to a previous versions) -->
+ <forrest:property name="branding-css-links-input">
+ <css url="common.css"/>
+ <css>
+ #page{background-color:white;}
+ </css>
+ </forrest:property>
+ </forrest:contract>
+ <forrest:contract name="siteinfo-meta" dataURI="lm://project.build-info">
+ <forrest:property name="custom">
+ <meta http-equiv="content-type" content="text/html, charset=UTF-8"/>
+ </forrest:property>
+ </forrest:contract>
+ <!--
+ nuggets (extra data requested by the contract) are now defined in the contract element.
+ As well the former @nugget is now called @dataURI to reflect better the function of the attribute.
+ -->
+ <forrest:hook name="container">
+ <forrest:hook name="header">
+ <forrest:contract name="branding-tagline">
+ <forrest:property name="branding-tagline-name">docu (united
+ forrest/lenya)</forrest:property>
+ <forrest:property name="branding-tagline-tagline">powered by the
+ dispatcher </forrest:property>
+ </forrest:contract>
+ </forrest:hook>
+ <forrest:hook name="nav-main-hook">
+ <forrest:contract name="nav-main"
+ dataURI="cocoon://#{$getRequest}.navigation.xml"/>
+ <forrest:contract name="nav-main-sub"
+ dataURI="cocoon://#{$getRequest}.navigation.xml"/>
+ </forrest:hook>
+ <forrest:hook name="page">
+ <forrest:hook name="leftbar">
+ <forrest:contract name="nav-section"
+ dataURI="cocoon://#{$getRequest}.navigation.xml">
+ </forrest:contract>
+ </forrest:hook>
+ <forrest:hook name="content">
+ <forrest:hook name="content-main">
+ <forrest:contract name="genericXhtml"
+ dataURI="cocoon://#{$getRequest}.xml"/>
+ </forrest:hook>
+ </forrest:hook>
+ </forrest:hook>
+ <forrest:hook name="footer">
+ <forrest:contract name="siteinfo-feedback">
+ <forrest:property name="siteinfo-feedback">
+ <feedback to="webmaster@foo.com"
+ href="mailto:webmaster@foo.com?subject=Feedback " > Send
+ feedback about the website to: </feedback>
+ </forrest:property>
+ </forrest:contract>
+ <forrest:contract name="siteinfo-last-published"/>
+ </forrest:hook>
+ </forrest:hook>
+
+ </forrest:view>
+</forrest:views>
Propchange: forrest/trunk/whiteboard/doco/resources/structurer/resource-types/xhtml.fv
------------------------------------------------------------------------------
svn:eol-style = native