aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-10-30 15:40:27 +0000
committerKeiron Liddle <keiron@apache.org>2002-10-30 15:40:27 +0000
commitf2c5ebc10788f2b2060aa950334e5e2c187b4f06 (patch)
treed6cfb8a7bb4794315838b7bc38287541978ea1ec
parent66e31fad1ba5db1cff6dd25808b5c78dae6c73ba (diff)
downloadxmlgraphics-fop-f2c5ebc10788f2b2060aa950334e5e2c187b4f06.tar.gz
xmlgraphics-fop-f2c5ebc10788f2b2060aa950334e5e2c187b4f06.zip
latest sitemap + svg2pdf transcoder works
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195387 13f79535-47bb-0310-9956-ffa450edef68
-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"/>