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 2009/02/05 19:28:43 UTC

svn commit: r741220 [2/2] - in /lenya/trunk: ./ org.apache.lenya.core.usecase/ org.apache.lenya.core.usecase/src/main/resources/ org.apache.lenya.core.usecase/src/main/resources/META-INF/ org.apache.lenya.core.usecase/src/main/resources/META-INF/cocoon...

Added: lenya/trunk/org.apache.lenya.welcome/rcl.properties
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.welcome/rcl.properties?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.welcome/rcl.properties (added)
+++ lenya/trunk/org.apache.lenya.welcome/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.cocoon-welcome.block%classes-dir=./target/classes

Added: lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/not-found.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/not-found.xml?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/not-found.xml (added)
+++ lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/not-found.xml Thu Feb  5 18:28:41 2009
@@ -0,0 +1,27 @@
+<?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 a simple message page that is shown when a resource is not found.
+    |
+    | CVS $Id: not-found.xml 567300 2007-08-18 17:24:27Z gkossakowski $
+    +-->
+<welcome>
+ <message>
+   Sorry, Cocoon couldn't find the resource you requested.
+ </message>
+</welcome>

Added: lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/samples/merge-samples.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/samples/merge-samples.xsl?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/samples/merge-samples.xsl (added)
+++ lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/samples/merge-samples.xsl Thu Feb  5 18:28:41 2009
@@ -0,0 +1,46 @@
+<?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.
+-->
+
+<!--
+  - Merge groups with same name.
+  -
+  - $Id: merge-samples.xsl 588509 2007-10-26 04:12:29Z vgritsenko $
+  -->
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+  <xsl:template match="group">
+    <xsl:if test="not(preceding-sibling::group[@name = current()/@name])">
+      <xsl:copy>
+        <xsl:copy-of select="@name"/>
+        <xsl:apply-templates select="*|following-sibling::group[@name = current()/@name]/*"/>
+      </xsl:copy>
+    </xsl:if>
+  </xsl:template>
+
+  <xsl:template match="*">
+    <xsl:copy>
+      <xsl:apply-templates select="@*|*|text()"/>
+    </xsl:copy>
+  </xsl:template>
+
+  <xsl:template match="@*|text()">
+    <xsl:copy/>
+  </xsl:template>
+
+</xsl:stylesheet>

Added: lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/samples/prepare-samples.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/samples/prepare-samples.xsl?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/samples/prepare-samples.xsl (added)
+++ lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/samples/prepare-samples.xsl Thu Feb  5 18:28:41 2009
@@ -0,0 +1,67 @@
+<?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.
+-->
+
+<!--
+  - Convert the output of the directory generator into a samples file.
+  -
+  - $Id: prepare-samples.xsl 606321 2007-12-21 21:23:00Z vgritsenko $
+  -->
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+  <xsl:param name="contextPath"/>
+
+
+  <xsl:template match="/">
+    <samples name="Cocoon Blocks">
+      <links>
+        <link role="see-also" href="sitemap.xmap">Sitemap</link>
+      </links>
+      <xsl:apply-templates select="//group">
+        <xsl:sort select="@priority" data-type="number" order="descending"/>
+        <xsl:sort select="@name"/>
+      </xsl:apply-templates>
+    </samples>
+  </xsl:template>
+
+  <xsl:template match="group">
+    <xsl:copy>
+      <xsl:copy-of select="@name"/>
+      <xsl:apply-templates>
+        <xsl:sort select="@priority" data-type="number" order="descending"/>
+      </xsl:apply-templates>
+    </xsl:copy>
+  </xsl:template>
+
+  <xsl:template match="sample">
+    <!--
+      - Document structure is:
+      - /collection[@name]/collection/resource/group[@name]/sample[@name]
+      -->
+    <sample href="{$contextPath}{@href}" name="{@name}">
+      <xsl:copy-of select="*|text()"/>
+    </sample>
+  </xsl:template>
+
+  <xsl:template match="note">
+    <xsl:copy>
+      <xsl:copy-of select="*|text()"/>
+    </xsl:copy>
+  </xsl:template>
+
+</xsl:stylesheet>

