Author: ferdinand
Date: Tue Feb 12 08:02:30 2008
New Revision: 620836
URL: http://svn.apache.org/viewvc?rev=620836&view=rev
Log:
Restored split between fo- and pdf-pipelines so that fo can be generated and
tested as before
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=620836&r1=620835&r2=620836&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
Tue Feb 12 08:02:30 2008
@@ -23,32 +23,46 @@
</map:components>
<map:pipelines>
<map:pipeline>
+
+ <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:pdf.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>
<!-- generate .pdf files from .fo -->
- <map:match type="regexp" pattern="^(.*?)([^/]*).pdf$">
- <map:select type="exists">
- <map:when test="{lm:project.{1}{2}.pdf}">
- <map:read src="{lm:project.{1}{2}.pdf}"/>
- </map:when>
- <map:when test="{lm:project.{1}{2}.fo}">
- <map:generate src="{lm:project.{1}{2}.fo}"/>
- <map:serialize type="fo2pdf"/>
- </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: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>
- </map:match>
+
+ <map:match type="regexp" pattern="^(.*?)([^/]*).pdf$">
+ <map:select type="exists">
+ <map:when test="{lm:project.{1}{2}.pdf}">
+ <map:read src="{lm:project.{1}{2}.pdf}"/>
+ </map:when>
+ <map:when test="{lm:project.{1}{2}.fo}">
+ <map:generate src="{lm:project.{1}{2}.fo}"/>
+ <map:serialize type="fo2pdf"/>
+ </map:when>
+ <map:otherwise>
+ <map:generate src="cocoon://{1}{2}.fo"/>
+ <map:serialize type="fo2pdf"/>
+ </map:otherwise>
+ </map:select>
+ </map:match>
+
</map:pipeline>
</map:pipelines>
-</map:sitemap>
\ No newline at end of file
+</map:sitemap>