cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r588462 - in /cocoon/trunk/blocks/cocoon-welcome: pom.xml src/main/resources/COB-INF/samples/group2samples.xsl src/main/resources/COB-INF/samples/sitemap.xmap
Date Fri, 26 Oct 2007 01:16:34 GMT
Author: vgritsenko
Date: Thu Oct 25 18:16:33 2007
New Revision: 588462

URL: http://svn.apache.org/viewvc?rev=588462&view=rev
Log:
add comments to samples/ sitemap

Modified:
    cocoon/trunk/blocks/cocoon-welcome/pom.xml
    cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/group2samples.xsl
    cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/sitemap.xmap

Modified: cocoon/trunk/blocks/cocoon-welcome/pom.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-welcome/pom.xml?rev=588462&r1=588461&r2=588462&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-welcome/pom.xml (original)
+++ cocoon/trunk/blocks/cocoon-welcome/pom.xml Thu Oct 25 18:16:33 2007
@@ -17,11 +17,11 @@
   specific language governing permissions and limitations
   under the License.
 -->
-<!--+
-    | @version $Id: pom.xml 565574 2007-08-13 23:47:50Z gkossakowski $
-    +-->
-<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">
 
+<!--
+  - @version $Id: pom.xml 565574 2007-08-13 23:47:50Z gkossakowski $
+  -->
+<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>
   

Modified: cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/group2samples.xsl
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/group2samples.xsl?rev=588462&r1=588461&r2=588462&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/group2samples.xsl
(original)
+++ cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/group2samples.xsl
Thu Oct 25 18:16:33 2007
@@ -16,15 +16,14 @@
   limitations under the License.
 -->
 
-<!--+
-    | Convert the output of the directory generator into a samples file.
-    |
-    | $Id$
-    +-->
-
-<xsl:stylesheet version="1.0" 
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
-  xmlns:dir="http://apache.org/cocoon/directory/2.0">
+<!--
+  - Convert the output of the directory generator into a samples file.
+  -
+  - $Id$
+  -->
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:dir="http://apache.org/cocoon/directory/2.0">
 
   <xsl:template match="/">
     <samples name="Cocoon Blocks">

Modified: cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/sitemap.xmap?rev=588462&r1=588461&r2=588462&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/sitemap.xmap (original)
+++ cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/sitemap.xmap Thu
Oct 25 18:16:33 2007
@@ -16,24 +16,35 @@
   limitations under the License.
 -->
 
+<!--
+  - This sitemap maps empty URL to the page listing all installed samples,
+  - and forwards all other requests to corresponding sample block.
+  -
+  - $Id$
+  -->
 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
   <map:pipelines>
     <map:pipeline>
-      <map:match pattern="*/**">
-        <map:mount uri-prefix="{1}" src="blockcontext:/{1}/"/>
-      </map:match>
-
       <map:match pattern="">
-        <map:generate type="xpathtraversable" src="blockcontext:/"> 
-          <map:parameter name="xpath" value="/xsamples/group"/> 
+        <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:parameter name="xmlFiles" value="\.xsamples$"/>
+        </map:generate>
         <map:transform src="group2samples.xsl"/>
         <map:transform src="../stylesheets/simple-samples2html.xsl">
           <map:parameter name="contextPath" value="{request:contextPath}"/>
         </map:transform>
-        <map:serialize type="html"/>        
+        <map:serialize type="html"/>
+      </map:match>
+
+      <!--
+        - FIXME VG: I don't think this should be here?
+        - http://localhost:8888/samples/cocoon-chaperon-sample/welcome
+        - avax.servlet.ServletException: No dispatcher for servlet:style-default:/service/common/simple-samples2html
+        -->
+      <map:match pattern="*/**">
+        <map:mount uri-prefix="{1}" src="blockcontext:/{1}/"/>
       </map:match>
     </map:pipeline>
   </map:pipelines>



Mime
View raw message