Added: lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/samples/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/samples/sitemap.xmap?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/samples/sitemap.xmap (added)
+++ lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/samples/sitemap.xmap Thu Feb  5 18:28:41 2009
@@ -0,0 +1,77 @@
+<?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 sitemap maps empty URL to the page listing all installed samples.
+  -
+  - $Id: sitemap.xmap 606321 2007-12-21 21:23:00Z vgritsenko $
+  -->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+  <!-- =========================== Views ================================ -->
+
+  <map:views>
+    <map:view from-label="content" name="content">
+      <map:serialize type="xml"/>
+    </map:view>
+
+    <map:view from-label="content" name="pretty-content">
+      <map:serialize type="servletService">
+        <map:parameter name="service" value="servlet:style:/service/system/xml2html"/>
+      </map:serialize>
+    </map:view>
+
+    <map:view from-position="last" name="links">
+      <map:serialize type="links"/>
+    </map:view>
+  </map:views>
+
+  <!-- =========================== Pipelines ============================ -->
+
+  <map:pipelines>
+    <map:pipeline>
+
+      <!--
+        - Create samples page with links to all deployed blocks,
+        - using directory listing from 'blockcontext:/' source.
+        -->
+      <map:match pattern="">
+        <map:generate type="xpathtraversable" src="blockcontext:/">
+          <map:parameter name="xpath" value="/xsamples/group"/>
+          <map:parameter name="depth" value="2"/>
+          <map:parameter name="xmlFiles" value="\.xsamples$"/>
+        </map:generate>
+        <map:transform src="prepare-samples.xsl">
+          <map:parameter name="contextPath" value="{request:contextPath}"/>
+        </map:transform>
+        <map:transform src="merge-samples.xsl" label="content"/>
+        <map:serialize type="servletService">
+          <map:parameter name="service" value="servlet:style:/service/common/simple-samples2html"/>
+        </map:serialize>
+      </map:match>
+
+      <!--
+        - Show this sitemap.xmap file.
+        -->
+      <map:match pattern="sitemap.xmap">
+        <map:read src="sitemap.xmap" mime-type="text/xml"/>
+      </map:match>
+
+    </map:pipeline>
+  </map:pipelines>
+</map:sitemap>

