cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jheym...@apache.org
Subject svn commit: r330548 [131/132] - in /cocoon/whiteboard/maven2/cocoon-flat-layout: ./ cocoon-ajax-block/ cocoon-ajax-block/api/ cocoon-ajax-block/api/src/ cocoon-ajax-block/api/src/main/ cocoon-ajax-block/api/src/main/java/ cocoon-ajax-block/api/src/main...
Date Thu, 03 Nov 2005 14:00:48 GMT
Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/pass-through/sub/hellosub.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/pass-through/sub/hellosub.xml?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/pass-through/sub/hellosub.xml (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/pass-through/sub/hellosub.xml Thu Nov  3 05:41:06 2005
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2005 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<h1>Hello Sub!</h1>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/pass-through/sub/hellosub.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/pass-through/sub/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/pass-through/sub/sitemap.xmap?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/pass-through/sub/sitemap.xmap (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/pass-through/sub/sitemap.xmap Thu Nov  3 05:41:06 2005
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2005 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+  <map:pipelines>
+    <map:pipeline>
+    	  <map:match pattern="hellosub">
+    	  	<map:generate src="hellosub.xml"/>
+    	  	<map:serialize/>
+    	  </map:match>
+    	
+    	  <map:match pattern="sub1">
+    	  	<map:generate src="cocoon:/hellosub"/>
+    	  	<map:serialize/>
+    	  </map:match>
+    </map:pipeline>
+  </map:pipelines>
+</map:sitemap>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/pass-through/sub/sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/pass-through/welcome.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/pass-through/welcome.xml?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/pass-through/welcome.xml (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/pass-through/welcome.xml Thu Nov  3 05:41:06 2005
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2005 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<h1>Welcome!</h1>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/pass-through/welcome.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/reader-mime-type/explain-test.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/reader-mime-type/explain-test.xml?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/reader-mime-type/explain-test.xml (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/reader-mime-type/explain-test.xml Thu Nov  3 05:41:06 2005
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- CVS $Id: explain-test.xml 55701 2004-10-27 14:46:15Z unico $ -->
+
+<page>
+    <title>reader-mime-type test</title>
+    <content>
+        <para>Test harness for
+            <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=25121">
+                bugzilla 25212
+            </a>, test mime-types on map:reader.
+        </para>
+        <para>
+            Test links:
+            <ul>
+                <li><link href="test10.html">test10.html</link></li>
+                <li><link href="test20.html">test20.html</link></li>
+                <li><link href="test30">test30</link></li>
+                <li><link href="test40.html">test40.html</link></li>
+                <li><link href="test50.html">test50.html</link></li>
+                <li><link href="test60.html">test60.html</link></li>
+                <li><link href="test70.html">test70.html</link></li>
+            </ul>
+        </para>
+    </content>
+</page>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/reader-mime-type/explain-test.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/reader-mime-type/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/reader-mime-type/sitemap.xmap?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/reader-mime-type/sitemap.xmap (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/reader-mime-type/sitemap.xmap Thu Nov  3 05:41:06 2005
@@ -0,0 +1,70 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+  <map:pipelines>
+    <map:pipeline type="caching">
+      <map:match pattern="test10.html">
+        <map:read src="test.html"/>
+      </map:match>
+      <map:match pattern="test20.html">
+        <map:read src="cocoon:/test10.html"/>
+      </map:match>
+      <map:match pattern="test30">
+        <map:read src="test.html"/>
+      </map:match>
+      <map:match pattern="test40.html">
+        <map:read src="cocoon:/test10.html"/>
+      </map:match>
+      <map:match pattern="test50.html">
+        <map:read src="cocoon:/test30"/>
+      </map:match>
+      <map:match pattern="test60.html">
+        <map:read src="cocoon:/test10.html" mime-type="text/html"/>
+      </map:match>
+      <map:match pattern="test70.html">
+        <map:read src="cocoon:/test30" mime-type="text/html"/>
+      </map:match>
+    </map:pipeline>
+
+    <map:pipeline type="noncaching">
+      <map:match pattern="test15.html">
+        <map:read src="test.html"/>
+      </map:match>
+      <map:match pattern="test25.html">
+        <map:read src="cocoon:/test15.html"/>
+      </map:match>
+      <map:match pattern="test35">
+        <map:read src="test.html"/>
+      </map:match>
+      <map:match pattern="test45.html">
+        <map:read src="cocoon:/test15.html"/>
+      </map:match>
+      <map:match pattern="test55.html">
+        <map:read src="cocoon:/test35"/>
+      </map:match>                   	
+      <map:match pattern="test65.html">
+        <map:read src="cocoon:/test15.html" mime-type="text/html"/>
+      </map:match>
+      <map:match pattern="test75.html">
+        <map:read src="cocoon:/test35" mime-type="text/html"/>
+      </map:match>
+    </map:pipeline>
+  </map:pipelines>
+
+</map:sitemap>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/reader-mime-type/sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/reader-mime-type/test.html
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/reader-mime-type/test.html?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/reader-mime-type/test.html (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/reader-mime-type/test.html Thu Nov  3 05:41:06 2005
@@ -0,0 +1,20 @@
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<html>
+  <body>
+    This should have the text/html mime type.
+  </body>
+</html>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/reader-mime-type/test.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/redirect/explain-test.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/redirect/explain-test.xml?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/redirect/explain-test.xml (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/redirect/explain-test.xml Thu Nov  3 05:41:06 2005
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- CVS $Id: explain-test.xml 37443 2004-09-03 01:41:46Z vgritsenko $ -->
+
+<page>
+    <title>sendpage-redirect test</title>
+    <content>
+        <para>
+          Test for different kinds of redirect scenarios.
+          
+        </para>
+        <para>
+            Test links:
+            <ul>
+                <li><link href="redirect-to-from-sitemap">sitemap redirect-to statement</link></li>
+                <li><link href="redirect-to-internal-from-sitemap">sitemap redirect-to statement to the cocoon:// uri</link></li>
+                <li><link href="redirect-to-from-flow">cocoon.redirectTo FOM call</link></li>
+                <li><link href="send-status">cocoon.sendStatus FOM call</link></li>
+                <li><link href="send-page">cocoon.sendPage FOM call</link></li>
+                <li><link href="donothing-from-flow">call an empty flow function</link></li>
+                <li><link href="donothing-from-sitemap">invoke an empty match statement</link></li>
+            </ul>
+        </para>
+    </content>
+</page>
\ No newline at end of file

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/redirect/explain-test.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/redirect/flow.js
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/redirect/flow.js?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/redirect/flow.js (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/redirect/flow.js Thu Nov  3 05:41:06 2005
@@ -0,0 +1,30 @@
+/*
+* Copyright 1999-2004 The Apache Software Foundation
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+function redirectTo() {
+  cocoon.redirectTo("explain-test.html");
+}
+
+function sendStatus() {
+  cocoon.sendStatus(204);
+}
+
+function sendPage() {
+  cocoon.sendPage("read", null);
+}
+
+function doNothing() {
+}

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/redirect/flow.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/redirect/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/redirect/sitemap.xmap?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/redirect/sitemap.xmap (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/redirect/sitemap.xmap Thu Nov  3 05:41:06 2005
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+  <map:flow language="javascript">
+    <map:script src="flow.js"/>
+  </map:flow>
+
+  <map:pipelines>
+    <map:pipeline internal-only="true">
+      <map:match pattern="read">
+        <map:read src="sitemap.xmap"/>
+      </map:match>
+    </map:pipeline>
+    
+    <map:pipeline>
+      <map:match pattern="redirect-to-from-sitemap">
+        <map:redirect-to uri="explain-test.html"/>
+      </map:match>
+
+      <map:match pattern="redirect-to-internal-from-sitemap">
+        <map:redirect-to uri="cocoon://samples/test/redirect/explain-test.html"/>
+      </map:match>
+
+      <map:match pattern="redirect-to-from-flow">
+        <map:call function="redirectTo"/>
+      </map:match>
+
+      <map:match pattern="send-status">
+        <map:call function="sendStatus"/>
+      </map:match>
+      
+      <map:match pattern="send-page">
+        <map:call function="sendPage"/>
+      </map:match>
+      
+      <map:match pattern="donothing-from-flow">
+        <map:call function="doNothing"/>
+      </map:match>
+      
+      <map:match pattern="donothing-from-sitemap"/>
+      
+    </map:pipeline>
+  </map:pipelines>
+</map:sitemap>
\ No newline at end of file

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/redirect/sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage-redirect/explain-test.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage-redirect/explain-test.xml?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage-redirect/explain-test.xml (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage-redirect/explain-test.xml Thu Nov  3 05:41:06 2005
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- CVS $Id: explain-test.xml 30942 2004-07-29 20:16:54Z vgritsenko $ -->
+
+<page>
+    <title>sendpage-redirect test</title>
+    <content>
+        <para>Test harness for
+            <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=26571">
+                bugzilla 26571
+            </a>, redirecting from within a flow-called pipeline fails.
+        </para>
+        <para>
+            Test links:
+            <ul>
+                <li><link href="test-good">test-good</link></li>
+                <li><link href="test-bad">test-bad</link></li>
+            </ul>
+        </para>
+    </content>
+</page>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage-redirect/explain-test.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage-redirect/flow.js
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage-redirect/flow.js?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage-redirect/flow.js (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage-redirect/flow.js Thu Nov  3 05:41:06 2005
@@ -0,0 +1,19 @@
+/*
+* Copyright 1999-2004 The Apache Software Foundation
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+function sendPageWithRedirect() {
+  cocoon.sendPage("redirect",null)
+}

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage-redirect/flow.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage-redirect/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage-redirect/sitemap.xmap?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage-redirect/sitemap.xmap (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage-redirect/sitemap.xmap Thu Nov  3 05:41:06 2005
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+  <map:flow language="javascript">
+     <map:script src="flow.js"/>
+  </map:flow>
+
+  <map:pipelines>
+    <map:pipeline>
+
+      <map:match pattern="test-good">
+        <map:redirect-to uri="sitemap"/>
+      </map:match>
+
+      <map:match pattern="test-bad">
+        <map:call function="sendPageWithRedirect"/>
+      </map:match>
+
+      <map:match pattern="redirect">
+        <map:redirect-to uri="sitemap"/>
+      </map:match>
+
+      <map:match pattern="sitemap">
+        <map:read src="sitemap.xmap"/>
+      </map:match>
+
+    </map:pipeline>
+  </map:pipelines>
+</map:sitemap>
\ No newline at end of file

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage-redirect/sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage/explain-test.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage/explain-test.xml?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage/explain-test.xml (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage/explain-test.xml Thu Nov  3 05:41:06 2005
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- CVS $Id: explain-test.xml 30942 2004-07-29 20:16:54Z vgritsenko $ -->
+
+<page>
+    <title>sendpage test</title>
+    <content>
+        <para>
+            Test links:
+            <ul>
+                <li><link href="testInternal">fails/should pass</link></li>
+                <li><link href="testExternal">passes/should pass</link></li>
+            </ul>
+        </para>
+    </content>
+</page>
\ No newline at end of file

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage/explain-test.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage/flow.js
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage/flow.js?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage/flow.js (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage/flow.js Thu Nov  3 05:41:06 2005
@@ -0,0 +1,20 @@
+/*
+* Copyright 1999-2004 The Apache Software Foundation
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+function testSendPage() {
+  var page = cocoon.parameters["page"];
+  cocoon.sendPage(page,null);
+}

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage/flow.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage/sitemap.xmap?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage/sitemap.xmap (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage/sitemap.xmap Thu Nov  3 05:41:06 2005
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+  <map:flow language="javascript">
+    <map:script src="flow.js"/>
+  </map:flow>
+
+  <map:pipelines>
+    
+    <map:pipeline internal-only="true">
+      <map:match pattern="internal">
+        <map:read src="sitemap.xmap"/>
+      </map:match>
+    </map:pipeline>
+    
+    <map:pipeline>
+    
+      <map:match pattern="external">
+        <map:read src="sitemap.xmap"/>
+      </map:match>
+      
+      <map:match pattern="testInternal">
+        <map:call function="testSendPage">
+          <map:parameter name="page" value="internal"/>
+        </map:call>
+      </map:match>
+      
+      <map:match pattern="testExternal">
+        <map:call function="testSendPage">
+          <map:parameter name="page" value="external"/>
+        </map:call>
+      </map:match>
+      
+    </map:pipeline>
+  </map:pipelines>
+</map:sitemap>
\ No newline at end of file

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sendpage/sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap-annotations/explain-test.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap-annotations/explain-test.xml?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap-annotations/explain-test.xml (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap-annotations/explain-test.xml Thu Nov  3 05:41:06 2005
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- CVS $Id: explain-test.xml 30932 2004-07-29 17:35:38Z vgritsenko $ -->
+
+<page>
+    <title>Sitemap annotations test</title>
+    <content>
+        <para>
+            Test sitemap annotations and their extraction
+            <ul>
+                <li>
+                  The <link href="annotations">annotations</link>
+                  page contains a copy of the annotations found in sitemap.xmap
+                  (with namespaces removed as I haven't been able to get the
+                  anteater-based tests to work with namespaces)
+                </li>
+            </ul>
+        </para>
+    </content>
+</page>
\ No newline at end of file

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap-annotations/explain-test.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap-annotations/get-annotations.xsl
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap-annotations/get-annotations.xsl?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap-annotations/get-annotations.xsl (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap-annotations/get-annotations.xsl Thu Nov  3 05:41:06 2005
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!--
+  Extract annotations from sitemap
+  $Id: dir-links.xsl 36225 2004-08-11 14:36:46Z vgritsenko $
+ -->
+
+<xsl:stylesheet
+  version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:fyi="http://apache.org/cocoon/sitemap/annotations/1.0"
+  exclude-element-prefixes="fyi"
+  >
+
+  <xsl:template match="/">
+    <sitemap-annotations>
+      <xsl:apply-templates/>
+    </sitemap-annotations>
+  </xsl:template>
+
+  <!-- copy fyi elements, without namespace -->
+  <xsl:template match="fyi:*">
+    <xsl:element name="{local-name()}">
+      <xsl:copy-of select="@*"/>
+      <xsl:apply-templates/>
+    </xsl:element>
+  </xsl:template>
+
+</xsl:stylesheet>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap-annotations/get-annotations.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap-annotations/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap-annotations/sitemap.xmap?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap-annotations/sitemap.xmap (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap-annotations/sitemap.xmap Thu Nov  3 05:41:06 2005
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<map:sitemap
+  xmlns:map="http://apache.org/cocoon/sitemap/1.0"
+  xmlns:fyi="http://apache.org/cocoon/sitemap/annotations/1.0"
+  >
+  <fyi:info>
+    <fyi:author>The Cocoon team</fyi:author>
+    <fyi:text>
+      This sitemap contains notes which are ignored
+      by the tree processor, but could be used to create
+      self-documenting samples, for example.
+      See bugzilla issue 25352.
+    </fyi:text>
+  </fyi:info>
+
+  <map:pipelines>
+    
+    <map:pipeline>
+
+      <fyi:note>filter out sitemap to keep annotations only</fyi:note>
+      <map:match pattern="annotations">
+        <map:generate src="sitemap.xmap"/>
+        <map:transform src="get-annotations.xsl"/>
+        <map:serialize type="xml"/>
+      </map:match>
+      
+    </map:pipeline>
+  </map:pipelines>
+</map:sitemap>
\ No newline at end of file

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap-annotations/sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap.xmap?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap.xmap (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap.xmap Thu Nov  3 05:41:06 2005
@@ -0,0 +1,90 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+    <map:pipelines>
+
+        <!-- used by the internalRequest anteater test -->
+        <map:pipeline>
+            <map:match pattern="simpletest-content/**">
+                <map:generate src="{1}"/>
+                <map:serialize type="xml"/>
+            </map:match>
+            <map:match pattern="simpletest-mounted/**">
+                <map:mount src="simpletest-mounted/" uri-prefix="simpletest-mounted"/>
+            </map:match>
+            <map:match pattern="simpletest">
+                <map:generate src="cocoon:/simpletest-content/a.xml"/>
+                <map:transform type="cinclude"/>
+                <map:serialize type="xml"/>
+            </map:match>
+        </map:pipeline>
+
+        <!-- explain what this is -->
+        <map:pipeline>
+            <map:match pattern="">
+                <map:redirect-to uri="index.html"/>
+            </map:match>
+
+            <map:match pattern="directory.xml">
+                <map:generate type="directory" src=".">
+                    <depth>1</depth>
+                </map:generate>
+                <map:serialize type="xml"/>
+            </map:match>
+
+            <map:match pattern="index.html">
+                <map:aggregate element="combo">
+                    <map:part src="index.xml"/>
+                    <map:part src="cocoon:/directory.xml"/>
+                </map:aggregate>
+                <map:transform src="dir-links.xsl"/>
+                <map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl">
+                    <map:parameter name="servletPath" value="{request:servletPath}"/>
+                    <map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
+                    <map:parameter name="contextPath" value="{request:contextPath}"/>
+                    <map:parameter name="file" value="{1}/{2}.xml"/>
+                    <map:parameter name="remove" value="{0}"/>
+                </map:transform>
+                <map:serialize type="html"/>
+            </map:match>
+
+            <!-- process the explain-test page for subdirectories -->
+            <map:match pattern="**/">
+                <map:redirect-to uri="explain-test.html"/>
+            </map:match>
+            <map:match pattern="**/explain-test.html">
+                <map:generate src="{1}/explain-test.xml"/>
+                <map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl">
+                    <map:parameter name="servletPath" value="{request:servletPath}"/>
+                    <map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
+                    <map:parameter name="contextPath" value="{request:contextPath}"/>
+                    <map:parameter name="file" value="{1}/{2}.xml"/>
+                    <map:parameter name="remove" value="{0}"/>
+                </map:transform>
+                <map:serialize type="html"/>
+            </map:match>
+
+            <!-- mount subdirectories to contain tests -->
+            <map:match pattern="*/**">
+              <map:mount src="{1}/" uri-prefix="{1}"/>
+            </map:match>
+
+        </map:pipeline>
+
+    </map:pipelines>
+</map:sitemap>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/samples/test/sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/sitemap.xmap?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/sitemap.xmap (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/sitemap.xmap Thu Nov  3 05:41:06 2005
@@ -0,0 +1,336 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2005 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!--+
+    | 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.
+    |
+    | CVS $Id: sitemap.xmap 314995 2005-10-12 18:51:55Z cziegeler $
+    +-->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+<!-- =========================== Components ================================ -->
+
+ <map:components>
+
+   <!-- include some additional components -->
+   <map:include dir="context://WEB-INF/sitemap-additions" pattern="*.xconf"/>
+
+ </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">
+      <map:transform src="stylesheets/system/xml2html.xslt"/>
+      <map:serialize type="html"/>
+    </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>
+
+  <map:component-configurations>
+    <global-variables>
+       <!--+
+           | Define global parameters here:
+           |   <skin>my_skin</skin>
+           |   ...
+           | You can access them by {global:*name*}, e.g. {global:skin}.
+           | These values are inherited into sub-sitemaps and can
+           | be extended there.
+           +-->
+    </global-variables>
+  </map:component-configurations>
+
+  <!-- main pipeline -->
+  <map:pipeline>
+
+    <!-- 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"/>
+
+      <!--+
+          | This transformer gets the input SAX events and transforms them
+          | using the default transformer (the XSLT transformer) thus
+          | applying the XSLT stylesheet indicated in the "src" attribute
+          | and sending the output down the pipeline to be processed by the
+          | next stage.
+          +-->
+      <map:transform src="welcome.xslt">
+        <map:parameter name="contextPath" value="{request:contextPath}"/>
+      </map:transform>
+
+      <!--+
+          | 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. Here we choose the "XHMTL"
+          | serializer, which will produce an XHTML representation of the
+          | SAX stream.
+          +-->
+      <map:serialize type="xhtml"/>
+    </map:match>
+
+    <!-- FIXME Remove later -->
+    <map:match pattern="v">
+      <map:generate type="virtual"/>
+      <map:serialize type="xhtml"/>
+    </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.
+        +-->
+
+    <!-- images -->
+    <map:match pattern="images/*.gif">
+      <map:read src="resources/images/{1}.gif" mime-type="image/gif"/>
+    </map:match>
+
+    <!-- CSS stylesheets -->
+    <map:match pattern="styles/*.css">
+      <map:read src="resources/styles/{1}.css" mime-type="text/css"/>
+    </map:match>
+
+    <!-- JavaScript scripts -->
+    <map:match pattern="scripts/*.js">
+      <map:read src="resources/scripts/{1}.js" mime-type="text/javascript"/>
+    </map:match>
+
+    <!-- favicon -->
+    <map:match pattern="**favicon.ico">
+      <map:read mime-type="image/x-icon" src="resources/icons/cocoon.ico"/>
+    </map:match>
+
+    <!--+
+        | mount user directories
+        |
+        | The location of user directories depends heavily on the operating
+        | system used. Uncomment the one below that suits your environment.
+        |
+        | NOTE: you might want to comment out the entire section for a
+        |       production environment.
+        +-->
+    <map:match pattern="~*/**">
+      <!-- unix -->
+      <map:mount src="/home/{1}/public_html/" uri-prefix="~{1}"/>
+      <!-- macosx -->
+      <!--map:mount src="/Users/{1}/Sites/" uri-prefix="~{1}"/-->
+      <!-- win32 -->
+      <!--map:mount src="/Documents and Settings/{1}/My Documents/My Website/" uri-prefix="~{1}"/-->
+    </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>
+
+    <!--+
+        | Map the API documentation.
+        +-->
+    <map:match pattern="api/**">
+      <map:read src="api/{1}"/>
+    </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>
+    -->
+
+    <!--+
+        | Call blocks deployed in wiring.xml. The blocks protocol
+        | should normally be mounted at root as it has no way to know
+        | where it is mounted. But that would not work in the current
+        | sitemap as it would shadow the samples.
+        +-->
+    <map:match pattern="blocks-test/**">
+      <map:read src="blocks:/blocks-test/{1}"/>
+    </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>
+
+    <!--+
+        | At the very end of a 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 "notifying" generator that produces an XML
+        | representation 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="stylesheets/system/exception2html.xslt">
+            <map:parameter name="contextPath" value="{request:contextPath}"/>
+            <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="stylesheets/system/exception2html.xslt">
+            <map:parameter name="contextPath" value="{request:contextPath}"/>
+            <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="stylesheets/system/exception2html.xslt">
+            <map:parameter name="contextPath" value="{request:contextPath}"/>
+            <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>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/directory2html.xslt
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/directory2html.xslt?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/directory2html.xslt (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/directory2html.xslt Thu Nov  3 05:41:06 2005
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- CVS $Id: directory2html.xslt,v 1.4 2004/03/06 02:25:41 antonio Exp $ -->
+
+<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="/">
+    <html>
+      <head>
+        <title><xsl:value-of select="dir:directory/@name"/></title>
+        <style>
+          <xsl:comment>
+            body { background-color: #ffffff }
+          </xsl:comment>
+        </style>
+      </head>
+      <body>
+        <h1>Directory Listing of <xsl:value-of select="dir:directory/@name"/></h1>
+        <table border="0">
+          <tr>
+            <td><a href="../"><i>parent directory</i></a></td>
+          </tr>
+          <tr>
+            <td>&#160;</td>
+          </tr>
+          <xsl:apply-templates/>
+        </table>
+      </body>
+    </html>
+  </xsl:template>
+
+  <xsl:template match="dir:directory/dir:directory">
+    <tr>
+      <td><a href="{@name}/"><i><xsl:value-of select="@name"/></i></a></td>
+      <td><xsl:value-of select="@date"/></td>
+    </tr>
+  </xsl:template>
+
+  <xsl:template match="dir:file">
+    <tr>
+      <td><a href="{@name}"><xsl:value-of select="@name"/></a></td>
+      <td><xsl:value-of select="@date"/></td>
+    </tr>
+  </xsl:template>
+
+</xsl:stylesheet>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/directory2html.xslt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/error2html.xslt
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/error2html.xslt?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/error2html.xslt (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/error2html.xslt Thu Nov  3 05:41:06 2005
@@ -0,0 +1,137 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- CVS $Id: error2html.xslt,v 1.18 2004/06/22 02:41:14 crossley Exp $ -->
+
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:error="http://apache.org/cocoon/error/2.1">
+
+  <xsl:param name="contextPath"/>
+
+  <!-- let sitemap override default page title -->
+  <xsl:param name="pageTitle" select="//error:notify/error:title"/>
+
+  <xsl:template match="error:notify">
+    <html>
+      <head>
+        <title>
+          <xsl:value-of select="$pageTitle"/>
+        </title>
+        <link href="{$contextPath}/styles/main.css" type="text/css" rel="stylesheet"/>
+        <style>
+          h1 { color: #336699; text-align: left; margin: 0px 0px 30px 0px; padding: 0px; border-width: 0px 0px 1px 0px; border-style: solid; border-color: #336699;}
+          p.message { padding: 10px 30px 10px 30px; font-weight: bold; font-size: 130%; border-width: 1px; border-style: dashed; border-color: #336699; }
+          p.description { padding: 10px 30px 20px 30px; border-width: 0px 0px 1px 0px; border-style: solid; border-color: #336699;}
+          p.topped { padding-top: 10px; border-width: 1px 0px 0px 0px; border-style: solid; border-color: #336699; }
+          pre { font-size: 120%; }
+        </style>
+        <script src="{$contextPath}/scripts/main.js" type="text/javascript"/>
+      </head>
+      <body>
+        <xsl:apply-templates select="." mode="onload"/>
+        <h1><xsl:value-of select="$pageTitle"/></h1>
+
+        <p class="message">
+          <xsl:value-of select="error:message"/>
+        </p>
+
+        <p class="description">
+          <xsl:value-of select="error:description"/>
+        </p>
+
+        <xsl:apply-templates select="error:extra"/>
+
+        <p class="topped">
+          If you need help and this information is not enough, you
+          are invited to read the
+          <a href="http://cocoon.apache.org/2.1/faq/">Cocoon FAQ</a>.<br/>
+          If you still don't find the answers you need,
+          can send a mail to the
+          <a href="http://cocoon.apache.org/community/mail-lists.html">
+          Cocoon mailing lists</a>,
+          remembering to:
+        </p>
+
+        <ul>
+          <li>specify the version of Cocoon you're using, or we'll assume that you
+              are talking about the latest released version;</li>
+          <li>specify the platform-operating system-version-servlet container version;</li>
+          <li>send any pertinent error message;</li>
+          <li>send pertinent log snippets;</li>
+          <li>send pertinent sitemap snippets;</li>
+          <li>send pertinent parts of the page that give you problems.</li>
+        </ul>
+
+        <p>
+          For more detailed technical information, take a look at the log
+          files in the log directory of Cocoon, which is placed by default in
+          the <code>WEB-INF/logs/</code> folder of your cocoon webapp context.<br/>
+          If the logs don't give you enough information, you might want to increase the
+          log level by changing the Logging configuration which is by default the
+          <code>WEB-INF/logkit.xconf</code> file.
+        </p>
+
+        <p>
+          If you think you found a bug, please report it to
+          <a href="http://issues.apache.org/bugzilla/">Apache's Bugzilla</a>;
+          a message will automatically be sent to the developer mailing list and you'll
+          be kept in contact automatically with the further progress on that bug.
+        </p>
+
+        <p>
+          Thanks, and sorry for the trouble if this is our fault.
+        </p>
+
+        <p class="topped">
+          The <a href="http://cocoon.apache.org/">Apache Cocoon</a> Project
+        </p>
+      </body>
+    </html>
+  </xsl:template>
+
+  <xsl:template match="error:notify" mode="onload">
+    <xsl:attribute name="onload">
+      <xsl:for-each select="error:extra[contains(@error:description,'stacktrace')]">
+        <xsl:text>toggle('</xsl:text>
+        <xsl:value-of select="@error:description"/>
+        <xsl:text>');</xsl:text>
+      </xsl:for-each>
+    </xsl:attribute>
+  </xsl:template>
+
+  <xsl:template match="error:extra">
+    <xsl:choose>
+     <xsl:when test="contains(@error:description,'stacktrace')">
+      <p class="stacktrace">
+       <span class="description"><xsl:value-of select="@error:description"/></span>
+       <span class="switch" id="{@error:description}-switch" onclick="toggle('{@error:description}')">[hide]</span>
+       <pre id="{@error:description}">
+         <xsl:value-of select="translate(.,'&#13;','')"/>
+       </pre>
+      </p>
+     </xsl:when>
+     <xsl:otherwise>
+      <p class="extra">
+       <span class="description"><xsl:value-of select="@error:description"/>:&#160;</span>
+       <xsl:value-of select="."/>
+      </p>
+     </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+</xsl:stylesheet>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/error2html.xslt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/exception2html.xslt
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/exception2html.xslt?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/exception2html.xslt (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/exception2html.xslt Thu Nov  3 05:41:06 2005
@@ -0,0 +1,192 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- CVS $Id: exception2html.xslt 233566 2005-08-19 22:05:08Z sylvain $ -->
+
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:ex="http://apache.org/cocoon/exception/1.0">
+
+  <xsl:param name="contextPath"/>
+  <xsl:param name="realPath"/>
+
+  <!-- let sitemap override default page title -->
+  <xsl:param name="pageTitle">An error has occured</xsl:param>
+
+  <xsl:template match="ex:exception-report">
+    <html>
+      <head>
+        <title>
+          <xsl:value-of select="$pageTitle"/>
+        </title>
+        <link href="{$contextPath}/styles/main.css" type="text/css" rel="stylesheet"/>
+        <style>
+          h1 { font-size: 200%; color: #336699; text-align: left; margin: 0px 0px 30px 0px; padding: 0px; border-width: 0px 0px 1px 0px; border-style: solid; border-color: #336699;}
+          p.message { padding: 10px 30px 10px 30px; font-weight: bold; font-size: 110%; border-width: 1px; border-style: dashed; border-color: #336699; }
+          p.description { padding: 10px 30px 20px 30px; border-width: 0px 0px 1px 0px; border-style: solid; border-color: #336699;}
+          p.topped { padding-top: 10px; border-width: 1px 0px 0px 0px; border-style: solid; border-color: #336699; }
+          pre { font-size: 120%; }
+          .row-1 { background-color: #F0F0F0;}
+          table { border-collapse: collapse; margin-top: 0.3em; }
+          td { padding: 0.1em; }
+        </style>
+        <script src="{$contextPath}/scripts/main.js" type="text/javascript"/>
+      </head>
+      <body>
+        <xsl:attribute name="onload">
+          <xsl:if test="ex:stacktrace">toggle('stacktrace');</xsl:if>
+          <xsl:if test="ex:full-stacktrace">toggle('full-stacktrace');</xsl:if>
+        </xsl:attribute>
+
+        <h1><xsl:value-of select="$pageTitle"/></h1>
+        <p class="message">
+          <xsl:value-of select="@class"/>:
+          <xsl:apply-templates select="ex:message" mode="breakLines"/>
+          <xsl:if test="ex:location">
+             <br/><span style="font-weight: normal"><xsl:apply-templates select="ex:location"/></span>
+          </xsl:if>
+        </p>
+
+        <p><span class="description">Cocoon stacktrace</span>
+           <span class="switch" id="locations-switch" onclick="toggle('locations')">[hide]</span>
+        </p>
+        <div id="locations">
+          <xsl:for-each select="ex:cocoon-stacktrace/ex:exception">
+            <xsl:sort select="position()" order="descending"/>
+            <strong>
+               <xsl:apply-templates select="ex:message" mode="breakLines"/>
+            </strong>
+            <table>
+               <xsl:for-each select="ex:locations/*[string(.) != '[cause location]']">
+                 <!-- [cause location] indicates location of a cause, which 
+                      the exception generator outputs separately -->
+                <tr class="row-{position() mod 2}">
+                   <td><xsl:call-template name="print-location"/></td>
+                   <td><em><xsl:value-of select="."/></em></td>
+                </tr>
+                <!--xsl:apply-templates select="."/><br/-->
+              </xsl:for-each>
+            </table>
+            <br/>
+           </xsl:for-each>
+        </div>
+
+        <xsl:apply-templates select="ex:stacktrace"/>
+        <xsl:apply-templates select="ex:full-stacktrace"/>
+
+<!-- Do we really need all that stuff?
+     Application developers know this, and application users get really confused by this information.
+
+        <p class="topped">
+          If you need help and this information is not enough, you
+          are invited to read the
+          <a href="http://cocoon.apache.org/2.1/faq/">Cocoon FAQ</a>.<br/>
+          If you still don't find the answers you need,
+          can send a mail to the
+          <a href="http://cocoon.apache.org/community/mail-lists.html">
+          Cocoon mailing lists</a>,
+          remembering to:
+        </p>
+
+        <ul>
+          <li>specify the version of Cocoon you're using, or we'll assume that you
+              are talking about the latest released version;</li>
+          <li>specify the platform-operating system-version-servlet container version;</li>
+          <li>send any pertinent error message;</li>
+          <li>send pertinent log snippets;</li>
+          <li>send pertinent sitemap snippets;</li>
+          <li>send pertinent parts of the page that give you problems.</li>
+        </ul>
+
+        <p>
+          For more detailed technical information, take a look at the log
+          files in the log directory of Cocoon, which is placed by default in
+          the <code>WEB-INF/logs/</code> folder of your cocoon webapp context.<br/>
+          If the logs don't give you enough information, you might want to increase the
+          log level by changing the Logging configuration which is by default the
+          <code>WEB-INF/logkit.xconf</code> file.
+        </p>
+
+        <p>
+          If you think you found a bug, please report it to
+          <a href="http://issues.apache.org/bugzilla/">Apache's Bugzilla</a>;
+          a message will automatically be sent to the developer mailing list and you'll
+          be kept in contact automatically with the further progress on that bug.
+        </p>
+
+        <p>
+          Thanks, and sorry for the trouble if this is our fault.
+        </p>
+-->
+        <p class="topped">
+          The <a href="http://cocoon.apache.org/">Apache Cocoon</a> Project
+        </p>
+      </body>
+    </html>
+  </xsl:template>
+  
+  <xsl:template match="ex:stacktrace|ex:full-stacktrace">
+      <p class="stacktrace">
+       <span class="description">Java <xsl:value-of select="translate(local-name(), '-', ' ')"/></span>
+       <span class="switch" id="{local-name()}-switch" onclick="toggle('{local-name()}')">[hide]</span>
+       <pre id="{local-name()}">
+         <xsl:value-of select="translate(.,'&#13;','')"/>
+       </pre>
+      </p>
+  </xsl:template>
+  
+  <xsl:template match="ex:location">
+   <xsl:if test="string-length(.) > 0">
+     <em><xsl:value-of select="."/></em>
+     <xsl:text> - </xsl:text>
+   </xsl:if>
+   <xsl:call-template name="print-location"/>
+  </xsl:template>
+  
+  <xsl:template name="print-location">
+     <xsl:choose>
+       <xsl:when test="contains(@uri, $realPath)">
+         <xsl:text>context:/</xsl:text>
+         <xsl:value-of select="substring-after(@uri, $realPath)"/>
+       </xsl:when>
+       <xsl:otherwise>
+         <xsl:value-of select="@uri"/>
+       </xsl:otherwise>
+      </xsl:choose>
+      <xsl:text> - </xsl:text>
+      <xsl:value-of select="@line"/>:<xsl:value-of select="@column"/>
+  </xsl:template>
+  
+  <!-- output a text by splitting it with <br>s on newlines
+       can be uses either by an explicit call or with <apply-templates mode="breakLines"/> -->
+  <xsl:template match="node()"  mode="breakLines" name="breakLines">
+     <xsl:param name="text" select="string(.)"/>
+     <xsl:choose>
+        <xsl:when test="contains($text, '&#10;')">
+           <xsl:value-of select="substring-before($text, '&#10;')"/>
+           <br/>
+           <xsl:call-template name="breakLines">
+              <xsl:with-param name="text" select="substring-after($text, '&#10;')"/>
+           </xsl:call-template>
+        </xsl:when>
+        <xsl:otherwise>
+           <xsl:value-of select="$text"/>
+        </xsl:otherwise>
+     </xsl:choose>
+  </xsl:template>
+
+</xsl:stylesheet>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/exception2html.xslt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/linkstatus2html.xslt
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/linkstatus2html.xslt?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/linkstatus2html.xslt (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/linkstatus2html.xslt Thu Nov  3 05:41:06 2005
@@ -0,0 +1,52 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- CVS $Id: linkstatus2html.xslt,v 1.3 2004/03/06 02:25:41 antonio Exp $ -->
+
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:linkstatus="http://apache.org/cocoon/linkstatus/2.0">
+
+  <xsl:template match="linkstatus:linkstatus">
+    <html>
+      <body>
+        <table border="1">
+          <tr><th>URL</th><th>referrer</th><th>content-type</th><th>status</th><th>message</th></tr>
+          <xsl:apply-templates/>
+        </table>
+      </body>
+    </html>
+  </xsl:template>
+
+  <xsl:template match="linkstatus:link">
+    <tr>
+      <xsl:attribute name = "bgcolor">
+        <xsl:choose>
+          <xsl:when test="normalize-space(@status)='200'">#00ff00</xsl:when>
+          <xsl:when test="normalize-space(@status)='404'">#ffff00</xsl:when>     	
+          <xsl:otherwise>#ff0000</xsl:otherwise>
+        </xsl:choose>
+      </xsl:attribute>
+      <td><a href="{@href}"><xsl:value-of select="@href"/></a></td>
+      <td><a href="{@referrer}">referrer</a></td>
+      <td><xsl:value-of select="@content"/></td> 
+      <td><xsl:value-of select="@status"/></td> 
+      <td><xsl:value-of select="@message"/></td>
+    </tr>
+  </xsl:template>
+
+</xsl:stylesheet>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/webapp/src/main/webapp/stylesheets/system/linkstatus2html.xslt
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message