forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r328245 - /forrest/trunk/site-author/content/xdocs/docs_0_80/howto/howto-dev.xml
Date Tue, 25 Oct 2005 03:26:10 GMT
Author: crossley
Date: Mon Oct 24 20:26:07 2005
New Revision: 328245

URL: http://svn.apache.org/viewcvs?rev=328245&view=rev
Log:
Explain using the Cocoon LogTransformer.

Modified:
    forrest/trunk/site-author/content/xdocs/docs_0_80/howto/howto-dev.xml

Modified: forrest/trunk/site-author/content/xdocs/docs_0_80/howto/howto-dev.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/site-author/content/xdocs/docs_0_80/howto/howto-dev.xml?rev=328245&r1=328244&r2=328245&view=diff
==============================================================================
--- forrest/trunk/site-author/content/xdocs/docs_0_80/howto/howto-dev.xml (original)
+++ forrest/trunk/site-author/content/xdocs/docs_0_80/howto/howto-dev.xml Mon Oct 24 20:26:07
2005
@@ -306,6 +306,38 @@
         </p>
       </section>
 
+      <section id="debug-logtransformer">
+        <title>Using the Cocoon LogTransformer</title>
+        <p>
+          LogTransformers can be inserted in the sitemaps. This will write
+          the sax events at that point into a named log file.
+          Here is an example (the logfile will be written relative to this
+          particular sitemap) ...
+        </p>
+      <source><![CDATA[
+<map:match pattern="*.html">
+  <map:generate src="sources/{1}.xml"/>]]><strong><![CDATA[
+  <map:transform type="log">
+    <map:parameter name="logfile" value="my-1.log"/>
+    <map:parameter name="append" value="no"/>
+  </map:transform>]]></strong><![CDATA[
+  <map:transform src="stylesheets/source-to-table.xsl"/>
+  <map:transform src="stylesheets/table-to-page.xsl"/>]]><strong><![CDATA[
+  <map:transform type="log">
+    <map:parameter name="logfile" value="my-2.log"/>
+    <map:parameter name="append" value="no"/>
+  </map:transform>]]></strong><![CDATA[
+  <map:transform src="stylesheets/page-to-html.xsl"/>
+  <map:serialize type="html"/>
+</map:match>
+]]></source>
+        <p>
+          Another use for this technique is when you are not sure which
+          path is being taken through the sitemap. Add various LogTransformers
+          with different filenames and see which one gets triggered.
+        </p>
+      </section>
+
       <section id="debug-links">
         <title>Finding broken internal links</title>
         <p>



Mime
View raw message