Added: lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/sitemap.xmap?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/sitemap.xmap (added)
+++ lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/sitemap.xmap Thu Feb  5 18:28:41 2009
@@ -0,0 +1,328 @@
+<?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 'heart' of Cocoon. The sitemap maps URI space to
+    | resources. It consists basicaly of two parts: components and
+    | pipelines. Pipelines are made out of components. There is such a
+    | vast number of components available that it would be impossible to
+    | describe them here, please refer to the accompanying
+    | documentation. For specific components, have a look also at the
+    | javadocs for them. Most pipelines are present to demonstrate some
+    | feature or technique, often they are explained in more detail in
+    | the accompanying documentation. The sitemaps which come with each
+    | sample and each block will help to explain.
+    |
+    | $Id: sitemap.xmap 606325 2007-12-21 21:33:51Z vgritsenko $
+    +-->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+  <!-- =========================== Components =========================== -->
+
+  <map:components>
+
+   <!--+
+       | All needed components are inherited from the parent container
+       | configured in META-INF/cocoon/avalon/*.xconf and
+       | META-INF/cocoon/spring/*.xml files (if using default configuration).
+       +-->
+
+  </map:components>
+
+
+  <!-- =========================== Views ================================ -->
+
+  <!--+
+      | Views provide different, well, views to resources. Views are
+      | orthogonal to pipelines. Please refer to the docs.
+      |
+      | It would be wise to disable any unneeded views in a
+      | production environment in order to avoid exposing data
+      | that you may not necessarily wish to.
+      +-->
+  <map:views>
+    <map:view from-label="content" name="content">
+      <map:serialize type="xml"/>
+    </map:view>
+
+    <map:view from-label="content" name="pretty-content">
+      <!--+
+          | Use servlet service serializer from the named block 'style'.
+          | Name 'style' is mapped to the 'cocoon-samples-style-default' block
+          | in the META-INF/cocoon/spring/lenya-welcome-blockServlet.xml file.
+          +-->
+      <map:serialize type="servletService">
+        <map:parameter name="service" value="servlet:style:/service/system/xml2html"/>
+      </map:serialize>
+    </map:view>
+
+    <map:view from-position="last" name="links">
+      <map:serialize type="links"/>
+    </map:view>
+  </map:views>
+
+
+  <!-- =========================== Resources ============================ -->
+
+  <!--+
+      | Resources are pipeline fragments that may be used from different
+      | pipeline fragments. For our needs, they behave exactly like
+      | pipelines, only that they are not accessible from outside.
+      | Hence I will explain what's inside below for pipelines.
+      +-->
+  <map:resources>
+  </map:resources>
+
+
+  <!-- =========================== Action sets ========================== -->
+
+  <!--+
+      | Action sets group actions together. If some actions are often used
+      | together in pipeline fragments, it's easier to group them and refer
+      | to the group. For more info, please see the docs.
+      +-->
+  <map:action-sets>
+  </map:action-sets>
+
+
+  <!-- =========================== Pipelines ============================ -->
+
+  <!--+
+      | Pipelines. The beef. Pipelines specify how the processing of your
+      | content is done. Usually, a pipeline consists of several fragments
+      | that specify the generation, transformation, and serialization of
+      | SAX events.
+      |
+      | Processing is done in two steps:
+      |
+      | 1) The top level elements are executed in order of appearance until
+      |    one signals success. These top level elements are usually
+      |    matchers.
+      |
+      |    Other components are called depth-first to determine what
+      |    fragments make up the processing pipeline. When a component
+      |    fails, no nested components are called but the next component on
+      |    the same level.
+      |
+      | 2) Once it is determined which generator, which transformers and
+      |    wich serializer is used, these components are executed. During
+      |    this, the pipeline may not be changed.
+      |
+      | You may have as many pipelines in your sitemap as you like.
+      +-->
+  <map:pipelines>
+    <!-- main pipeline -->
+    <map:pipeline>
+
+      <!--
+        - Match current sitemap URI against specified pattern.
+        - Here we are using empty pattern, "". If URI matches
+        - (if it is empty), nested instructions are exectuted,
+        - thus assembling the welcome page.  
+        -->
+      <map:match pattern="">
+
+        <!--+
+            | Start generating SAX events inside the pipeline. In this case,
+            | since no "type" attribute is specified, the default generator
+            | is used and this is a regular XML parser that reads the
+            | given file from the URL included in the "src" attribute and
+            | sends the events produced by the parser down the pipeline to
+            | be processed by the next stage.
+            +-->
+        <map:generate src="welcome.xml" label="content, pretty-content"/>
+
+        <!--+
+            | The serializer concludes the SAX events journey into the pipeline
+            | since it serializes the events it receives into a representation
+            | depending on the serializer type.
+            +-->
+        <map:serialize type="servletService">
+          <map:parameter name="service" value="servlet:style:/service/common/simple-page2html"/>
+        </map:serialize>
+      </map:match>
+
+      <!--+
+          | Show this sitemap.xmap file.
+          +-->
+      <map:match pattern="sitemap.xmap">
+        <map:read src="sitemap.xmap" mime-type="text/xml"/>
+      </map:match>
+
+      <!--+
+          | The default matching is also capable of matching more than a
+          | single request by the use of 'wildcards'. There are two kinds of
+          | wildcards:
+          |
+          |  "*" means "anything that does not contain a path separator"
+          |  "**" means "anything including path separators"
+          |
+          | The tokens matched by the wildcards are passed over as sitemap
+          | variables. Those variables can be accessed using the '{...}' syntax
+          | inside the attributes. The URI-matching tokens are associated to
+          | numbered variables, as shown in the following match that processes all
+          | the GIF images that are located in the 'images/' URL space but
+          | not in any deeper levels. Note how requesting "images/logo.gif"
+          | triggers the matcher to create the token {1} = 'logo' which is later
+          | expanded into the src="" attribute of the reader, indicating
+          | what file it has to read.
+          +-->
+
+      <!--+
+          | Mount user directories.
+          |
+          | The location of user directories depends heavily on the operating
+          | system used. Here we try to detect if we are running on one of 3
+          | most used platforms and mount appropriate home directory.
+          |
+          | NOTE: You might want to comment out this entire section in a
+          |       production environment.
+          +-->
+      <map:match pattern="~*/**">
+        <map:select type="resource-exists">
+          <!-- macosx -->
+          <map:when test="/Users/">
+            <map:mount src="/Users/{1}/Sites/" uri-prefix="~{1}"/>
+          </map:when>
+          <!-- unix -->
+          <map:when test="/home/">
+            <map:mount src="/home/{1}/public_html/" uri-prefix="~{1}"/>
+          </map:when>
+          <!-- win32 -->
+          <map:when test="/Documents and Settings/">
+            <map:mount src="/Documents and Settings/{1}/My Documents/My Website/" uri-prefix="~{1}"/>
+          </map:when>
+        </map:select>
+      </map:match>
+
+      <!--+
+          | Redirect to the user directory if the ending slash is missing
+          | Cocoon doesn't do automatic translation of URLs because we consider it
+          | a bad practice. http://blah/something/ and http://blah/something
+          | effectively locate different web resources and the act of mapping
+          | them to the same system resources is your concern, not Cocoon's.
+          | Note that some stupid browsers (IE, for example) believe the opposite
+          | and will drop the ending slash when you bookmark a web resource
+          | so be aware of this issue and plan your URL-space carefully.
+          +-->
+      <map:match pattern="~*">
+        <map:redirect-to uri="{0}/"/>
+      </map:match>
+
+      <!--+
+          | Find a match in the "mount-table.xml" file, if present. It allows to mount other
+          | directories without touching this main sitemap (and thus loosing changes on rebuild).
+          |
+          | Note that other mount-tables can be added here using the xpatch ant task
+          | (see src/confpatch/mount-table.xmap)
+          +-->
+      <!--
+        Disabled while working on OSGI stuff, this wouldn't work anyway
+        (due to the ../) and it causes an NPE in the MountTableMatcher
+      <map:match type="mount-table" pattern="../../mount-table.xml">
+        <map:mount src="{src}" uri-prefix="{uri-prefix}"/>
+      </map:match>
+      -->
+
+      <!--+
+          | Cocoon-provided client-side resources.
+          | Some block's jar files (e.g. Ajax & Forms) include client-side resources
+          | such as JavaScript, CSS and images. The system-level pattern below
+          | fetches these resources, while allowing them to be overridden if needed
+          | in the webapp's "resources" directory.
+          |
+          | Defining this pattern in the root sitemap avoids duplicating it in subsitemaps,
+          | which reduces copy/pasting in application code and allows better client-side
+          | caching by giving each resource a single URL.
+          |
+          | Furthermore, some Cocoon code such as the Forms-provided XSLs assume that
+          | resources are available at that URL.
+          |
+          | The absolute path for these resources is "{request:contextPath}/_cocoon/resources"
+          +-->
+      <map:match pattern="_cocoon/resources/*/**">
+        <map:select type="resource-exists">
+          <map:when test="resources/{1}/{2}">
+            <map:read src="resources/{1}/{2}"/>
+          </map:when>
+          <!-- For Cocoon development, read directly from source directories
+          <map:when test="../../src/blocks/{1}/java/org/apache/cocoon/{1}/resources/{2}">
+            <map:read src="../../src/blocks/{1}/java/org/apache/cocoon/{1}/resources/{2}"/>
+	        </map:when>
+		      -->
+          <map:otherwise>
+            <map:read src="resource://org/apache/cocoon/{1}/resources/{2}"/>
+          </map:otherwise>
+        </map:select>
+      </map:match>
+
+      <!--+
+          | Mount everything else by calling the sitemap.xmap file located
+          | in the requested folder.
+          +-->
+      <map:match pattern="*/**">
+        <map:mount src="{1}/" uri-prefix="{1}"/>
+      </map:match>
+
+      <!--+
+          | In every pipeline, you can catch the errors triggered
+          | by the pipeline execution. The error handler is an internal sitemap
+          | component that, when triggered by an error, takes over the normal
+          | pipeline execution.
+          | You can here use the "exception" generator that produces an XML
+          | representation of the error and further manipulate this document
+          | for presentation on screen.
+          | You can also use any other generator if you don't want the
+          | error to be displayed on screen. The "exception" selector can help
+          | you to define different screens for different error types.
+          +-->
+      <map:handle-errors>
+        <map:select type="exception">
+
+          <map:when test="not-found">
+            <map:generate type="exception"/>
+            <map:transform src="servlet:style:/stylesheets/system/exception2html.xslt">
+              <map:parameter name="realPath" value="{realpath:}"/>
+              <map:parameter name="pageTitle" value="Resource not found"/>
+            </map:transform>
+            <map:serialize status-code="404"/>
+          </map:when>
+
+          <map:when test="invalid-continuation">
+            <map:generate type="exception"/>
+            <map:transform src="servlet:style:/stylesheets/system/exception2html.xslt">
+              <map:parameter name="realPath" value="{realpath:}"/>
+              <map:parameter name="pageTitle" value="Invalid Continuation"/>
+            </map:transform>
+            <map:serialize status-code="404"/>
+          </map:when>
+
+          <map:otherwise>
+            <map:generate type="exception"/>
+            <map:transform src="servlet:style:/stylesheets/system/exception2html.xslt">
+              <map:parameter name="realPath" value="{realpath:}"/>
+            </map:transform>
+            <map:serialize status-code="500"/>
+          </map:otherwise>
+        </map:select>
+
+      </map:handle-errors>
+    </map:pipeline>
+  </map:pipelines>
+
+</map:sitemap>

