aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/documentation/sitemap.xmap41
1 files changed, 27 insertions, 14 deletions
diff --git a/src/documentation/sitemap.xmap b/src/documentation/sitemap.xmap
index f221ce06d..a77988406 100644
--- a/src/documentation/sitemap.xmap
+++ b/src/documentation/sitemap.xmap
@@ -63,8 +63,10 @@
<!-- ========================== FOP Additions ========================== -->
- <map:serializer name="svg2pdf" mime-type="application/pdf" src="org.apache.cocoon.serialization.SVGSerializer"/>
-
+ <map:serializer name="svg2pdf" mime-type="application/pdf" src="org.apache.cocoon.serialization.SVGSerializer">
+ <parameter name="transcoder"
+ value="org.apache.fop.svg.PDFTranscoder"/>
+ </map:serializer>
<!-- ======================= End FOP Additions ======================== -->
</map:serializers>
@@ -153,7 +155,7 @@
<map:match pattern="*/svg/*.svg">
<map:read src="content/xdocs/{1}/svg/{2}.svg" mime-type="image/svg"/>
- </map:match>
+ </map:match>
<map:match pattern="*/svg/*.png">
<map:generate src="content/xdocs/{1}/svg/{2}.svg"/>
<map:serialize type="svg2png"/>
@@ -343,13 +345,24 @@
</map:call>
</map:match>
+ <!-- Generates body HTML for files in subdirs -->
+ <map:match pattern="body-**/*.xml">
+ <map:generate src="content/xdocs/{1}/{2}.xml"/>
+ <map:call resource="skinit">
+ <map:parameter name="type" value="document2html"/>
+ <map:parameter name="dir" value="{1}/"/>
+ <map:parameter name="resource" value="{2}"/>
+ </map:call>
+ </map:match>
+
+ <!-- Generates body HTML for root-level files -->
<map:match pattern="body-**.xml">
- <map:generate src="content/xdocs/{1}.xml"/>
- <map:call resource="skinit">
- <map:parameter name="type" value="document2html"/>
- <map:parameter name="resource" value="{1}"/>
- <map:parameter name="dir" value="{1}"/>
- </map:call>
+ <map:generate src="content/xdocs/{1}.xml"/>
+ <map:call resource="skinit">
+ <map:parameter name="type" value="document2html"/>
+ <map:parameter name="dir" value="/"/>
+ <map:parameter name="resource" value="{1}"/>
+ </map:call>
</map:match>
<map:match pattern="*.html">
@@ -419,14 +432,15 @@
<map:serialize type="fo2pdf"/>
</map:match>
- <map:match pattern="*.pdf">
- <map:generate src="content/xdocs/{1}.xml"/>
+ <map:match pattern="community/howto/**.pdf">
+ <map:generate src="content/xdocs/community/howto/{1}.xml"/>
+ <map:transform src="library/xslt/howto2document.xsl" label="content"/>
<map:transform src="skins/{defaults:skin}/xslt/fo/document2fo.xsl"/>
<map:serialize type="fo2pdf"/>
</map:match>
- <map:match pattern="**/*.pdf">
- <map:generate src="{1}/{2}.xml"/>
+ <map:match pattern="**.pdf">
+ <map:generate src="content/xdocs/{1}.xml"/>
<map:transform src="skins/{defaults:skin}/xslt/fo/document2fo.xsl"/>
<map:serialize type="fo2pdf"/>
</map:match>
@@ -516,7 +530,6 @@
<map:read src="resources/images/{2}.{3}" mime-type="image/{3}"/>
</map:match>
-
<map:match pattern="**favicon.ico">
<map:call resource="skin-read">
<map:parameter name="path" value="images/favicon.ico"/>