forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ferdin...@apache.org
Subject svn commit: r618400 - /forrest/branches/UpdateFOPto094/plugins/org.apache.forrest.plugin.output.pdf/output.xmap
Date Mon, 04 Feb 2008 19:47:27 GMT
Author: ferdinand
Date: Mon Feb  4 11:47:26 2008
New Revision: 618400

URL: http://svn.apache.org/viewvc?rev=618400&view=rev
Log:
changes to xmap, pipeline copied from sitemap and adjusted 

Modified:
    forrest/branches/UpdateFOPto094/plugins/org.apache.forrest.plugin.output.pdf/output.xmap

Modified: forrest/branches/UpdateFOPto094/plugins/org.apache.forrest.plugin.output.pdf/output.xmap
URL: http://svn.apache.org/viewvc/forrest/branches/UpdateFOPto094/plugins/org.apache.forrest.plugin.output.pdf/output.xmap?rev=618400&r1=618399&r2=618400&view=diff
==============================================================================
--- forrest/branches/UpdateFOPto094/plugins/org.apache.forrest.plugin.output.pdf/output.xmap
(original)
+++ forrest/branches/UpdateFOPto094/plugins/org.apache.forrest.plugin.output.pdf/output.xmap
Mon Feb  4 11:47:26 2008
@@ -34,7 +34,17 @@
             <map:serialize type="fo2pdf"/>
           </map:when>
           <map:otherwise>
-            <map:generate src="cocoon://{1}{2}.fo"/>
+              <map:aggregate element="site">
+                  <map:part src="cocoon:/skinconf.xml"/>
+                  <map:part src="cocoon:/{1}{2}.xml"/>
+              </map:aggregate>
+              <!-- <map:transform type="idgen"/> -->
+              <map:transform type="xinclude"/>
+              <map:transform type="linkrewriter" src="cocoon://{1}linkmap-{2}.fo"/>
+              <map:transform src="{lm:pdf.transform.document.fo}">
+                  <map:parameter name="imagesdir" value="{properties:resources.images}/"/>
+                  <map:parameter name="xmlbasedir" value="{properties:content.xdocs}{1}"/>
+              </map:transform>
             <map:serialize type="fo2pdf"/>
           </map:otherwise>
         </map:select>
@@ -42,3 +52,27 @@
     </map:pipeline>
   </map:pipelines>
 </map:sitemap>
+
+
+<!-- generate .fo from .xml  -->
+<map:match type="regexp" pattern="^(.*?)([^/]*).fo$">
+    <map:select type="exists">
+        <map:when test="{lm:project.{1}{2}.fo}">
+            <map:generate src="{lm:project.{1}{2}.fo}"/>
+        </map:when>
+        <map:otherwise>
+            <map:aggregate element="site">
+                <map:part src="cocoon:/skinconf.xml"/>
+                <map:part src="cocoon:/{1}{2}.xml"/>
+            </map:aggregate>
+            <!-- <map:transform type="idgen"/> -->
+            <map:transform type="xinclude"/>
+            <map:transform type="linkrewriter" src="cocoon://{1}linkmap-{2}.fo"/>
+            <map:transform src="{lm:transform.document.fo}">
+                <map:parameter name="imagesdir" value="{properties:resources.images}/"/>
+                <map:parameter name="xmlbasedir" value="{properties:content.xdocs}{1}"/>
+            </map:transform>
+        </map:otherwise>
+    </map:select>
+    <map:serialize type="xml"/>
+</map:match>
\ No newline at end of file



Mime
View raw message