Author: andreas
Date: Thu Feb 5 18:28:41 2009
New Revision: 741220
URL: http://svn.apache.org/viewvc?rev=741220&view=rev
Log:
Starting webapp and welcome modules.
Added:
lenya/trunk/org.apache.lenya.core.usecase/src/main/resources/
lenya/trunk/org.apache.lenya.core.usecase/src/main/resources/META-INF/
lenya/trunk/org.apache.lenya.core.usecase/src/main/resources/META-INF/cocoon/
lenya/trunk/org.apache.lenya.core.usecase/src/main/resources/META-INF/cocoon/avalon/
lenya/trunk/org.apache.lenya.core.usecase/src/main/resources/META-INF/cocoon/avalon/lenya-core-usecase-sitemap.xconf
lenya/trunk/org.apache.lenya.core.usecase/src/main/resources/META-INF/cocoon/spring/
lenya/trunk/org.apache.lenya.core.usecase/src/main/resources/META-INF/cocoon/spring/lenya-core-usecase.xml
lenya/trunk/org.apache.lenya.webapp/
lenya/trunk/org.apache.lenya.webapp/pom.xml
lenya/trunk/org.apache.lenya.webapp/rcl.properties
lenya/trunk/org.apache.lenya.webapp/src/
lenya/trunk/org.apache.lenya.webapp/src/main/
lenya/trunk/org.apache.lenya.webapp/src/main/java/
lenya/trunk/org.apache.lenya.webapp/src/main/java/org/
lenya/trunk/org.apache.lenya.webapp/src/main/java/org/apache/
lenya/trunk/org.apache.lenya.webapp/src/main/java/org/apache/lenya/
lenya/trunk/org.apache.lenya.webapp/src/main/java/org/apache/lenya/MyBean.java
lenya/trunk/org.apache.lenya.webapp/src/main/resources/
lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/
lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/demo/
lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/demo/spring-bean.jx.xml
lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/demo/welcome.xml
lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/demo/welcome.xslt
lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/flow/
lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/flow/spring-bean.js
lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/global-sitemap.xmap
lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/resource/
lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/resource/external/
lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/resource/external/README.txt
lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/resource/internal/
lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/resource/internal/README.txt
lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/sitemap.xmap
lenya/trunk/org.apache.lenya.webapp/src/main/resources/META-INF/
lenya/trunk/org.apache.lenya.webapp/src/main/webapp/
lenya/trunk/org.apache.lenya.webapp/src/main/webapp/WEB-INF/
lenya/trunk/org.apache.lenya.webapp/src/main/webapp/WEB-INF/applicationContext.xml
lenya/trunk/org.apache.lenya.webapp/src/main/webapp/WEB-INF/cocoon/
lenya/trunk/org.apache.lenya.webapp/src/main/webapp/WEB-INF/cocoon/log4j.xml
lenya/trunk/org.apache.lenya.webapp/src/main/webapp/WEB-INF/web.xml
lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/
lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/sitemap.xmap
lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/stylesheets/
lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/stylesheets/simple-xdoc2html.xslt
lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/xdocs/
lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/xdocs/index.xml
lenya/trunk/org.apache.lenya.welcome/
lenya/trunk/org.apache.lenya.welcome/LICENSE.txt
lenya/trunk/org.apache.lenya.welcome/NOTICE.txt
lenya/trunk/org.apache.lenya.welcome/pom.xml
lenya/trunk/org.apache.lenya.welcome/rcl.properties
lenya/trunk/org.apache.lenya.welcome/src/
lenya/trunk/org.apache.lenya.welcome/src/main/
lenya/trunk/org.apache.lenya.welcome/src/main/resources/
lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/
lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/not-found.xml
lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/samples/
lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/samples/merge-samples.xsl
lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/samples/prepare-samples.xsl
lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/samples/sitemap.xmap
lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/sitemap.xmap
lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/welcome.xml
lenya/trunk/org.apache.lenya.welcome/src/main/resources/META-INF/
lenya/trunk/org.apache.lenya.welcome/src/main/resources/META-INF/cocoon/
lenya/trunk/org.apache.lenya.welcome/src/main/resources/META-INF/cocoon/spring/
lenya/trunk/org.apache.lenya.welcome/src/main/resources/META-INF/cocoon/spring/lenya-welcome-blockServlet.xml
Modified:
lenya/trunk/org.apache.lenya.core.usecase/pom.xml
lenya/trunk/org.apache.lenya.parent/pom.xml
lenya/trunk/pom.xml
Modified: lenya/trunk/org.apache.lenya.core.usecase/pom.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.usecase/pom.xml?rev=741220&r1=741219&r2=741220&view=diff
==============================================================================
--- lenya/trunk/org.apache.lenya.core.usecase/pom.xml (original)
+++ lenya/trunk/org.apache.lenya.core.usecase/pom.xml Thu Feb 5 18:28:41 2009
@@ -21,12 +21,30 @@
<scope>provided</scope>
</dependency>
<dependency>
- <groupId>org.apache.lenya</groupId>
- <artifactId>lenya-core-api</artifactId>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-context</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>avalon-framework</groupId>
+ <artifactId>avalon-framework</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>logkit</groupId>
+ <artifactId>logkit</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
- <groupId>org.apache.lenya</groupId>
- <artifactId>lenya-core-cache</artifactId>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-beans</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cocoon</groupId>
@@ -40,5 +58,13 @@
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-cron-impl</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.apache.lenya</groupId>
+ <artifactId>lenya-core-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lenya</groupId>
+ <artifactId>lenya-core-cache</artifactId>
+ </dependency>
</dependencies>
</project>
Added: lenya/trunk/org.apache.lenya.core.usecase/src/main/resources/META-INF/cocoon/avalon/lenya-core-usecase-sitemap.xconf
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.usecase/src/main/resources/META-INF/cocoon/avalon/lenya-core-usecase-sitemap.xconf?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.usecase/src/main/resources/META-INF/cocoon/avalon/lenya-core-usecase-sitemap.xconf (added)
+++ lenya/trunk/org.apache.lenya.core.usecase/src/main/resources/META-INF/cocoon/avalon/lenya-core-usecase-sitemap.xconf Thu Feb 5 18:28:41 2009
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+<map:components xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+ <map:matchers>
+ <map:matcher name="usecase" logger="sitemap.matcher.usecase" src="org.apache.cocoon.matching.WildcardRequestParameterMatcher">
+ <parameter-name>lenya.usecase</parameter-name>
+ </map:matcher>
+ </map:matchers>
+</map:components>
Added: lenya/trunk/org.apache.lenya.core.usecase/src/main/resources/META-INF/cocoon/spring/lenya-core-usecase.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.usecase/src/main/resources/META-INF/cocoon/spring/lenya-core-usecase.xml?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.usecase/src/main/resources/META-INF/cocoon/spring/lenya-core-usecase.xml (added)
+++ lenya/trunk/org.apache.lenya.core.usecase/src/main/resources/META-INF/cocoon/spring/lenya-core-usecase.xml Thu Feb 5 18:28:41 2009
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"
+ xmlns="http://www.springframework.org/schema/beans">
+</beans>
Modified: lenya/trunk/org.apache.lenya.parent/pom.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.parent/pom.xml?rev=741220&r1=741219&r2=741220&view=diff
==============================================================================
--- lenya/trunk/org.apache.lenya.parent/pom.xml (original)
+++ lenya/trunk/org.apache.lenya.parent/pom.xml Thu Feb 5 18:28:41 2009
@@ -114,21 +114,6 @@
<version>${avalon.version}</version>
</dependency>
<dependency>
- <groupId>org.apache.cocoon</groupId>
- <artifactId>cocoon-core</artifactId>
- <version>${cocoon.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.cocoon</groupId>
- <artifactId>cocoon-mail-impl</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.cocoon</groupId>
- <artifactId>cocoon-lucene-impl</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
<groupId>batik</groupId>
<artifactId>batik-util</artifactId>
<version>1.6-1</version>
@@ -154,6 +139,83 @@
<version>4aug2000r7-dev</version>
</dependency>
<dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-beans</artifactId>
+ <version>2.5.5</version>
+ <exclusions>
+ <exclusion>
+ <groupId>avalon-framework</groupId>
+ <artifactId>avalon-framework</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-context</artifactId>
+ <version>2.5.5</version>
+ <exclusions>
+ <exclusion>
+ <groupId>avalon-framework</groupId>
+ <artifactId>avalon-framework</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>logkit</groupId>
+ <artifactId>logkit</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-core</artifactId>
+ <version>2.5.5</version>
+ </dependency>
+
+ <!-- Cocoon -->
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-core</artifactId>
+ <version>${cocoon.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-mail-impl</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-lucene-impl</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-servlet-service-impl</artifactId>
+ <version>1.2.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-servlet-service-components</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-block-deployment</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-template-impl</artifactId>
+ <version>1.2.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-flowscript-impl</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-mail-impl</artifactId>
<version>1.1.0-SNAPSHOT</version>
@@ -169,6 +231,13 @@
<version>1.1.0-SNAPSHOT</version>
</dependency>
<dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-samples-style-default</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
+
+ <!-- Lenya -->
+ <dependency>
<groupId>org.apache.lenya</groupId>
<artifactId>lenya-core-ac</artifactId>
<version>${project.version}</version>
@@ -254,6 +323,16 @@
<version>${project.version}</version>
</dependency>
<dependency>
+ <groupId>org.apache.lenya</groupId>
+ <artifactId>lenya-webapp</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lenya</groupId>
+ <artifactId>lenya-welcome</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
<groupId>org.apache.axis</groupId>
<artifactId>axis</artifactId>
<version>1.4</version>
Added: lenya/trunk/org.apache.lenya.webapp/pom.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.webapp/pom.xml?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.webapp/pom.xml (added)
+++ lenya/trunk/org.apache.lenya.webapp/pom.xml Thu Feb 5 18:28:41 2009
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you 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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.lenya</groupId>
+ <artifactId>lenya</artifactId>
+ <version>2.2.0-SNAPSHOT</version>
+ <relativePath>../org.apache.lenya.parent/pom.xml</relativePath>
+ </parent>
+ <artifactId>lenya-webapp</artifactId>
+ <version>2.2.0-SNAPSHOT</version>
+ <packaging>war</packaging>
+ <name>Lenya Webapp</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>maven-jetty-plugin</artifactId>
+ <version>6.1.7</version>
+ <configuration>
+ <connectors>
+ <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
+ <port>${jetty.port}</port>
+ <maxIdleTime>30000</maxIdleTime>
+ </connector>
+ </connectors>
+ <webAppSourceDirectory>./target/lenya-webapp</webAppSourceDirectory>
+ <contextPath>${jetty.context}</contextPath>
+ </configuration>
+ </plugin>
+ </plugins>
+ <finalName>lenya-webapp</finalName>
+ </build>
+
+ <dependencies>
+ <!-- Cocoon Core -->
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-core</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-servlet-service-impl</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-servlet-service-components</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-block-deployment</artifactId>
+ </dependency>
+
+ <!-- Lenya Welcome Page -->
+ <dependency>
+ <groupId>org.apache.lenya</groupId>
+ <artifactId>lenya-welcome</artifactId>
+ </dependency>
+
+ </dependencies>
+
+ <properties>
+ <jetty.port>8888</jetty.port>
+ <jetty.context>/</jetty.context>
+ </properties>
+</project>
Added: lenya/trunk/org.apache.lenya.webapp/rcl.properties
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.webapp/rcl.properties?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.webapp/rcl.properties (added)
+++ lenya/trunk/org.apache.lenya.webapp/rcl.properties Thu Feb 5 18:28:41 2009
@@ -0,0 +1,17 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+org.apache.lenya.lenya-webapp.service%classes-dir=./target/classes
\ No newline at end of file
Added: lenya/trunk/org.apache.lenya.webapp/src/main/java/org/apache/lenya/MyBean.java
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.webapp/src/main/java/org/apache/lenya/MyBean.java?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.webapp/src/main/java/org/apache/lenya/MyBean.java (added)
+++ lenya/trunk/org.apache.lenya.webapp/src/main/java/org/apache/lenya/MyBean.java Thu Feb 5 18:28:41 2009
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+package org.apache.lenya;
+
+public class MyBean {
+
+ private String message;
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
+ public String getMessage() {
+ return this.message;
+ }
+}
Added: lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/demo/spring-bean.jx.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/demo/spring-bean.jx.xml?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/demo/spring-bean.jx.xml (added)
+++ lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/demo/spring-bean.jx.xml Thu Feb 5 18:28:41 2009
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+<demo>
+ <module>org.apache.lenya:lenya-webapp</module>
+ <spring>#{message}</spring>
+</demo>
\ No newline at end of file
Added: lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/demo/welcome.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/demo/welcome.xml?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/demo/welcome.xml (added)
+++ lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/demo/welcome.xml Thu Feb 5 18:28:41 2009
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+<content>
+ <h1>Apache Cocoon: Welcome</h1>
+ <p>This block <strong>org.apache.lenya:lenya-webapp</strong> was created by the Cocoon block archetype.</p>
+ <p/>
+ <p><a href="spring-bean">Link</a> to the output of a simple Flowscript that accesses a Spring bean.</p>
+</content>
\ No newline at end of file
Added: lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/demo/welcome.xslt
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/demo/welcome.xslt?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/demo/welcome.xslt (added)
+++ lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/demo/welcome.xslt Thu Feb 5 18:28:41 2009
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>Apache Cocoon: Welcome!</title>
+ </head>
+ <body>
+ <xsl:copy-of select="content/*"/>
+ </body>
+ </html>
+ </xsl:template>
+
+</xsl:stylesheet>
Added: lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/flow/spring-bean.js
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/flow/spring-bean.js?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/flow/spring-bean.js (added)
+++ lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/flow/spring-bean.js Thu Feb 5 18:28:41 2009
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+//
+// @version $Id: demo.js 448451 2006-09-21 04:04:16Z crossley $
+//
+
+function demo() {
+ var demoBean = cocoon.getComponent("demo");
+ cocoon.sendPage("screens/spring-bean",
+ {
+ "message" : demoBean.message
+ }
+ );
+}
Added: lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/global-sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/global-sitemap.xmap?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/global-sitemap.xmap (added)
+++ lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/global-sitemap.xmap Thu Feb 5 18:28:41 2009
@@ -0,0 +1,351 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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: global-sitemap.xmap 620647 2008-02-11 22:23:15Z andreas $ -->
+
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+ <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:transform type="proxy"/>
+ <map:transform src="context://lenya/xslt/util/strip_namespaces.xsl"/>
+ <map:transform src="fallback://lenya/modules/prettyprinting/xslt/xml2nicexml.xsl"/>
+ </map:resource>
+
+ <map:resource name="i18n">
+ <map:transform type="i18n">
+ <map:parameter name="locale" value="{request:locale}"/>
+ </map:transform>
+ </map:resource>
+
+ <!-- do proxy transformation on css files for url('') links -->
+ <map:resource name="proxy-css">
+ <map:act type="resource-exists"
+ src="{url}.xml">
+ <map:generate src="{../url}.xml"/>
+ <map:transform src="fallback://lenya/resources/css/css.xsl">
+ <map:parameter name="root" value="/{page-envelope:publication-id}/{page-envelope:area}"/>
+ </map:transform>
+ <map:call resource="prepare-proxy-css"/>
+ </map:act>
+ <map:generate type="text" src="{url}.css"/>
+ <map:call resource="prepare-proxy-css"/>
+ </map:resource>
+
+ <!--
+ chaperon magic: parse css files, convert url('') links into xml snippets, feed them
+ to the standard proxy transformer, then convert the intermediate xml back to valid css.
+ -->
+ <map:resource name="prepare-proxy-css">
+ <map:transform type="pattern"
+ src="fallback://lenya/chaperon/grammars/link.xlex"/>
+ <map:transform
+ src="fallback://lenya/chaperon/stylesheets/pattern-to-link.xsl"/>
+ <map:transform type="proxy"/>
+ <map:transform
+ src="fallback://lenya/chaperon/stylesheets/a-to-txt.xsl"/>
+ <map:serialize type="text" mime-type="text/css"/>
+ </map:resource>
+
+ </map:resources>
+
+
+
+ <map:pipelines>
+
+ <map:component-configurations>
+ <global-variables>
+ <!--
+ pipeline expiration time (governs the setting of "expires" headers for browser-side
+ caching), see http://cocoon.apache.org/2.1/userdocs/concepts/caching.html
+ -->
+ <pipeline-expiration>now</pipeline-expiration>
+ </global-variables>
+ </map:component-configurations>
+
+ <!-- create a list of publications for the global welcome page: -->
+ <map:pipeline>
+ <map:match pattern="aggregate-publications">
+ <map:generate type="directory" src="lenya/pubs"/>
+ <map:transform src="lenya/xslt/util/aggregate-publications.xsl"/>
+ <map:transform type="xinclude"/>
+ <map:serialize type="xml"/>
+ </map:match>
+ </map:pipeline>
+
+ <!-- FIXME: this should go into a cforms support module -->
+
+ <map:pipeline>
+ <map:match pattern="cforms/ajax/**">
+ <map:read src="resource://org/apache/cocoon/ajax/resources/{1}"/>
+ </map:match>
+ </map:pipeline>
+ <map:pipeline>
+ <map:match pattern="cforms/dojo/**">
+ <map:read src="resource://org/apache/cocoon/dojo/resources/{1}"/>
+ </map:match>
+ </map:pipeline>
+ <map:pipeline>
+ <map:match pattern="cforms/forms/**">
+ <map:read src="resource://org/apache/cocoon/forms/resources/{1}"/>
+ </map:match>
+ </map:pipeline>
+
+
+ <map:pipeline>
+ <!-- serve "lenya/" resources (GUI and utilities) -->
+ <map:match pattern="lenya/**">
+ <map:mount uri-prefix="lenya" src="lenya/lenya.xmap" check-reload="true" reload-method="synchron" pass-through="true"/>
+ </map:match>
+ </map:pipeline>
+
+ <!-- Menu generation: -->
+ <map:pipeline internal-only="true">
+
+ <!-- Generate a meta-stylesheet that adds the Lenya GUI menu to pages -->
+ <!-- lenya-page/{publication-id}/{area}/... -->
+ <map:match pattern="lenya-page/*/*/**">
+ <map:generate src="cocoon://modules/menubar/{1}/{2}/lenyaGui.xsl"/>
+ <map:serialize type="xml"/>
+ </map:match>
+
+ <!-- FIXME: this is currently unused -->
+ <!-- Access Control Policies -->
+<!--
+ <map:match pattern="*/policies/**">
+ <map:mount uri-prefix="{1}/policies" src="lenya/pubs/{1}/policies-sitemap.xmap" check-reload="true" reload-method="synchron" pass-through="true"/>
+ </map:match>
+-->
+ </map:pipeline>
+
+
+ <!-- Module requests -->
+
+ <!-- an extra handler for internal module requests to avoid the resource-exists check
+ in the external requests matcher
+ FIXME: is the overhead reduction worth the extra complication?
+ FIXME: doesn't this mean that internal requests aren't served statically (see below) and
+ resources might not even be available to internal requests if the module sitemap doesn't
+ handle them?
+ -->
+ <map:pipeline internal-only="true">
+ <map:match pattern="modules/*/**">
+ <map:mount uri-prefix="modules/{1}/" src="{fallback:lenya/modules/{1}/sitemap.xmap}" check-reload="true" reload-method="synchron"/>
+ </map:match>
+ <map:match pattern="*/modules/*/**">
+ <map:mount uri-prefix="{1}/modules/{2}/" src="{fallback:lenya/modules/{2}/sitemap.xmap}" check-reload="true" reload-method="synchron"/>
+ </map:match>
+ </map:pipeline>
+
+
+ <map:pipeline>
+
+ <map:match pattern="modules/*/**">
+ <map:select type="resource-exists">
+ <!-- resource exists - serve statically -->
+ <map:when test="fallback://lenya/modules/{1}/resources/{2}">
+ <map:mount uri-prefix="modules/" src="{fallback:lenya/module-resources.xmap}" check-reload="true" reload-method="synchron" pass-through="true"/>
+ </map:when>
+ </map:select>
+ <!-- resource doesn't exist or not handled by lenya/module-resources.xmap
+ - delegate to module -->
+ <map:mount uri-prefix="modules/{1}/" src="{fallback:lenya/modules/{1}/sitemap.xmap}" check-reload="true" reload-method="synchron"/>
+ </map:match>
+
+ <!-- Publication specific Module requests -->
+ <!-- NOTE: the use of publication-specific modules is discouraged, since all modules are actually in one global scope.. -->
+ <!-- {publication-id}/modules/{module-id}/... -->
+ <map:match pattern="*/modules/*/**">
+ <map:select type="resource-exists">
+ <!-- resource exists - serve statically -->
+ <map:when test="fallback://lenya/modules/{2}/resources/{3}">
+ <map:mount uri-prefix="{1}/modules/" src="{fallback:lenya/module-resources.xmap}" check-reload="true" reload-method="synchron" pass-through="true"/>
+ </map:when>
+ </map:select>
+ <!-- resource doesn't exist or not handled by lenya/module-resources.xmap
+ - delegate to module -->
+ <map:mount uri-prefix="{1}/modules/{2}/" src="{fallback:lenya/modules/{2}/sitemap.xmap}" check-reload="true" reload-method="synchron"/>
+ </map:match>
+
+ </map:pipeline>
+
+ <!-- Internal usecases -->
+ <!--
+ We match internal requests to the publication sitemap early to avoid the
+ time-consuming resource-exists operations in the subsequent pipelines
+ before the final publication matcher is reached.
+ -->
+ <map:pipeline internal-only="true">
+ <map:match pattern="*/**">
+ <map:mount uri-prefix="{1}" src="{fallback:sitemap.xmap}" check-reload="true" reload-method="synchron"/>
+ </map:match>
+ </map:pipeline>
+
+ <map:pipeline>
+
+ <!-- enter a module via request parameter -->
+ <map:match type="request-parameter" pattern="lenya.module">
+ <map:mount uri-prefix="" src="{fallback:lenya/modules/{1}/sitemap.xmap}" check-reload="true" reload-method="synchron"/>
+ </map:match>
+
+ <!-- delegate usecases to the usecase sitemap -->
+ <map:match type="usecase" pattern="*">
+ <map:mount uri-prefix="" src="lenya/usecase.xmap" check-reload="true" reload-method="synchron"/>
+ </map:match>
+
+ </map:pipeline>
+
+ <map:pipeline>
+
+ <!-- the Lenya welcome page with a list of available publications -->
+ <map:match pattern="index.html">
+ <map:aggregate element="aggregation-wrapper" label="aggregate">
+ <map:part src="cocoon:/aggregate-publications"/>
+ <map:part src="lenya/content/welcome.xml"/>
+ <map:part src="readme.xml"/>
+ </map:aggregate>
+ <map:transform src="lenya/xslt/util/welcome.xsl"/>
+ <map:call resource="style-cms-page"/>
+ <map:serialize />
+ </map:match>
+
+ <!-- any root-level request is directed to the welcome page -->
+ <map:match pattern="*">
+ <map:redirect-to uri="{proxy:/index.html}"/>
+ </map:match>
+
+ <!-- FIXME: this is apparently WebDAV-related. Does it have to be here, and what does it do? -->
+ <map:match pattern="*">
+ <map:select type="request-method">
+ <map:when test="PROPFIND">
+ <map:generate type="file" src="context://lenya/content/util/empty.xml"/>
+ <map:transform src="fallback://lenya/modules/webdav/xslt/init.xsl">
+ <map:parameter name="pubid" value="{page-envelope:publication-id}"/>
+ <map:parameter name="context" value="{request:contextPath}"/>
+ </map:transform>
+ <map:serialize type="xml" status-code="207"/>
+ </map:when>
+ <map:when test="OPTIONS">
+ <map:mount uri-prefix="" src="{fallback:lenya/modules/webdav/sitemap.xmap}" check-reload="true" reload-method="synchron"/>
+ </map:when>
+ </map:select>
+ </map:match>
+ <map:match pattern="{page-envelope:publication-id}/">
+ <map:select type="request-method">
+ <map:when test="PROPFIND">
+ <map:generate type="file" src="context://lenya/content/util/empty.xml"/>
+ <map:transform src="fallback://lenya/modules/webdav/xslt/init.xsl">
+ <map:parameter name="pubid" value="{page-envelope:publication-id}"/>
+ <map:parameter name="context" value="{request:contextPath}"/>
+ </map:transform>
+ <map:serialize type="xml" status-code="207"/>
+ </map:when>
+ <map:when test="OPTIONS">
+ <map:mount uri-prefix="" src="{fallback:lenya/modules/webdav/sitemap.xmap}" check-reload="true" reload-method="synchron"/>
+ </map:when>
+ </map:select>
+ </map:match>
+
+ <!-- redirect publication root requests to the publication's welcome page -->
+ <map:match pattern="*/">
+ <map:redirect-to uri="{proxy:/introduction.html}"/>
+ </map:match>
+ <map:match pattern="*/index.html">
+ <map:redirect-to uri="{proxy:/introduction.html}"/>
+ </map:match>
+
+ <!-- generate welcome pages for each publication with an aggregation of relevant READMEs -->
+ <map:match pattern="*/introduction.html">
+ <map:aggregate element="aggregation-wrapper">
+ <map:part src="aggregate-fallback://readme.xml"/>
+ <map:part src="lenya/pubs/{1}/config/publication.xml"/>
+ </map:aggregate>
+ <map:transform src="lenya/xslt/util/introduction.xsl"/>
+ <map:call resource="style-cms-page"/>
+ <map:serialize />
+ </map:match>
+
+ </map:pipeline>
+
+ <!-- an extra handler for internal publication requests to avoid the resource-exists check
+ in the external requests matcher -->
+ <!-- FIXME: see comments for internal module request matcher above. -->
+ <map:pipeline internal-only="true">
+ <map:match pattern="*/**">
+ <map:mount uri-prefix="{1}" src="{fallback:sitemap.xmap}" check-reload="true" reload-method="synchron"/>
+ </map:match>
+ </map:pipeline>
+
+ <map:pipeline>
+
+ <!-- Resources -->
+ <!-- FIXME: doesn't this create a hefty overhead for all publication documents? -->
+ <!-- {publication-id}/{area}/{file} -->
+ <map:match pattern="*/*/**">
+ <map:act type="resource-exists-enhanced">
+ <map:parameter name="url" value="fallback://resources/{2}/{3}"/>
+ <map:parameter name="type" value="file"/>
+ <map:mount uri-prefix="" src="{fallback:lenya/resources.xmap}" check-reload="true" reload-method="synchron"/>
+ </map:act>
+ <!-- FIXME: please document the "shared" resources concept. Or maybe we can ditch it? -->
+ <map:act type="resource-exists-enhanced">
+ <map:parameter name="url" value="fallback://resources/shared/{3}"/>
+ <map:parameter name="type" value="file"/>
+ <map:mount uri-prefix="" src="{fallback:lenya/resources-shared.xmap}" check-reload="true" reload-method="synchron"/>
+ </map:act>
+ <!-- Ancestors resources, css, js, etc... -->
+ <!-- {publication-id}/{area}/{filename}.inherited.{extention} -->
+ <!-- FIXME: what is this mechanism used for? please document or provide a pointer to existing docs -->
+ <map:match pattern="*/*/**.inherited.*">
+ <map:act type="resource-exists-enhanced">
+ <map:parameter name="url" value="template-fallback://resources/shared/{3}.{4}"/>
+ <map:parameter name="type" value="file"/>
+ <map:mount uri-prefix="" src="{fallback:lenya/resources-shared.xmap}" check-reload="true" reload-method="synchron"/>
+ </map:act>
+ </map:match>
+ </map:match>
+
+ <!-- delegate publication requests to the publication sitemap -->
+ <map:match pattern="*/**">
+ <map:select type="parameter">
+ <map:parameter name="parameter-selector-test" value="{page-envelope:publication-id}"/>
+ <map:when test="">
+ <map:generate type="jx" src="lenya/content/exception/publication-does-not-exist.jx">
+ <map:parameter name="publicationId" value="{1}"/>
+ </map:generate>
+ <map:transform type="i18n">
+ <map:parameter name="locale" value="{request:locale}"></map:parameter>
+ </map:transform>
+ <map:call resource="style-cms-page"/>
+ <map:serialize status-code="404" />
+ </map:when>
+ <map:otherwise>
+ <map:mount uri-prefix="{1}" src="{fallback:sitemap.xmap}" check-reload="true" reload-method="synchron"/>
+ </map:otherwise>
+ </map:select>
+ </map:match>
+ </map:pipeline>
+
+</map:pipelines>
+
+</map:sitemap>
Added: lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/resource/external/README.txt
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/resource/external/README.txt?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/resource/external/README.txt (added)
+++ lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/resource/external/README.txt Thu Feb 5 18:28:41 2009
@@ -0,0 +1,7 @@
+This is a dummy file provided to avoid Maven archetype plugin's limitation.
+
+Archetype plugin does not create empty directory structure:
+"At this point one can only specify individual files to be created but not empty directories."
+(http://maven.apache.org/plugins/maven-archetype-plugin/examples/archetype.html)
+
+You can safely remove this file at any time.
\ No newline at end of file
Added: lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/resource/internal/README.txt
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/resource/internal/README.txt?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/resource/internal/README.txt (added)
+++ lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/resource/internal/README.txt Thu Feb 5 18:28:41 2009
@@ -0,0 +1,7 @@
+This is a dummy file provided to avoid Maven archetype plugin's limitation.
+
+Archetype plugin does not create empty directory structure:
+"At this point one can only specify individual files to be created but not empty directories."
+(http://maven.apache.org/plugins/maven-archetype-plugin/examples/archetype.html)
+
+You can safely remove this file at any time.
\ No newline at end of file
Added: lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/sitemap.xmap?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/sitemap.xmap (added)
+++ lenya/trunk/org.apache.lenya.webapp/src/main/resources/COB-INF/sitemap.xmap Thu Feb 5 18:28:41 2009
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+<map:sitemap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://apache.org/cocoon/sitemap/1.0 http://cocoon.apache.org/schema/sitemap/cocoon-sitemap-1.0.xsd"
+ xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+ <map:pipelines>
+
+ <map:pipeline internal-only="true">
+
+ <!-- Lenya GUI screen -->
+ <map:match pattern="lenya-screen.xsl">
+ <map:generate src="fallback://lenya/xslt/util/page2xhtml.xsl"/>
+ <map:serialize type="xml"/>
+ </map:match>
+
+ <map:match pattern="**">
+ <map:mount check-reload="true" reload-method="synchron" src="global-sitemap.xmap" uri-prefix=""/>
+ </map:match>
+
+ </map:pipeline>
+
+ <map:pipeline>
+
+ <map:match pattern="ac.login" type="usecase">
+ <map:mount check-reload="yes" reload-method="synchron" src="{fallback:lenya/modules/usecase/usecase.xmap}" uri-prefix=""/>
+ </map:match>
+ <map:match pattern="ac.logout" type="usecase">
+ <map:mount check-reload="yes" reload-method="synchron" src="{fallback:lenya/modules/usecase/usecase.xmap}" uri-prefix=""/>
+ </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>
+
+ <map:match pattern="**">
+
+ <!-- redirect to SSL if the policy requires this -->
+ <map:act type="ssl-redirect">
+ <map:redirect-to uri="{redirectUri}" session="true"/>
+ </map:act>
+
+ <map:match pattern="*/webdav**">
+ <map:act type="authorizer">
+ <map:mount check-reload="true" reload-method="synchron" src="global-sitemap.xmap" uri-prefix=""/>
+ </map:act>
+ <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-uuid}"/>
+ <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-uuid}"/>
+ <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 session="true" uri="{proxy:/{1}}?lenya.usecase=ac.login&referrerQueryString={url-encode:{request:queryString}}"/>
+ </map:match>
+
+ </map:pipeline>
+
+ <!-- this is the default error handler -->
+ <map:handle-errors>
+ <map:mount src="{fallback:error.xmap}" check-reload="true" reload-method="synchron" uri-prefix=""/>
+ </map:handle-errors>
+
+ </map:pipelines>
+
+</map:sitemap>
\ No newline at end of file
Added: lenya/trunk/org.apache.lenya.webapp/src/main/webapp/WEB-INF/applicationContext.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.webapp/src/main/webapp/WEB-INF/applicationContext.xml?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.webapp/src/main/webapp/WEB-INF/applicationContext.xml (added)
+++ lenya/trunk/org.apache.lenya.webapp/src/main/webapp/WEB-INF/applicationContext.xml Thu Feb 5 18:28:41 2009
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+<!-- @version $Id: applicationContext.xml 689429 2008-08-27 09:56:12Z thorsten $ -->
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xmlns:configurator="http://cocoon.apache.org/schema/configurator"
+ xmlns:avalon="http://cocoon.apache.org/schema/avalon"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd
+ http://cocoon.apache.org/schema/configurator http://cocoon.apache.org/schema/configurator/cocoon-configurator-1.0.1.xsd
+ http://cocoon.apache.org/schema/avalon http://cocoon.apache.org/schema/avalon/cocoon-avalon-1.0.xsd">
+
+ <!-- Activate Cocoon Spring Configurator -->
+ <configurator:settings/>
+
+ <!-- Configure Log4j -->
+ <bean name="org.apache.cocoon.spring.configurator.log4j"
+ class="org.apache.cocoon.spring.configurator.log4j.Log4JConfigurator"
+ scope="singleton">
+ <property name="settings" ref="org.apache.cocoon.configuration.Settings"/>
+ <property name="resource" value="/WEB-INF/cocoon/log4j.xml"/>
+ </bean>
+
+ <!-- Activate Avalon Bridge -->
+ <avalon:bridge/>
+
+</beans>
Added: lenya/trunk/org.apache.lenya.webapp/src/main/webapp/WEB-INF/cocoon/log4j.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.webapp/src/main/webapp/WEB-INF/cocoon/log4j.xml?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.webapp/src/main/webapp/WEB-INF/cocoon/log4j.xml (added)
+++ lenya/trunk/org.apache.lenya.webapp/src/main/webapp/WEB-INF/cocoon/log4j.xml Thu Feb 5 18:28:41 2009
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+ <!--
+ - This is a sample configuration for log4j.
+ - It simply just logs everything into a single log file.
+ - Note, that you can use properties for value substitution.
+ -->
+ <appender name="CORE" class="org.apache.log4j.FileAppender">
+ <param name="File" value="${org.apache.cocoon.work.directory}/cocoon-logs/log4j.log" />
+ <param name="Append" value="false" />
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d %-5p %t %c - %m%n"/>
+ </layout>
+ </appender>
+
+ <logger name="org.springframework">
+ <level value="${org.apache.cocoon.log4j.loglevel.spring}"/>
+ </logger>
+
+ <root>
+ <priority value="${org.apache.cocoon.log4j.loglevel}"/>
+ <appender-ref ref="CORE"/>
+ </root>
+</log4j:configuration>
Added: lenya/trunk/org.apache.lenya.webapp/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.webapp/src/main/webapp/WEB-INF/web.xml?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.webapp/src/main/webapp/WEB-INF/web.xml (added)
+++ lenya/trunk/org.apache.lenya.webapp/src/main/webapp/WEB-INF/web.xml Thu Feb 5 18:28:41 2009
@@ -0,0 +1,205 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+
+<!--
+ - This is the Cocoon web-app configurations file
+ -
+ - $Id: web.xml 648148 2008-04-15 07:45:47Z reinhard $
+ -->
+<web-app version="2.4"
+ xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <!-- Context Configuration ========================================== -->
+
+ <!--
+ - Set a context property useful to allow you to ProxyPass your
+ - web application mounted to a different URI without losing the
+ - ability to do cookie-based sessions.
+ - WARNING: this is Jetty specific!
+ <context-param>
+ <description>An override of the session cookie path</description>
+ <param-name>org.mortbay.jetty.servlet.SessionPath</param-name>
+ <param-value>/some/path/to/your/webapp</param-value>
+ </context-param>
+ -->
+
+ <!-- Servlet Context Listener ======================================= -->
+
+ <listener>
+ <description>Declare a context listener that installs all blocks.</description>
+ <listener-class>org.apache.cocoon.blockdeployment.BlockDeploymentServletContextListener</listener-class>
+ </listener>
+
+ <!--
+ - Declare Spring context listener which sets up the Spring Application Context
+ - containing all Cocoon components (and user defined beans as well).
+ -->
+ <listener>
+ <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
+ </listener>
+
+ <!--
+ - Declare Spring request listener which sets up the required RequestAttributes
+ - to support Springs and Cocoon custom bean scopes like the request scope or the
+ - session scope.
+ -->
+ <listener>
+ <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
+ </listener>
+
+ <!-- Servlet Filters ================================================ -->
+
+ <!--
+ - Declare a filter for multipart MIME handling
+ -->
+ <filter>
+ <description>Multipart MIME handling filter for Cocoon</description>
+ <display-name>Cocoon multipart filter</display-name>
+ <filter-name>CocoonMultipartFilter</filter-name>
+ <filter-class>org.apache.cocoon.servlet.multipart.MultipartFilter</filter-class>
+ </filter>
+
+ <!--
+ - Declare a filter for debugging incoming request
+ -->
+ <filter>
+ <description>Log debug information about each request</description>
+ <display-name>Cocoon debug filter</display-name>
+ <filter-name>CocoonDebugFilter</filter-name>
+ <filter-class>org.apache.cocoon.servlet.DebugFilter</filter-class>
+ </filter>
+
+ <!-- Filter mappings ================================================ -->
+
+ <!--
+ - Use the Cocoon multipart filter together with the Cocoon demo webapp
+ -->
+ <filter-mapping>
+ <filter-name>CocoonMultipartFilter</filter-name>
+ <servlet-name>Cocoon</servlet-name>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>CocoonMultipartFilter</filter-name>
+ <servlet-name>DispatcherServlet</servlet-name>
+ </filter-mapping>
+
+ <!--
+ - Use the Cocoon debug filter together with the Cocoon demo webapp
+ <filter-mapping>
+ <filter-name>CocoonDebugFilter</filter-name>
+ <servlet-name>Cocoon</servlet-name>
+ </filter-mapping>
+ -->
+
+ <!-- Servlet Configuration ========================================== -->
+
+ <!--
+ - Servlet that dispatches requests to the Spring managed block servlets
+ -->
+ <servlet>
+ <description>Cocoon blocks dispatcher</description>
+ <display-name>DispatcherServlet</display-name>
+ <servlet-name>DispatcherServlet</servlet-name>
+ <servlet-class>org.apache.cocoon.servletservice.DispatcherServlet</servlet-class>
+ <!--
+ - This parameter allows you to startup immediately after startup
+ - of your servlet engine.
+ -->
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <!-- URL space mappings ============================================= -->
+
+ <!--
+ - Cocoon handles all the URL space assigned to the webapp using its sitemap.
+ - It is recommended to leave it unchanged. Under some circumstances though
+ - (like integration with proprietary webapps or servlets) you might have
+ - to change this parameter.
+ -->
+ <servlet-mapping>
+ <servlet-name>DispatcherServlet</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+ <!--
+ - Some servlet engines (Tomcat) have defaults which are not overriden
+ - by '/' mapping, but must be overriden explicitly.
+ -->
+ <servlet-mapping>
+ <servlet-name>DispatcherServlet</servlet-name>
+ <url-pattern>*.jsp</url-pattern>
+ </servlet-mapping>
+
+ <!--
+ - Some servlet engines (WebLogic) have defaults which are not overriden
+ - by '/' mapping, but must be overriden explicitly.
+ -->
+ <servlet-mapping>
+ <servlet-name>DispatcherServlet</servlet-name>
+ <url-pattern>*.html</url-pattern>
+ </servlet-mapping>
+
+ <!-- various MIME type mappings ====================================== -->
+
+ <mime-mapping>
+ <extension>css</extension>
+ <mime-type>text/css</mime-type>
+ </mime-mapping>
+
+ <mime-mapping>
+ <extension>xml</extension>
+ <mime-type>text/xml</mime-type>
+ </mime-mapping>
+
+ <mime-mapping>
+ <extension>xsl</extension>
+ <mime-type>text/xml</mime-type>
+ </mime-mapping>
+
+ <mime-mapping>
+ <extension>xconf</extension>
+ <mime-type>text/xml</mime-type>
+ </mime-mapping>
+
+ <mime-mapping>
+ <extension>xmap</extension>
+ <mime-type>text/xml</mime-type>
+ </mime-mapping>
+
+ <mime-mapping>
+ <extension>ent</extension>
+ <mime-type>text/plain</mime-type>
+ </mime-mapping>
+
+ <mime-mapping>
+ <extension>grm</extension>
+ <mime-type>text/plain</mime-type>
+ </mime-mapping>
+
+ <!--
+ - Sample environment entry for the NamingInputModule
+ -->
+ <env-entry>
+ <env-entry-name>greeting</env-entry-name>
+ <env-entry-type>java.lang.String</env-entry-type>
+ <env-entry-value>Hello, World</env-entry-value>
+ </env-entry>
+
+</web-app>
Added: lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/sitemap.xmap?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/sitemap.xmap (added)
+++ lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/sitemap.xmap Thu Feb 5 18:28:41 2009
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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: sitemap.xmap 646350 2008-04-09 13:51:53Z vgritsenko $
+ -->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+ <!-- =========================== Views =================================== -->
+
+ <map:views>
+ <map:view name="content" from-label="content">
+ <map:serialize type="xml"/>
+ </map:view>
+
+ <map:view from-label="content" name="pretty-content">
+ <map:transform src="context://stylesheets/system/xml2html.xslt"/>
+ <map:serialize type="html"/>
+ </map:view>
+
+ <map:view name="links" from-position="last">
+ <map:serialize type="links"/>
+ </map:view>
+ </map:views>
+
+ <!-- =========================== Pipelines ================================= -->
+
+ <map:pipelines>
+ <map:pipeline>
+
+ <map:match pattern="static-site/**.html">
+ <map:generate src="xdocs/{1}.xml"/>
+ <map:transform src="stylesheets/xdoc2html.xslt">
+ <map:parameter name="contextPath" value="{request:contextPath}"/>
+ </map:transform>
+ <map:serialize type="html"/>
+ </map:match>
+
+ </map:pipeline>
+ </map:pipelines>
+</map:sitemap>
Added: lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/stylesheets/simple-xdoc2html.xslt
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/stylesheets/simple-xdoc2html.xslt?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/stylesheets/simple-xdoc2html.xslt (added)
+++ lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/stylesheets/simple-xdoc2html.xslt Thu Feb 5 18:28:41 2009
@@ -0,0 +1,96 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+
+<!--+
+ | Converts output of the StatusGenerator into HTML page
+ |
+ | CVS $Id: simple-xdoc2html.xslt,v 1.1 2004/04/28 21:29:08 upayavira Exp $
+ +-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:status="http://apache.org/cocoon/status/2.0">
+
+ <xsl:param name="contextPath"/>
+
+ <xsl:template match="status:statusinfo">
+ <html>
+ <head>
+ <title>Cocoon Status [<xsl:value-of select="@status:host"/>]</title>
+ <link href="{$contextPath}/styles/main.css" type="text/css" rel="stylesheet"/>
+ <script src="{$contextPath}/scripts/main.js" type="text/javascript"/>
+ </head>
+
+ <body>
+ <h1><xsl:value-of select="@status:host"/> - <xsl:value-of select="@status:date"/></h1>
+ <xsl:apply-templates/>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="status:group">
+ <h2><xsl:value-of select="@status:name"/></h2>
+ <ul><xsl:apply-templates select="status:value"/></ul>
+ <xsl:apply-templates select="status:group"/>
+ </xsl:template>
+
+ <xsl:template match="status:value">
+ <li>
+ <span class="description"><xsl:value-of select="@status:name"/><xsl:text>: </xsl:text></span>
+ <xsl:choose>
+ <xsl:when test="contains(@status:name,'free') or contains(@status:name,'total')">
+ <xsl:call-template name="suffix">
+ <xsl:with-param name="bytes" select="number(.)"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="count(status:line) <= 1">
+ <xsl:value-of select="status:line"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <span class="switch" id="{generate-id(.)}-switch" onclick="toggle('{generate-id(.)}')">[show]</span>
+ <ul id="{generate-id(.)}" style="display: none">
+ <xsl:apply-templates />
+ </ul>
+ </xsl:otherwise>
+ </xsl:choose>
+ </li>
+ </xsl:template>
+
+ <xsl:template match="status:line">
+ <li><xsl:value-of select="."/></li>
+ </xsl:template>
+
+ <xsl:template name="suffix">
+ <xsl:param name="bytes"/>
+ <xsl:choose>
+ <!-- More than 4 MB (=4194304) -->
+ <xsl:when test="$bytes >= 4194304">
+ <xsl:value-of select="round($bytes div 10485.76) div 100"/> MB
+ </xsl:when>
+ <!-- More than 4 KB (=4096) -->
+ <xsl:when test="$bytes > 4096">
+ <xsl:value-of select="round($bytes div 10.24) div 100"/> KB
+ </xsl:when>
+ <!-- Less -->
+ <xsl:otherwise>
+ <xsl:value-of select="$bytes"/> B
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+</xsl:stylesheet>
Added: lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/xdocs/index.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/xdocs/index.xml?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/xdocs/index.xml (added)
+++ lenya/trunk/org.apache.lenya.webapp/src/main/webapp/test-suite/xdocs/index.xml Thu Feb 5 18:28:41 2009
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.0//EN" "dtd/document-v10.dtd">
+<document>
+ <header>
+ <title>Cocoon TestSuite</title>
+ <authors>
+ <person name="Cocoon community" email="[email protected]"/>
+ </authors>
+ </header>
+ <body>
+ <s1 title="General information">
+ <p>
+ Apache Cocoon is a web development framework built around the concepts
+ of component-based web development and separation of concerns, ensuring
+ that people can interact and collaborate on a project without stepping
+ on each other toes.
+ </p>
+ <p>
+ The purpose of these pages is to provide a webapp to be used in testing
+ Cocoon itself. These pages are not intended to be read by humans - rather
+ to be read by automated tests that are a part of Cocoon itself.
+ </p>
+ </s1>
+ </body>
+</document>
Added: lenya/trunk/org.apache.lenya.welcome/LICENSE.txt
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.welcome/LICENSE.txt?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.welcome/LICENSE.txt (added)
+++ lenya/trunk/org.apache.lenya.welcome/LICENSE.txt Thu Feb 5 18:28:41 2009
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ 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.
Added: lenya/trunk/org.apache.lenya.welcome/NOTICE.txt
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.welcome/NOTICE.txt?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.welcome/NOTICE.txt (added)
+++ lenya/trunk/org.apache.lenya.welcome/NOTICE.txt Thu Feb 5 18:28:41 2009
@@ -0,0 +1,5 @@
+Apache Cocoon
+Copyright 1999-2008 The Apache Software Foundation.
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
Added: lenya/trunk/org.apache.lenya.welcome/pom.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.welcome/pom.xml?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.welcome/pom.xml (added)
+++ lenya/trunk/org.apache.lenya.welcome/pom.xml Thu Feb 5 18:28:41 2009
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you 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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <packaging>jar</packaging>
+
+ <parent>
+ <groupId>org.apache.lenya</groupId>
+ <artifactId>lenya</artifactId>
+ <version>2.2.0-SNAPSHOT</version>
+ <relativePath>../org.apache.lenya.parent/pom.xml</relativePath>
+ </parent>
+ <artifactId>lenya-welcome</artifactId>
+ <version>2.2.0-SNAPSHOT</version>
+ <name>Lenya Welcome Page</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-maven-plugin</artifactId>
+ <version>1.0.0-RC1-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <id>rcl</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>rcl</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-servlet-service-components</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-samples-style-default</artifactId>
+ </dependency>
+ </dependencies>
+</project>
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.