| <?xml version="1.0"?> |
| <!-- |
| Copyright 2002-2004 The Apache Software Foundation or its licensors, |
| as applicable. |
| |
| 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:resources> |
| <map:resource name="file-resolver"> |
| <map:select type="exists"> |
| <map:when test="{project:content.xdocs}{uri}.sxw"> |
| <map:match type="regexp" pattern="^(.*?)([^/]*).xml$"> |
| <map:generate src="resources/stylesheets/aggregates/openoffice.xml"/> |
| <map:transform src="resources/stylesheets/aggregates/openoffice-document.xsl"> |
| <map:parameter name="src" value="{project:content.xdocs}{1}{2}.sxw"/> |
| </map:transform> |
| <map:transform type="cinclude"/> |
| <map:transform src="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> |
| </map:when> |
| |
| <map:when test="{project:content.xdocs}{uri}.sxi"> |
| <map:match type="regexp" pattern="^(.*?)([^/]*).xml$"> |
| <map:generate src="resources/stylesheets/aggregates/openoffice.xml"/> |
| <map:transform src="resources/stylesheets/aggregates/openoffice-document.xsl"> |
| <map:parameter name="src" value="{project:content.xdocs}{1}{2}.sxi"/> |
| </map:transform> |
| <map:transform type="cinclude"/> |
| <map:transform src="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> |
| </map:when> |
| </map:select> |
| </map:resource> |
| </map:resources> |
| |
| <map:pipelines> |
| <map:pipeline internal="true"> |
| <map:match pattern="**.xml"> |
| <map:call resource="file-resolver"> |
| <map:parameter name="uri" value="{1}"/> |
| </map:call> |
| </map:match> |
| </map:pipeline> |
| </map:pipelines> |
| </map:sitemap> |