forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r185045 - in /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml: jtidy.properties output.xmap
Date Mon, 06 Jun 2005 21:33:23 GMT
Author: thorsten
Date: Mon Jun  6 14:33:23 2005
New Revision: 185045

URL: http://svn.apache.org/viewcvs?rev=185045&view=rev
Log:
added jtidy generator up and added the *.tidy output matches for debuging views

Added:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/jtidy.properties
  (with props)
Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/jtidy.properties
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/jtidy.properties?rev=185045&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/jtidy.properties
(added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/jtidy.properties
Mon Jun  6 14:33:23 2005
@@ -0,0 +1,30 @@
+# 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.
+
+indent=yes
+indent-spaces=8
+wrap=72
+markup=yes
+output-xml=no
+input-xml=no
+show-warnings=yes
+numeric-entities=yes
+quote-marks=yes
+quote-nbsp=yes
+quote-ampersand=yes
+break-before-br=yes
+uppercase-tags=no
+uppercase-attributes=no
+char-encoding=UTF-8

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/jtidy.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap?rev=185045&r1=185044&r2=185045&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap
Mon Jun  6 14:33:23 2005
@@ -27,6 +27,10 @@
       <map:selector logger="sitemap.selector.exists" name="exists" src="org.apache.forrest.sourceexists.SourceExistsSelector"
/>
     </map:selectors>
     <map:generators default="file">
+      <map:generator name="html"      
+                     src="org.apache.cocoon.generation.HTMLGenerator">
+        <jtidy-config>jtidy.properties</jtidy-config>
+      </map:generator>
       <map:generator name="directory" src="org.apache.cocoon.generation.DirectoryGenerator"
/>
       <map:generator label="content" logger="sitemap.generator.jx" name="jx" pool-grow="2"
pool-max="16" pool-min="2" src="org.apache.cocoon.generation.JXTemplateGenerator"/>
     </map:generators>
@@ -63,6 +67,7 @@
 	      <doctype-public>-//W3C//DTD XHTML 1.0 Strict//EN</doctype-public>
 	      <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</doctype-system>
 	      <encoding>UTF-8</encoding>
+        <indent>yes</indent>
 	    </map:serializer>
       <map:serializer name="txt" 
 			   src="org.apache.cocoon.serialization.TextSerializer"
@@ -73,7 +78,6 @@
   </map:components>
 <map:pipelines>
 
-  <map:pipeline>
 <!--
   This plugin provides a skin implementation based on views
   -->
@@ -242,7 +246,18 @@
         <map:serialize type="xml"/>
     </map:match>
   </map:pipeline>
-
+  <map:pipeline>
+<!--
+  Debug pipes - JTidy output
+  -->
+		<map:match pattern="*.tidy">
+      <map:generate type="html" src="cocoon:/{1}.html"/>
+     	<map:serialize type="xhtml"/>
+    </map:match>
+    <map:match pattern="**/*.tidy">
+      <map:generate type="html" src="cocoon:/{1}/{2}.html"/>
+     	<map:serialize type="xhtml"/>
+    </map:match>
   <!--
   Last processing step. 
   Here we are overriding the default skin generation.



Mime
View raw message