forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r373321 - in /forrest/trunk/whiteboard/plugins: org.apache.forrest.plugin.internal.dispatcher/ org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/ org.apache.forrest.themes.core/resources/stylesheets/ org.apache.forrest.the...
Date Sun, 29 Jan 2006 15:59:35 GMT
Author: thorsten
Date: Sun Jan 29 07:57:43 2006
New Revision: 373321

URL: http://svn.apache.org/viewcvs?rev=373321&view=rev
Log:
FOR-801 - moving xsl from themes to the dispatcher. Since contracts are standalone the css
is produced through its own forrest:view definition. Incooperates the work from kevin FOR-723.
Further this commits activate and shows an example with the pelt.fv how to work with different
output formats (resolving FOR-624). The branding-theme-profiler.ft moved to the css contracts
and is obsolete (FOR-797)

Added:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/round-corner-hex.svg.xslt
      - copied unchanged from r373180, forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/resources/stylesheets/round-corner-hex.svg.xslt
Removed:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/resources/stylesheets/round-corner-hex.svg.xslt
    forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/resources/themes/pelt/html/branding-theme-profiler.ft
Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/internal.xmap
    forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/resources/themes/pelt.fv

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/internal.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/internal.xmap?rev=373321&r1=373320&r2=373321&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/internal.xmap
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/internal.xmap
Sun Jan 29 07:57:43 2006
@@ -96,24 +96,6 @@
     </map:resource>
   </map:resources>
   <map:pipelines>
-    <map:pipeline>
-      <!-- businessHelper -->
-      <map:mount uri-prefix="" src="dataModel.xmap" check-reload="yes"
-        pass-through="true" />
-    </map:pipeline>
-      <!-- linkmap -->
-    <map:pipeline>
-      <map:mount uri-prefix="" src="linkmap.xmap" check-reload="yes"
-        pass-through="true" />
-    </map:pipeline>
-    <map:pipeline>
-      <map:mount uri-prefix="" src="themer.xmap" check-reload="yes"
-        pass-through="true" /> 
-    </map:pipeline>
-    <map:pipeline>
-      <map:mount uri-prefix="" src="themes.xmap" check-reload="yes"
-        pass-through="true" /> 
-    </map:pipeline>
     <!--
       structurer
       prepares and transforms the requested contracts (themes) and populate them with the
content (businessHelper).
@@ -175,6 +157,17 @@
         </map:transform>
         <map:serialize type="xhtml" />
       </map:match>
+      <map:match pattern="**.dispatcher.css"> 	 
+         <map:generate src="lm://resolve.structurer.{1}" /> 	
+         <map:transform type="dispatcher"> 	 
+           <map:parameter name="type" value="css" /> 	 
+         </map:transform> 	 
+         <map:transform type="pattern" 	 
+           src="{forrest:context}/resources/chaperon/grammars/link.xlex" /> 	 
+         <map:transform 	 
+           src="{forrest:context}/resources/chaperon/stylesheets/pattern2link.xsl" />
	 
+         <map:serialize type="text" mime-type="text/css" /> 	 
+       </map:match>
       <map:match pattern="internal.**.*">
         <map:generate src="lm://resolve.structurer.{2}-to-xhtml2" />
         <map:call resource="jx-transformer">
@@ -186,6 +179,24 @@
         </map:transform>
         <map:serialize type="xml"/>
       </map:match>