Added: lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/welcome.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/welcome.xml?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/welcome.xml (added)
+++ lenya/trunk/org.apache.lenya.welcome/src/main/resources/COB-INF/welcome.xml Thu Feb  5 18:28:41 2009
@@ -0,0 +1,34 @@
+<?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.
+-->
+
+<!--
+  - This is a very simple XML page done just to show how a simple
+  - cocoon pipeline works.
+  -
+  - $Id: welcome.xml 606304 2007-12-21 20:45:25Z vgritsenko $
+  -->
+<page>
+  <title>Welcome to Apache Cocoon!</title>
+  <p align="center">
+    Congratulations! If you are reading this page, it means that your Apache
+    Cocoon installation was successful.
+  </p>
+  <p align="center">
+    To know more about Cocoon capabilities, look at the <link href="samples/">sample</link> blocks.
+  </p>
+</page>

Added: lenya/trunk/org.apache.lenya.welcome/src/main/resources/META-INF/cocoon/spring/lenya-welcome-blockServlet.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.welcome/src/main/resources/META-INF/cocoon/spring/lenya-welcome-blockServlet.xml?rev=741220&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.welcome/src/main/resources/META-INF/cocoon/spring/lenya-welcome-blockServlet.xml (added)
+++ lenya/trunk/org.apache.lenya.welcome/src/main/resources/META-INF/cocoon/spring/lenya-welcome-blockServlet.xml Thu Feb  5 18:28:41 2009
@@ -0,0 +1,34 @@
+<?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
+  und
+-->
+
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:servlet="http://cocoon.apache.org/schema/servlet"
+       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+                           http://cocoon.apache.org/schema/servlet http://cocoon.apache.org/schema/servlet/cocoon-servlet-1.0.xsd">
+
+  <bean name="org.apache.lenya-welcome.block" class="org.apache.cocoon.sitemap.SitemapServlet">
+    <servlet:context mount-path="/" context-path="blockcontext:/lenya-welcome-2.2.0-SNAPSHOT/">
+      <servlet:connections>
+        <entry key="style" value-ref="org.apache.cocoon.samples.style.default.servlet"/>
+      </servlet:connections>
+    </servlet:context>
+  </bean>
+</beans>

Modified: lenya/trunk/pom.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/pom.xml?rev=741220&r1=741219&r2=741220&view=diff
==============================================================================
--- lenya/trunk/pom.xml (original)
+++ lenya/trunk/pom.xml Thu Feb  5 18:28:41 2009
@@ -16,8 +16,7 @@
   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">
+--><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>pom</packaging>
@@ -88,6 +87,8 @@
     <module>org.apache.lenya.module.xhtml</module>
     <module>org.apache.lenya.module.xopus</module>
     <module>org.apache.lenya.optional.jcrsource</module>
+    <module>org.apache.lenya.webapp</module>
+    <module>org.apache.lenya.welcome</module>
   </modules>
 
 </project>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org