You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2004/12/02 02:22:53 UTC
svn commit: r109415 - /forrest/trunk/plugins/OpenOffice.org/input.xmap /forrest/trunk/plugins/OpenOffice.org/resources.xmap
Author: rgardler
Date: Wed Dec 1 17:22:52 2004
New Revision: 109415
URL: http://svn.apache.org/viewcvs?view=rev&rev=109415
Log:
move handling of resources to resource.xmap
Added:
forrest/trunk/plugins/OpenOffice.org/resources.xmap (contents, props changed)
Modified:
forrest/trunk/plugins/OpenOffice.org/input.xmap
Modified: forrest/trunk/plugins/OpenOffice.org/input.xmap
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/OpenOffice.org/input.xmap?view=diff&rev=109415&p1=forrest/trunk/plugins/OpenOffice.org/input.xmap&r1=109414&p2=forrest/trunk/plugins/OpenOffice.org/input.xmap&r2=109415
==============================================================================
--- forrest/trunk/plugins/OpenOffice.org/input.xmap (original)
+++ forrest/trunk/plugins/OpenOffice.org/input.xmap Wed Dec 1 17:22:52 2004
@@ -34,6 +34,7 @@
<map:transform type="cinclude"/>
<map:transform src="{forrest:plugins}/OpenOffice.org/resources/stylesheets/openoffice-writer2forrest.xsl">
<map:parameter name="filename" value="{2}" />
+ <map:parameter name="extension" value="sxw" />
</map:transform>
<map:serialize type="xml-document"/>
</map:match>
@@ -48,6 +49,7 @@
<map:transform type="cinclude"/>
<map:transform src="{forrest:plugins}/OpenOffice.org/resources/stylesheets/openoffice-impress2forrest.xsl">
<map:parameter name="filename" value="{2}" />
+ <map:parameter name="extension" value="sxi" />
</map:transform>
<map:serialize type="xml-document"/>
</map:match>
@@ -62,16 +64,7 @@
<map:call resource="file-resolver">
<map:parameter name="uri" value="{1}"/>
</map:call>
- </map:match>
-
- <map:match pattern="openOfficeEmbeddedImage/zip-**/file-**.*">
- <map:read src="jar:file://{project:content.xdocs}{1}!/{2}.{3}" mime-type="image/{3}" />
- </map:match>
-
- <map:match pattern="**/openOfficeEmbeddedImage/zip-**/file-**.*">
- <map:read src="jar:file://{project:content.xdocs}{2}!/{3}.{4}" mime-type="image/{4}" />
- </map:match>
-
+ </map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
Added: forrest/trunk/plugins/OpenOffice.org/resources.xmap
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/OpenOffice.org/resources.xmap?view=auto&rev=109415
==============================================================================
--- (empty file)
+++ forrest/trunk/plugins/OpenOffice.org/resources.xmap Wed Dec 1 17:22:52 2004
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+ <!-- ============================================================ -->
+ <!-- OpenOffice.org Plugin -->
+ <!-- This plugin allows OpenOffice.org application files to be -->
+ <!-- uded in a Forrest site -->
+ <!-- ============================================================ -->
+
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+ <map:pipelines>
+ <map:pipeline internal="true">
+
+ <map:match pattern="openOfficeEmbeddedImage/zip-**/file-**.*">
+ <map:read src="jar:file:///{project:content.xdocs}{1}!/{2}.{3}" mime-type="image/{3}" />
+ </map:match>
+
+ <map:match pattern="**/openOfficeEmbeddedImage/zip-**/file-**.*">
+ <map:read src="jar:file:///{project:content.xdocs}{1}/{2}!/{3}.{4}" mime-type="image/{4}" />
+ </map:match>
+
+ </map:pipeline>
+ </map:pipelines>
+</map:sitemap>