+    </map:pipeline>
+    <map:pipeline>
+      <!-- businessHelper -->
+      <map:mount uri-prefix="" src="dataModel.xmap" check-reload="yes"
+        pass-through="true" />
+    </map:pipeline>
+      <!-- linkmap -->
+    <map:pipeline>
+      <map:mount uri-prefix="" src="linkmap.xmap" check-reload="yes"
+        pass-through="true" />
+    </map:pipeline>
+    <map:pipeline>
+      <map:mount uri-prefix="" src="themer.xmap" check-reload="yes"
+        pass-through="true" /> 
+    </map:pipeline>
+    <map:pipeline>
+      <map:mount uri-prefix="" src="themes.xmap" check-reload="yes"
+        pass-through="true" /> 
     </map:pipeline>
   </map:pipelines>
 </map:sitemap>

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/resources/themes/pelt.fv
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/resources/themes/pelt.fv?rev=373321&r1=373320&r2=373321&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/resources/themes/pelt.fv
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/resources/themes/pelt.fv
Sun Jan 29 07:57:43 2006
@@ -23,39 +23,13 @@
   <!-- The following variables are used to contact data models and/or contracts. -->
   <jx:set var="getRequest" value="#{$cocoon/parameters/getRequest}"/>
   <jx:set var="getRequestExstension" value="#{$cocoon/parameters/getRequestExstension}"
/>
-
-  <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" media="screen" rel="alternate stylesheet" theme="common"/>
-        <css url="leather-dev.css" media="screen" rel="alternate stylesheet" theme="common"/>
-        <css url="pelt.basic.css" media="screen" theme="Pelt"/>
-        <css url="pelt.screen.css" media="screen" theme="Pelt"/>
-        <css url="pelt.print.css" media="print"/>
-        <css>/* Extra css */
-    p.quote {
-      margin-left: 2em;
-      padding: .5em;
-      background-color: #f0f0f0;
-      font-family: monospace;
-    }</css>
-      </forrest:property>
-    </forrest:contract>
-  <!--
+  
+  <!-- CSS View of the request e.g. index.dispatcher.css -->
+  <forrest:view type="css" hooksXpath="/">
     <forrest:contract name="branding-theme-profiler">
       <forrest:properties contract="branding-theme-profiler">
          <forrest:property name="branding-theme-profiler-theme">Pelt</forrest:property>
         <forrest:property name="branding-theme-profiler">
-          
-          -->
            <!-- These values are used for the generated CSS files.
     They essentially "override" the default colors defined in the chosen theme.
     There are four duplicate "groups" of colors below, denoted by comments:
@@ -84,7 +58,7 @@
      pelt: feedback: the optional bottom strip containing feedback link
   -->
 
-<!--
+
     <color name="breadtrail" value="#cedfef" font="#0F3660" link="#0F3660" vlink="#0F3660"
hlink="#000066"/>
     <color name="header" value="#294563"/>
     <color name="tab-selected" value="#4a6d8c" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
@@ -110,7 +84,7 @@
     <color name="warning" value="#990000"/>
     <color name="code" value="#CFDCED"/>
     <color name="footer" value="#cedfef"/>
--->
+
 
   <!-- Color group: Krysalis -->
 <!--
@@ -205,11 +179,39 @@
     <color name="code" value="#003366"/>
 
     <color name="footer" value="#E5E4D9"/>-->
-<!--
         </forrest:property>
       </forrest:properties>
     </forrest:contract>
-    -->
+  </forrest:view>
+  
+  <!-- HTML View of the request (e.g. index.html)-->
+  <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" media="screen" rel="alternate stylesheet" theme="common"/>
+        <css url="leather-dev.css" media="screen" rel="alternate stylesheet" theme="common"/>
+        <css url="pelt.basic.css" media="screen" theme="Pelt"/>
+        <css url="pelt.screen.css" media="screen" theme="Pelt"/>
+        <!-- You can request request specific css, but beware that you need to use the
*.dispatcher.css extension!!!-->
+        <css url="{$getRequest}.dispatcher.css" media="screen" theme="Pelt"/>
+        <css url="pelt.print.css" media="print"/>
+        <css>/* Extra css */
+    p.quote {
+      margin-left: 2em;
+      padding: .5em;
+      background-color: #f0f0f0;
+      font-family: monospace;
+    }</css>
+      </forrest:property>
+    </forrest:contract>
     <forrest:contract name="siteinfo-meta" dataURI="lm://project.build-info"/>
 
     <forrest:contract name="siteinfo-meta-navigation" dataURI="cocoon://#{$getRequest}.navigation.xml"/>



Mime
View raw message