You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/02/28 14:32:43 UTC
svn commit: r381654 - in /lenya/trunk/src: modules/sitetree/config/sitemap/
targets/ webapp/lenya/config/sitemap/
Author: andreas
Date: Tue Feb 28 05:32:42 2006
New Revision: 381654
URL: http://svn.apache.org/viewcvs?rev=381654&view=rev
Log:
Moved sitemap patch files from confpatch to webapp/config/sitemap. Allow modules to patch the sitemap. This is a next step towards equal structures for core and modules.
Added:
lenya/trunk/src/modules/sitetree/config/sitemap/
lenya/trunk/src/modules/sitetree/config/sitemap/transformers.xmap
lenya/trunk/src/webapp/lenya/config/sitemap/
lenya/trunk/src/webapp/lenya/config/sitemap/actions.xmap
lenya/trunk/src/webapp/lenya/config/sitemap/comments.xmap
lenya/trunk/src/webapp/lenya/config/sitemap/exceptionselector.xmap
lenya/trunk/src/webapp/lenya/config/sitemap/matchers.xmap
lenya/trunk/src/webapp/lenya/config/sitemap/pipelines.xmap
lenya/trunk/src/webapp/lenya/config/sitemap/resources.xmap
lenya/trunk/src/webapp/lenya/config/sitemap/selectors.xmap
lenya/trunk/src/webapp/lenya/config/sitemap/serializers.xmap
lenya/trunk/src/webapp/lenya/config/sitemap/transformers.xmap
Modified:
lenya/trunk/src/targets/modules-build.xml
lenya/trunk/src/targets/webapp-build.xml
Added: lenya/trunk/src/modules/sitetree/config/sitemap/transformers.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/sitetree/config/sitemap/transformers.xmap?rev=381654&view=auto
==============================================================================
--- lenya/trunk/src/modules/sitetree/config/sitemap/transformers.xmap (added)
+++ lenya/trunk/src/modules/sitetree/config/sitemap/transformers.xmap Tue Feb 28 05:32:42 2006
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-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.
+-->
+
+<xmap xpath="/sitemap/components/transformers"
+ unless="/sitemap/components/transformers/transformer[@name = 'index']"
+ xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+ <map:transformer name="index" logger="lenya.sitemap.transformer.index"
+ src="org.apache.lenya.cms.cocoon.transformation.DocumentIndexTransformer"/>
+
+</xmap>
\ No newline at end of file
Modified: lenya/trunk/src/targets/modules-build.xml
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/targets/modules-build.xml?rev=381654&r1=381653&r2=381654&view=diff
==============================================================================
--- lenya/trunk/src/targets/modules-build.xml (original)
+++ lenya/trunk/src/targets/modules-build.xml Tue Feb 28 05:32:42 2006
@@ -43,7 +43,16 @@
<exclude name="*/config/cocoon-xconf/**"/>
<exclude name="config/lenya-roles/**"/>
<exclude name="*/config/lenya-roles/**"/>
+ <exclude name="config/sitemap/**"/>
+ <exclude name="*/config/sitemap/**"/>
</fileset>
+ </bulkCopy>
+ <bulkCopy
+ sourcedirs="${modules.root.dirs}"
+ todir="${build.patch}/sitemap/modules"
+ flatten="false">
+ <fileset includes="config/sitemap/**.xmap"/>
+ <fileset includes="*/config/sitemap/**.xmap"/>
</bulkCopy>
<bulkCopy
sourcedirs="${modules.root.dirs}"
Modified: lenya/trunk/src/targets/webapp-build.xml
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/targets/webapp-build.xml?rev=381654&r1=381653&r2=381654&view=diff
==============================================================================
--- lenya/trunk/src/targets/webapp-build.xml (original)
+++ lenya/trunk/src/targets/webapp-build.xml Tue Feb 28 05:32:42 2006
@@ -78,10 +78,13 @@
</fileset>
</copy>
- <!-- copy patch files for cocoon.xconf -->
- <copy todir="${build.patch}/cocoon-xconf" flatten="false">
- <fileset dir="${src.webapp.dir}/lenya/config/cocoon-xconf">
- <include name="**/*.xconf"/>
+ <!-- copy patch files -->
+ <copy todir="${build.patch}" flatten="false">
+ <fileset dir="${src.webapp.dir}/lenya/config">
+ <include name="cocoon-xconf/**/*.xconf"/>
+ <include name="cocoon-xconf/*.xconf"/>
+ <include name="sitemap/**/*.xmap"/>
+ <include name="sitemap/*.xmap"/>
</fileset>
</copy>
@@ -140,7 +143,13 @@
</delete>
<antcall target="deploy-modules"/>
-
+
+ <!-- Patch sitemap.xmap -->
+ <xpatch file="${build.webapp}/sitemap.xmap"
+ srcdir="${build.patch}/sitemap"
+ includes="**/*.xmap"
+ addComments="false"/>
+
<!-- Patch cocoon.xconf -->
<property name="patch.webapp" value="true"/>
<xpatch file="${build.webapp}/WEB-INF/cocoon.xconf"
@@ -151,13 +160,13 @@
srcdir="${build.patch}/cocoon-xconf"
includes="**/*.xconf"
excludes="prepare/*.xconf"
- addComments="true"/>
+ addComments="false"/>
<!-- Patch lenya.roles -->
<xpatch file="${build.webapp}/WEB-INF/classes/org/apache/lenya/lenya.roles"
srcdir="${build.patch}/lenya-roles"
includes="**/*.xroles"
- addComments="true"/>
+ addComments="false"/>
<!-- Copy database files to ${build.webapp}/WEB-INF/db -->
<copy todir="${build.webapp}/WEB-INF/db">
Added: lenya/trunk/src/webapp/lenya/config/sitemap/actions.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/config/sitemap/actions.xmap?rev=381654&view=auto
==============================================================================
--- lenya/trunk/src/webapp/lenya/config/sitemap/actions.xmap (added)
+++ lenya/trunk/src/webapp/lenya/config/sitemap/actions.xmap Tue Feb 28 05:32:42 2006
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-2005 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.
+-->
+<!-- $Id: actions.xmap 280060 2005-09-11 01:56:31Z chestnut $ -->
+
+<xmap xpath="/sitemap/components/actions" unless="/sitemap/components/actions/action[@name = 'authenticator']">
+ <map:action name="authenticator" src="org.apache.lenya.cms.cocoon.acting.DelegatingAuthenticatorAction" logger="lenya.sitemap.action.authenticator"/>
+ <map:action name="authorizer" src="org.apache.lenya.cms.cocoon.acting.DelegatingAuthorizerAction" logger="lenya.sitemap.action.authorizer"/>
+ <map:action name="language-exists" logger="lenya.sitemap.action.language-exists" src="org.apache.lenya.cms.cocoon.acting.LanguageExistsAction"/>
+ <map:action name="request-parameter-exists" logger="sitemap.action.requestParameterExists" src="org.apache.cocoon.acting.RequestParameterExistsAction" />
+ <map:action name="reserved-checkin" src="org.apache.lenya.cms.cocoon.acting.ReservedCheckinAction" logger="sitemap.action.reserved-checkin"/>
+ <map:action name="reserved-checkout" src="org.apache.lenya.cms.cocoon.acting.ReservedCheckoutAction" logger="sitemap.action.reserved-checkout"/>
+ <map:action name="reserved-checkout-test" src="org.apache.lenya.cms.cocoon.acting.ReservedCheckoutTestAction" logger="sitemap.action.reserved-checkout-test"/>
+ <map:action name="discover-checkout" src="org.apache.lenya.cms.cocoon.acting.DiscoverCheckoutAction" logger="sitemap.action.discover-checkout"/>
+ <map:action name="set-header" logger="sitemap.action.set-header" src="org.apache.cocoon.acting.HttpHeaderAction"/>
+ <map:action name="resource-exists" logger="sitemap.action.resource-exists" src="org.apache.cocoon.acting.ResourceExistsAction"/>
+ <map:action name="resource-exists-enhanced" logger="sitemap.action.resource-exists-enhanced" src="org.apache.lenya.cms.cocoon.acting.ResourceExistsAction"/>
+ <map:action name="task" logger="sitemap.action.task" src="org.apache.lenya.cms.cocoon.acting.TaskAction"/>
+ <map:action name="workflow" logger="sitemap.action.workflow" src="org.apache.lenya.cms.cocoon.acting.WorkflowInvokerAction"/>
+ <map:action name="session-propagator" logger="sitemap.action.session-propagator" src="org.apache.cocoon.acting.SessionPropagatorAction"/>
+</xmap>
\ No newline at end of file
Added: lenya/trunk/src/webapp/lenya/config/sitemap/comments.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/config/sitemap/comments.xmap?rev=381654&view=auto
==============================================================================
--- lenya/trunk/src/webapp/lenya/config/sitemap/comments.xmap (added)
+++ lenya/trunk/src/webapp/lenya/config/sitemap/comments.xmap Tue Feb 28 05:32:42 2006
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-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.
+-->
+
+<xmap xpath="/sitemap" remove="//comment()"/>
\ No newline at end of file
Added: lenya/trunk/src/webapp/lenya/config/sitemap/exceptionselector.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/config/sitemap/exceptionselector.xmap?rev=381654&view=auto
==============================================================================
--- lenya/trunk/src/webapp/lenya/config/sitemap/exceptionselector.xmap (added)
+++ lenya/trunk/src/webapp/lenya/config/sitemap/exceptionselector.xmap Tue Feb 28 05:32:42 2006
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-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.
+-->
+
+<xmap xpath="/sitemap/components/selectors/selector[@name = 'exception']"
+ unless="/sitemap/components/selectors/selector[@name = 'exception']/exception[@name = 'document-does-not-exist']"
+ insert-before="/sitemap/components/selectors/selector[@name = 'exception']/exception[@class = 'java.lang.Throwable']">
+ <exception name="document-does-not-exist" class="org.apache.lenya.cms.publication.DocumentDoesNotExistException"/>
+ <exception class="org.apache.lenya.cms.task.ExecutionException" name="execution" unroll="true"/>
+ <exception class="org.apache.tools.ant.BuildException" name="build" unroll="true"/>
+ <exception class="org.xml.sax.SAXParseException" name="sax-parsing"/>
+ <exception class="org.xml.sax.SAXException" name="sax" unroll="true"/>
+ <exception class="org.apache.cocoon.ProcessingException" name="processing" unroll="true"/>
+ <!-- <exception class="org.apache.lenya.cms.site.SiteException" name="sitetree"/> -->
+</xmap>
Added: lenya/trunk/src/webapp/lenya/config/sitemap/matchers.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/config/sitemap/matchers.xmap?rev=381654&view=auto
==============================================================================
--- lenya/trunk/src/webapp/lenya/config/sitemap/matchers.xmap (added)
+++ lenya/trunk/src/webapp/lenya/config/sitemap/matchers.xmap Tue Feb 28 05:32:42 2006
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-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.
+-->
+
+<xmap xpath="/sitemap/components/matchers" unless="/sitemap/components/matchers/matcher[@name = 'usecase']">
+ <map:matcher name="agent-match" logger="sitemap.matcher.referer-match" src="org.apache.cocoon.matching.WildcardHeaderMatcher">
+ <header-name>User-Agent</header-name>
+ </map:matcher>
+ <map:matcher name="usecase" logger="sitemap.matcher.usecase" src="org.apache.cocoon.matching.WildcardRequestParameterMatcher">
+ <parameter-name>lenya.usecase</parameter-name>
+ </map:matcher>
+ <map:matcher name="step" logger="sitemap.matcher.step" src="org.apache.cocoon.matching.WildcardRequestParameterMatcher">
+ <parameter-name>lenya.step</parameter-name>
+ </map:matcher>
+ <map:matcher name="registered-usecase" logger="sitemap.matcher.registered-usecase" src="org.apache.lenya.cms.cocoon.matching.UsecaseRegistrationMatcher"/>
+</xmap>
Added: lenya/trunk/src/webapp/lenya/config/sitemap/pipelines.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/config/sitemap/pipelines.xmap?rev=381654&view=auto
==============================================================================
--- lenya/trunk/src/webapp/lenya/config/sitemap/pipelines.xmap (added)
+++ lenya/trunk/src/webapp/lenya/config/sitemap/pipelines.xmap Tue Feb 28 05:32:42 2006
@@ -0,0 +1,137 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-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.
+-->
+
+<xmap remove="/sitemap/pipelines" xpath="/sitemap" insert-after="/sitemap/resources">
+
+<!-- =========================== Pipelines ================================= -->
+
+ <map:pipelines>
+
+ <!-- I18N -->
+ <map:pipeline>
+ <map:match pattern="i18n-catalogue/**">
+ <map:mount uri-prefix="" src="lenya/i18n.xmap" check-reload="true" reload-method="synchron"/>
+ </map:match>
+ </map:pipeline>
+
+ <map:pipeline>
+
+ <!-- Lenya GUI screen -->
+ <map:match pattern="lenya-screen.xsl">
+ <map:generate src="fallback://lenya/xslt/util/page2xhtml.xsl"/>
+ <map:transform src="lenya/xslt/util/page2xslt.xsl">
+ <map:parameter name="contextprefix" value="{request:contextPath}"/>
+ </map:transform>
+ <map:serialize type="xml"/>
+ </map:match>
+
+ <map:match pattern="ac.login" type="usecase">
+ <map:mount src="lenya/usecases/usecase.xmap" uri-prefix="" check-reload="yes" reload-method="synchron"/>
+ </map:match>
+ <map:match pattern="ac.logout" type="usecase">
+ <map:mount src="lenya/usecases/usecase.xmap" uri-prefix="" check-reload="yes" reload-method="synchron"/>
+ </map:match>
+
+ <!-- favicon -->
+ <map:match pattern="favicon.ico">
+ <map:read mime-type="image/x-icon" src="lenya/resources/images/lenya.ico"/>
+ </map:match>
+ </map:pipeline>
+
+ <map:pipeline internal-only="true">
+ <map:match pattern="**">
+ <map:mount uri-prefix="" src="global-sitemap.xmap" check-reload="true" reload-method="synchron"/>
+ </map:match>
+ </map:pipeline>
+
+ <map:pipeline>
+
+ <map:match pattern="**">
+ <map:match pattern="*/webdav**">
+ <map:act type="authenticator">
+ <map:act type="authorizer">
+ <map:mount uri-prefix="" src="global-sitemap.xmap" check-reload="true" reload-method="synchron"/>
+ </map:act>
+ <map:act type="set-header">
+ <map:parameter name="WWW-Authenticate" value="Basic Realm=lenya" />
+ <map:generate src="context://lenya/content/util/empty.xml" />
+ <map:transform src="fallback://lenya/xslt/exception/forbidden.xsl">
+ <map:parameter name="documentid" value="{page-envelope:document-id}"/>
+ <map:parameter name="documenturl" value="{page-envelope:document-url}"/>
+ <map:parameter name="area" value="{page-envelope:area}"/>
+ </map:transform>
+ <map:serialize type="xhtml" status-code="401"/>
+ </map:act>
+ </map:act>
+ <map:act type="set-header">
+ <map:parameter name="WWW-Authenticate" value="Basic Realm=lenya" />
+ <map:generate src="context://lenya/content/util/empty.xml" />
+ <map:transform src="fallback://lenya/xslt/exception/forbidden.xsl">
+ <map:parameter name="documentid" value="{page-envelope:document-id}"/>
+ <map:parameter name="documenturl" value="{page-envelope:document-url}"/>
+ <map:parameter name="area" value="{page-envelope:area}"/>
+ </map:transform>
+ <map:serialize type="xhtml" status-code="401"/>
+ </map:act>
+ </map:match>
+ <map:act type="authorizer">
+ <map:mount uri-prefix="" src="global-sitemap.xmap" check-reload="true" reload-method="synchron"/>
+ </map:act>
+ <map:redirect-to uri="{request:requestURI}?lenya.usecase=ac.login&referrerQueryString={request:queryString}" session="true"/>
+ </map:match>
+
+ </map:pipeline>
+
+ <!-- this is the default error handler -->
+ <map:handle-errors>
+ <map:select type="exception">
+ <map:when test="document-does-not-exist">
+ <map:generate src="lenya/content/util/empty.xml"/>
+ <map:transform src="fallback://lenya/xslt/exception/document-does-not-exist.xsl">
+ <map:parameter name="documentid" value="{page-envelope:document-id}"/>
+ <map:parameter name="documenturl" value="{page-envelope:document-url}"/>
+ <map:parameter name="area" value="{page-envelope:area}"/>
+ </map:transform>
+ <map:call resource="style-cms-page" />
+ <map:serialize status-code="404" />
+ </map:when>
+ <map:when test="not-found">
+ <map:generate src="lenya/content/util/empty.xml" />
+ <map:transform src="fallback://lenya/xslt/exception/document-does-not-exist.xsl">
+ <map:parameter name="documentid" value="{page-envelope:document-id}"/>
+ <map:parameter name="documenturl" value="{page-envelope:document-url}"/>
+ <map:parameter name="area" value="{page-envelope:area}"/>
+ </map:transform>
+ <map:call resource="style-cms-page" />
+ <map:serialize status-code="404" />
+ </map:when>
+ <map:otherwise>
+ <map:generate type="notifying"/>
+ <map:transform src="fallback://lenya/xslt/exception/generic.xsl">
+ <map:parameter name="documentid" value="{page-envelope:document-id}"/>
+ <map:parameter name="documenturl" value="{page-envelope:document-url}"/>
+ <map:parameter name="contextPath" value="{request:contextPath}"/>
+ </map:transform>
+ <map:call resource="style-cms-page" />
+ <map:serialize status-code="500" />
+ </map:otherwise>
+ </map:select>
+ <map:transform src="fallback://lenya/xslt/util/strip_namespaces.xsl"/>
+ <map:serialize type="xhtml"/>
+ </map:handle-errors>
+
+ </map:pipelines></xmap>
\ No newline at end of file
Added: lenya/trunk/src/webapp/lenya/config/sitemap/resources.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/config/sitemap/resources.xmap?rev=381654&view=auto
==============================================================================
--- lenya/trunk/src/webapp/lenya/config/sitemap/resources.xmap (added)
+++ lenya/trunk/src/webapp/lenya/config/sitemap/resources.xmap Tue Feb 28 05:32:42 2006
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-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.
+-->
+
+<xmap remove="/sitemap/resources" xpath="/sitemap" insert-after="/sitemap/views">
+<!-- =========================== Resources ================================= -->
+
+ <map:resources>
+ <map:resource name="style-cms-page">
+ <map:transform type="i18n">
+ <map:parameter name="locale" value="{request:locale}"/>
+ </map:transform>
+ <map:transform src="fallback://lenya/xslt/util/page2xhtml.xsl">
+ <map:parameter name="contextprefix" value="{request:contextPath}"/>
+ </map:transform>
+ <map:transform src="context://lenya/xslt/util/strip_namespaces.xsl"/>
+ </map:resource>
+ </map:resources>
+
+</xmap>
\ No newline at end of file
Added: lenya/trunk/src/webapp/lenya/config/sitemap/selectors.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/config/sitemap/selectors.xmap?rev=381654&view=auto
==============================================================================
--- lenya/trunk/src/webapp/lenya/config/sitemap/selectors.xmap (added)
+++ lenya/trunk/src/webapp/lenya/config/sitemap/selectors.xmap Tue Feb 28 05:32:42 2006
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-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.
+-->
+
+<xmap xpath="/sitemap/components/selectors">
+ <map:selector logger="sitemap.selector.browser" name="client" src="org.apache.cocoon.selection.BrowserSelector">
+ <browser name="explorer" useragent="MSIE"/>
+ <browser name="mozilla5" useragent="Mozilla/5"/>
+ <browser name="mozilla5" useragent="Netscape6/"/>
+ <browser name="netscape" useragent="Mozilla"/>
+ </map:selector>
+
+</xmap>
Added: lenya/trunk/src/webapp/lenya/config/sitemap/serializers.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/config/sitemap/serializers.xmap?rev=381654&view=auto
==============================================================================
--- lenya/trunk/src/webapp/lenya/config/sitemap/serializers.xmap (added)
+++ lenya/trunk/src/webapp/lenya/config/sitemap/serializers.xmap Tue Feb 28 05:32:42 2006
@@ -0,0 +1,73 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-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.
+-->
+
+<xmap remove="/sitemap/components/serializers" xpath="/sitemap/components" insert-after="/sitemap/components/transformers">
+ <map:serializers default="xhtml">
+
+ <map:serializer name="html" logger="sitemap.serializer.html" mime-type="text/html; charset=utf-8" pool-grow="4" pool-max="32"
+ pool-min="4" src="org.apache.cocoon.components.serializers.HTMLSerializer">
+ <encoding>UTF-8</encoding>
+ </map:serializer>
+
+ <map:serializer name="html-no-dtd" logger="sitemap.serializer.html-no-dtd" mime-type="text/html; charset=utf-8" pool-grow="4" pool-max="32" pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer">
+ <buffer-size>1024</buffer-size>
+ </map:serializer>
+
+ <map:serializer name="htmlnoi" logger="sitemap.serializer.htmlnoi" mime-type="text/html; charset=utf-8" pool-grow="4" pool-max="32" pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer">
+ <indent>no</indent>
+ <doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public>
+ <doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
+ <encoding>UTF-8</encoding>
+ </map:serializer>
+
+ <map:serializer name="xhtml" src="org.apache.cocoon.serialization.XMLSerializer" mime-type="text/html; charset=utf-8" logger="sitemap.serializer.xhtml" pool-grow="2" pool-max="64" pool-min="2">
+ <doctype-public>-//W3C//DTD XHTML 1.0 Strict//EN</doctype-public>
+ <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</doctype-system>
+ <encoding>UTF-8</encoding>
+ </map:serializer>
+
+ <map:serializer name="xml" logger="sitemap.serializer.xml" mime-type="text/xml; charset=utf-8" src="org.apache.cocoon.components.serializers.XMLSerializer">
+ <encoding>UTF-8</encoding>
+ </map:serializer>
+
+ <map:serializer name="links" logger="sitemap.serializer.links" src="org.apache.cocoon.serialization.LinkSerializer"/>
+
+ <map:serializer name="wml" logger="sitemap.serializer.wml" mime-type="text/vnd.wap.wml" src="org.apache.cocoon.serialization.XMLSerializer">
+ <doctype-public>-//WAPFORUM//DTD WML 1.1//EN</doctype-public>
+ <doctype-system>http://www.wapforum.org/DTD/wml_1.1.xml</doctype-system>
+ <encoding>ASCII</encoding>
+ <omit-xml-declaration>yes</omit-xml-declaration>
+ </map:serializer>
+
+ <map:serializer name="text" logger="sitemap.serializer.text" mime-type="text/plain" src="org.apache.cocoon.serialization.TextSerializer">
+ <encoding>UTF-8</encoding>
+ </map:serializer>
+
+ <map:serializer name="fo2pdf" logger="sitemap.serializer.fo2pdf" mime-type="application/pdf" src="org.apache.cocoon.serialization.FOPSerializer"/>
+ <map:serializer name="fo2ps" logger="sitemap.serializer.fo2ps" mime-type="application/postscript" src="org.apache.cocoon.serialization.FOPSerializer"/>
+ <map:serializer name="fo2pcl" logger="sitemap.serializer.fo2pcl" mime-type="vnd.hp-PCL" src="org.apache.cocoon.serialization.FOPSerializer"/>
+ <map:serializer name="svgxml" logger="sitemap.serializer.svgxml" mime-type="image/svg-xml" src="org.apache.cocoon.serialization.XMLSerializer">
+ <doctype-public>-//W3C//DTD SVG 20000303 Stylable//EN</doctype-public>
+ <doctype-system>http://www.w3.org/TR/2000/03/WD-SVG-20000303/</doctype-system>
+ </map:serializer>
+ <map:serializer name="svg2jpeg" logger="sitemap.serializer.svg2png" mime-type="image/jpeg" src="org.apache.cocoon.serialization.SVGSerializer">
+ <parameter name="quality" type="float" value="0.9"/>
+ </map:serializer>
+ <map:serializer name="svg2png" logger="sitemap.serializer.svg2png" mime-type="image/png" src="org.apache.cocoon.serialization.SVGSerializer"/>
+ <map:serializer name="svg2tiff" logger="sitemap.serializer.svg2tiff" mime-type="image/tiff" src="org.apache.cocoon.serialization.SVGSerializer"/>
+
+ </map:serializers></xmap>
Added: lenya/trunk/src/webapp/lenya/config/sitemap/transformers.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/config/sitemap/transformers.xmap?rev=381654&view=auto
==============================================================================
--- lenya/trunk/src/webapp/lenya/config/sitemap/transformers.xmap (added)
+++ lenya/trunk/src/webapp/lenya/config/sitemap/transformers.xmap Tue Feb 28 05:32:42 2006
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-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.
+-->
+
+<xmap xpath="/sitemap/components/transformers"
+ unless="/sitemap/components/transformers/transformer[@name = 'access-control-sitetree']">
+ <map:transformer name="access-control-sitetree" logger="lenya.sitemap.transformer.accesscontrolsitetree" src="org.apache.lenya.cms.cocoon.transformation.AccessControlSitetreeTransformer"/>
+ <map:transformer name="link-rewrite" logger="lenya.sitemap.transformer.link-rewrite" src="org.apache.lenya.cms.cocoon.transformation.LinkRewritingTransformer"/>
+ <map:transformer name="usecasemenu" logger="lenya.sitemap.transformer.usecasemenu" src="org.apache.lenya.cms.cocoon.transformation.UsecaseMenuTransformer"/>
+ <map:transformer name="workflowmenu" logger="lenya.sitemap.transformer.workflowmenu" src="org.apache.lenya.cms.cocoon.transformation.WorkflowMenuTransformer"/>
+ <map:transformer name="i18n" logger="sitemap.transformer.i18n" src="org.apache.cocoon.transformation.I18nTransformer">
+ <catalogues default="cmsui">
+ <catalogue id="cmsui" name="cmsui" location="cocoon://i18n-catalogue/"/>
+ </catalogues>
+ <untranslated-text>untranslated</untranslated-text>
+ <cache-at-startup>true</cache-at-startup>
+ </map:transformer>
+</xmap>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org