You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2005/09/01 11:10:38 UTC

svn commit: r265679 [4/12] - in /cocoon/blocks/portal-sample/trunk: ./ WEB-INF/ WEB-INF/xconf/ conf/ java/ java/org/ java/org/apache/ java/org/apache/cocoon/ java/org/apache/cocoon/portal/ java/org/apache/cocoon/portal/coplets/ java/org/apache/cocoon/p...

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/basket-post.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/basket-post.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/basket-post.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/basket-post.xsl Thu Sep  1 02:08:10 2005
@@ -0,0 +1,30 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:template match="action">
+  <option value="{@name}">
+    <xsl:if test="@checked">
+      <xsl:attribute name="selected">selected</xsl:attribute>
+    </xsl:if>
+    <xsl:value-of select="@name"/>
+  </option>
+</xsl:template>
+
+<xsl:template match="@*|node()" ><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy></xsl:template>
+</xsl:stylesheet>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/basket-post.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/basket-post.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/basket-pre.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/basket-pre.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/basket-pre.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/basket-pre.xsl Thu Sep  1 02:08:10 2005
@@ -0,0 +1,107 @@
+<?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.
+-->
+<!-- $Id$ 
+
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:param name="itemCount"/>
+<xsl:param name="maxSize"/>
+
+<xsl:template match="basket-content">
+  <h1>Your Basket</h1>
+  <p>You have <xsl:value-of select="item-count"/> items in your basket (Allowed: <xsl:value-of select="$itemCount"/>)
+     / <xsl:value-of select="item-size"/> Kb (Allowed: <xsl:value-of select="$maxSize"/> Kb).</p>
+  <xsl:apply-templates select="items"/>
+</xsl:template>
+
+<xsl:template match="items">
+    <form method="POST" action="coplets/basket/processBasket.process">
+  <table>
+    <tr>
+      <th>&#160;</th>
+      <th>Title</th>
+      <th>Size</th>
+      <th>Storage</th>
+      <th>Replay</th>
+      <th>Frequency</th>
+      <th>Action</th>
+    </tr>
+    <xsl:for-each select="item" xmlns:basket="http://apache.org/cocoon/portal/basket/1.0">
+   
+      <tr>
+        <td><input type="checkbox" name="c{id}" value="{id}"/>&#160;</td>
+        <td><a href="{show-url}"><xsl:value-of select="title"/></a></td>
+        <td><xsl:value-of select="size"/></td>
+        <td><xsl:value-of select="store"/><input type="hidden" value="{store}" name="s{id}"/></td>
+        <td>
+          <input type="checkbox" name="r{id}" value="{id}">
+            <xsl:if test="attributes/attribute[@name='action-replay']/@value != ''">
+              <xsl:attribute name="checked">checked</xsl:attribute>
+            </xsl:if>
+          </input>
+           &#160;
+        </td>
+        <xsl:variable name="freq">
+          <xsl:choose>
+            <xsl:when test="attributes/attribute[@name='action-freq']/@value != ''">
+              <xsl:value-of select="attributes/attribute[@name='action-freq']/@value"/>
+            </xsl:when>
+            <xsl:otherwise>1</xsl:otherwise>
+          </xsl:choose>
+        </xsl:variable>
+        <td>Days: <input type="text" name="f{id}" value="{$freq}" size="3"/></td>
+        <td>
+          <select name="a{id}" size="1">
+            <xsl:choose>
+              <xsl:when test="store = 'basket' and //configuration/basket">
+                <option selected="selected" value="briefcase">Move to Briefcase</option>
+              </xsl:when>
+              <xsl:when test="store = 'briefcase' and //configuration/briefcase">
+                <option selected="selected" value="basket">Move to Basket</option>
+              </xsl:when>
+            </xsl:choose>
+            <option value="delete">delete</option>
+            <basket:show-actions storage="{store}" checked="{attributes/attribute[@name='action-name']/@value}"/>
+          </select>
+        </td>
+      </tr>
+    </xsl:for-each>
+  </table>
+  <input type="submit" value="Change" name="Change"/>
+  </form>
+</xsl:template>
+
+<xsl:template match="basket-admin">
+  <h1>Basket Administration</h1>
+  <xsl:apply-templates select="baskets"/>
+  <p><a href="{refresh-url}">Refresh list</a> - <a href="{clean-url}">Clean all baskets</a></p>
+</xsl:template>
+
+<xsl:template match="baskets">
+  <table>
+    <xsl:for-each select="basket">
+      <tr>
+        <td><a href="{show-url}"><xsl:value-of select="id"/></a></td>
+        <td><xsl:value-of select="size"/></td>
+        <td><a href="{remove-url}">Clean Basket</a></td>
+      </tr>
+    </xsl:for-each>
+  </table>
+</xsl:template>
+
+</xsl:stylesheet>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/basket-pre.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/basket-pre.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithappresult.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithappresult.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithappresult.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithappresult.xsl Thu Sep  1 02:08:10 2005
@@ -0,0 +1,27 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:template match="action">
+  <option value="{@name}">
+    <xsl:value-of select="@name"/>
+  </option>
+</xsl:template>
+
+<xsl:template match="@*|node()" ><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy></xsl:template>
+</xsl:stylesheet>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithappresult.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithappresult.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithattr.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithattr.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithattr.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithattr.xsl Thu Sep  1 02:08:10 2005
@@ -0,0 +1,59 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                              xmlns:coplet="http://apache.org/cocoon/portal/coplet/1.0">
+
+  <xsl:param name="value"/>
+  <xsl:param name="coplet"/>
+
+  <xsl:template match="value">
+    <xsl:choose>
+      <xsl:when test="$value = ''">0</xsl:when>
+      <xsl:otherwise><xsl:value-of select="$value"/></xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+  <xsl:template match="buttons">
+    <xsl:variable name="definedvalue">
+      <xsl:choose>
+        <xsl:when test="$value = ''">0</xsl:when>
+        <xsl:otherwise><xsl:value-of select="$value"/></xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+    <table><tr>
+    <td>
+    <coplet:link method="POST" format="html-form" coplet="{$coplet}" path="attributes/value" value="{$definedvalue + 1}">
+      <input type="submit" name="+1" value="+1"/>
+    </coplet:link>
+    </td>
+    <td>
+    <coplet:link method="POST" format="html-form" coplet="{$coplet}" path="attributes/value" value="{$definedvalue - 1}">
+      <input type="submit" name="-1" value="-1"/>
+    </coplet:link>
+    </td>
+    </tr></table>
+  </xsl:template>
+
+  <!-- Add a style attribute to the links -->
+  <xsl:template match="a">
+    <a style="color:blue;font-size:200%">
+      <xsl:apply-templates select="@*|text()"/>
+    </a>
+  </xsl:template>
+  
+  <xsl:template match="@*|node()" ><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy></xsl:template>
+</xsl:stylesheet>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithattr.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithattr.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithinline.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithinline.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithinline.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithinline.xsl Thu Sep  1 02:08:10 2005
@@ -0,0 +1,43 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                              xmlns:coplet="http://apache.org/cocoon/portal/coplet/1.0">
+
+  <xsl:param name="value"/>
+  <xsl:param name="coplet"/>
+
+  <xsl:template match="value">
+    <xsl:choose>
+      <xsl:when test="$value = ''">0</xsl:when>
+      <xsl:otherwise><xsl:value-of select="$value"/></xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+  
+  <xsl:template match="plus">
+    <xsl:variable name="definedvalue">
+      <xsl:choose>
+        <xsl:when test="$value = ''">0</xsl:when>
+        <xsl:otherwise><xsl:value-of select="$value"/></xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+    <coplet:link coplet="{$coplet}" path="attributes/value" value="{$definedvalue + 1}"/>
+    <coplet:content><input type="submit" name="{.}" value="{.}"/></coplet:content>
+  </xsl:template>
+
+  <xsl:template match="@*|node()" ><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy></xsl:template>
+</xsl:stylesheet>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithinline.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithinline.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/quota2result.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/quota2result.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/quota2result.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/quota2result.xsl Thu Sep  1 02:08:10 2005
@@ -0,0 +1,46 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:param name="storage"/>
+<xsl:param name="type"/>
+
+<xsl:template match="/">
+  <result>
+    <xsl:if test="$storage='folder'">
+      <!-- Copy the global values for the folder -->
+      <attribute>
+        <xsl:copy-of select="basket-quota/storage/storage[@value='folder']/*"/>
+      </attribute>
+    </xsl:if>
+    <xsl:if test="$storage!='folder'">
+      <!-- If type is not specified use global values -->
+      <xsl:if test="$type=''">
+        <attribute>
+          <xsl:copy-of select="basket-quota/storage/storage[@value=$storage]/*"/>
+        </attribute>
+      </xsl:if>
+      <xsl:if test="$type!=''">
+        <xsl:copy-of select="basket-quota/storage/storage[@value=$storage]/attribute[@name='type']/attribute[@value=$type]"/>
+      </xsl:if>
+    </xsl:if>
+  </result>
+</xsl:template>
+
+</xsl:stylesheet>
+

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/quota2result.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/quota2result.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-bottom.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-bottom.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-bottom.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-bottom.xml Thu Sep  1 02:08:10 2005
@@ -0,0 +1,31 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<document> 
+  <header> 
+	 <title>Further Information</title>
+	 <version>0.1</version> 
+	 <type>Overview document</type> 
+  </header> 
+  <body> 
+	 <s1 title="Further Information"> 
+		<p>For further information have a look at the Cocoon documentation
+              and at the other portal demos available using the tab above.</p>
+   </s1> 
+
+  </body>
+</document>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-bottom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-bottom.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-demo.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-demo.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-demo.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-demo.xml Thu Sep  1 02:08:10 2005
@@ -0,0 +1,73 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<document> 
+  <header> 
+	 <title>The Cocoon Portal</title>
+	 <version>0.1</version> 
+	 <type>Overview document</type> 
+  </header> 
+  <body> 
+	 <s1 title="The Apache Cocoon Portal"> 
+		<p>This is a demo of the Cocoon Portal Engine.</p>
+        <p>The Cocoon portal page you currently view displays some so called
+          <em>Coplets</em> (= Cocoon Portlets). Each coplet displays
+          a different content.</p> 
+        <p>The different tabs display/demonstrate different aspects of the portal.</p>
+        <ul>
+          <li>The TabDemo1 shows a tab inside a tab, which is useful for structuring content.</li>
+          <li>The TabDemo2 shows the same content as TabDemo2 but with just a different stylesheet for the tab.</li>
+          <li>The Gallery tab shows some more coplets.</li>
+          <li>The JSR-168 tab demonstrates the integration of Portlets (read more below).</li>
+          <li>The WSRP tab demonstrates the integration of WSRP portlets (read more below).</li>
+        </ul>
+        <p><strong>THIS IS A SAMPLE PORTAL!</strong></p>
+        <p>It demonstrates several features of 
+          the portal engine, so it's not optimized for production. Make sure 
+          that if you use the portal for your own projects that you
+          remove all unused stuff from the configuration! Every configured
+          feature might have an impact on the performance.
+        </p>
+        <p>For more information <fork href="http://cocoon.apache.org">visit the Cocoon Homepage</fork>.</p>
+     </s1> 
+     <s1 title="The JSR 168">
+        <p>The Cocoon portal supports portlets conforming to the JSR 168. The JSR 168 tab contains 
+           a sample using the testsuite from the <fork href="http://portals.apache.org/pluto">Pluto project</fork>.</p>
+        <p>These samples only work if you follow these installation instructions:</p>
+        <ul>
+         <li>Get the Pluto project and install it into Tomcat (Test Pluto now).</li>
+         <li>Install Cocoon as a web application in Tomcat and remove the Pluto webapp. Please note,
+             that it is currently not possible to start Cocoon directly from a war file; it has 
+             to be expanded.</li>
+         <li>Remove the pluto-*.jar and the portlet-api-*.jar from the Cocoon WEB-INF/lib directory.</li>
+         <li>Start Tomcat and run the Cocoon portal demo. You should now see two portlets.</li>
+        </ul>
+        <p>The current implementation searches for portlets in all directories that are next to
+         the Cocoon webapp directory. So, if you put Cocoon into the webapps directory of Tomcat,
+         you should put your portlets there as well.</p>
+     </s1>
+     <s1 title="WSRP">
+        <p>The Cocoon portal supports portlets conforming to the WSRP. The WSRP tab contains 
+           a sample using the testsuite from the <fork href="http://ws.apache.org/wsrp4j">WSRP4J project</fork>.</p>
+        <p>These samples only work if you follow these installation instructions:</p>
+        <ul>
+         <li>Get the WSRP4J project and install it into Tomcat (Test WSRP using the SwingConsumer now).</li>
+         <li>Start up Tomcat (with the WSRP producer) and Cocoon (using Jetty) and run the Cocoon portal demo. You should see the WSRP portlets now.</li>
+        </ul>
+     </s1>
+  </body>
+</document>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-demo.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-demo.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-intro.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-intro.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-intro.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-intro.xml Thu Sep  1 02:08:10 2005
@@ -0,0 +1,41 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<document> 
+  <header> 
+	 <title>The Cocoon Portal</title>
+	 <version>0.1</version> 
+	 <type>Overview document</type> 
+  </header> 
+  <body> 
+	 <s1 title="The Apache Cocoon Portal"> 
+		<p>This is a demo of the Cocoon Portal Engine.</p>
+        <p>The Cocoon portal page you currently view displays some so called
+          <em>Coplets</em> (= Cocoon Portlets). Each coplet displays
+          a different content.</p> 
+        <p><strong>THIS IS A SAMPLE PORTAL!</strong></p>
+        <p>It demonstrates several features of 
+          the portal engine, so it's not optimized for production. Make sure 
+          that if you use the portal for your own projects that you
+          remove all unused stuff from the configuration! Every configured
+          feature might have an impact on the performance.
+        </p>
+        <p>For more information <fork href="http://cocoon.apache.org">visit the Cocoon Homepage</fork>.</p>
+     </s1> 
+
+  </body>
+</document>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-intro.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-intro.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-left.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-left.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-left.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-left.xml Thu Sep  1 02:08:10 2005
@@ -0,0 +1,35 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<document> 
+  <header> 
+	 <title>Flexible Layout</title>
+	 <version>0.1</version> 
+	 <type>Overview document</type> 
+  </header> 
+  <body> 
+	 <s1 title="Flexible Layout"> 
+       <p>You are absolutly free in defining the portal layout. You can combine
+         the usual layout elements, like rows and columns, in any order and
+         even can nest them.</p>
+       <p>By this you can create coplets, like the sample above and below, that span
+         more than one column etc.</p>
+       <p>Even more complex elements, like tabs are possible.</p>
+   </s1> 
+
+  </body>
+</document>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-left.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-left.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-right.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-right.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-right.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-right.xml Thu Sep  1 02:08:10 2005
@@ -0,0 +1,32 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<document> 
+  <header> 
+	 <title>Customization</title>
+	 <version>0.1</version> 
+	 <type>Overview document</type> 
+  </header> 
+  <body> 
+<s1 title="Customization"> 
+<p>The whole portal engine is built up by a set of (Avalon) components.
+  You can customize (change/enhance) every aspect of the portal by
+  using a different component for the same task.</p>
+   </s1> 
+
+  </body>
+</document>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-right.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-right.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/docs/sitemap.xmap?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/docs/sitemap.xmap (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/docs/sitemap.xmap Thu Sep  1 02:08:10 2005
@@ -0,0 +1,34 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+<map:pipelines>
+    
+  <map:pipeline>	
+
+    <map:match pattern="*.html">
+        <map:generate type="file" src="{1}.xml" label="content" />
+        <map:transform type="xslt" src="styles/document2html.xsl"/>
+        <map:serialize type="html"/>
+    </map:match>
+
+  </map:pipeline>
+
+</map:pipelines>
+
+</map:sitemap>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/sitemap.xmap
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/styles/document2html.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/docs/styles/document2html.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/docs/styles/document2html.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/docs/styles/document2html.xsl Thu Sep  1 02:08:10 2005
@@ -0,0 +1,173 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+  <xsl:param name="isfaq"/>
+  <xsl:template match="document">
+  	<!-- Allready done by portal!
+    <td colspan="2" valign="top" class="content"-->
+      <xsl:if test="normalize-space(header/title)!=''">
+        <h1>
+          <xsl:value-of select="header/title"/>
+        </h1>
+      </xsl:if>
+      <xsl:if test="normalize-space(header/subtitle)!=''">
+        <h3>
+          <xsl:value-of select="header/subtitle"/>
+        </h3>
+      </xsl:if>
+      <xsl:if test="header/authors">
+        <p>
+          <font size="-2">
+            <xsl:for-each select="header/authors/person">
+              <xsl:choose>
+                <xsl:when test="position()=1">by&#160;</xsl:when>
+                <xsl:otherwise>,&#160;</xsl:otherwise>
+              </xsl:choose>
+              <xsl:value-of select="@name"/>
+            </xsl:for-each>
+          </font>
+        </p>
+      </xsl:if>
+      <xsl:apply-templates select="body"/>
+    <!--/td  see above!-->
+  </xsl:template>
+  <xsl:template match="body">
+    <xsl:if test="section and not($isfaq='true')">
+      <ul class="minitoc">
+        <xsl:for-each select="section">
+          <li>
+            <a href="#{generate-id()}">
+              <xsl:value-of select="title"/>
+            </a>
+            <xsl:if test="section">
+              <ul class="minitoc">
+                <xsl:for-each select="section">
+                  <li>
+                    <a href="#{generate-id()}">
+                      <xsl:value-of select="title"/>
+                    </a>
+                  </li>
+                </xsl:for-each>
+              </ul>
+            </xsl:if>
+          </li>
+        </xsl:for-each>
+      </ul>
+    </xsl:if>
+    <xsl:apply-templates/>
+  </xsl:template>
+<!--  section handling
+  - <a name/> anchors are added if the id attribute is specified
+  - generated anchors are still included for TOC - what should we do about this?
+  - FIXME: provide a generic facility to process section irrelevant to their
+    nesting depth
+-->
+  <xsl:template match="section">
+    <a name="{generate-id()}"/>
+    <xsl:if test="normalize-space(@id)!=''">
+      <a name="{@id}"/>
+    </xsl:if>
+    <h3>
+      <xsl:value-of select="title"/>
+    </h3>
+    <xsl:apply-templates select="*[not(self::title)]"/>
+  </xsl:template>
+  <xsl:template match="section/section">
+    <a name="{generate-id()}"/>
+    <xsl:if test="normalize-space(@id)!=''">
+      <a name="{@id}"/>
+    </xsl:if>
+    <h4>
+      <xsl:value-of select="title"/>
+    </h4>
+    <xsl:apply-templates select="*[not(self::title)]"/>
+  </xsl:template>
+  <xsl:template match="note | warning | fixme">
+    <div class="frame {local-name()}">
+      <div class="label">
+        <xsl:choose>
+          <xsl:when test="local-name() = 'note'">Note</xsl:when>
+          <xsl:when test="local-name() = 'warning'">Warning</xsl:when>
+          <xsl:otherwise>Fixme (
+               <xsl:value-of select="@author"/>
+
+               )</xsl:otherwise>
+        </xsl:choose>
+      </div>
+      <div class="content">
+        <xsl:apply-templates/>
+      </div>
+    </div>
+  </xsl:template>
+  <xsl:template match="link">
+    <a href="{@href}">
+      <xsl:apply-templates/>
+    </a>
+  </xsl:template>
+  <xsl:template match="jump">
+    <a href="{@href}" target="_top">
+      <xsl:apply-templates/>
+    </a>
+  </xsl:template>
+  <xsl:template match="fork">
+    <a href="{@href}" target="_blank">
+      <xsl:apply-templates/>
+    </a>
+  </xsl:template>
+  <xsl:template match="source">
+    <pre class="code">
+      <xsl:apply-templates/>
+    </pre>
+  </xsl:template>
+  <xsl:template match="anchor">
+    <a name="{@id}"/>
+  </xsl:template>
+  <xsl:template match="icon">
+    <img src="{@src}" alt="{@alt}">
+      <xsl:if test="@height">
+        <xsl:attribute name="height"><xsl:value-of select="@height"/></xsl:attribute>
+      </xsl:if>
+      <xsl:if test="@width">
+        <xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute>
+      </xsl:if>
+    </img>
+  </xsl:template>
+  <xsl:template match="figure">
+    <div align="center">
+      <img src="{@src}" alt="{@alt}" class="figure">
+        <xsl:if test="@height">
+          <xsl:attribute name="height"><xsl:value-of select="@height"/></xsl:attribute>
+        </xsl:if>
+        <xsl:if test="@width">
+          <xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute>
+        </xsl:if>
+      </img>
+    </div>
+  </xsl:template>
+  <xsl:template match="table">
+    <table class="table" cellpadding="4" cellspacing="1">
+      <xsl:apply-templates/>
+    </table>
+  </xsl:template>
+  <xsl:template match="node()|@*" priority="-1">
+    <xsl:copy>
+      <xsl:apply-templates select="@*"/>
+      <xsl:apply-templates/>
+    </xsl:copy>
+  </xsl:template>
+</xsl:stylesheet>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/styles/document2html.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/docs/styles/document2html.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/dir2pic.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/dir2pic.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/dir2pic.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/dir2pic.xsl Thu Sep  1 02:08:10 2005
@@ -0,0 +1,32 @@
+<?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.
+-->
+<!-- SVN $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:param name="dirprefix"/>
+
+<xsl:template match="/">
+    <pictures>
+        <xsl:for-each select="dir:directory/dir:file">
+            <picture><xsl:value-of select="$dirprefix"/>/<xsl:value-of select="@name"/></picture>
+        </xsl:for-each>
+    </pictures>
+</xsl:template>
+
+</xsl:stylesheet>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/dir2pic.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/dir2pic.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/gallery.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/gallery.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/gallery.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/gallery.xsl Thu Sep  1 02:08:10 2005
@@ -0,0 +1,97 @@
+<?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.
+-->
+<!-- $Id$ 
+
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<!-- The current picture (index) to display -->
+<xsl:param name="pic"/>
+<!-- Is this full screen? -->
+<xsl:param name="fullscreen"/>
+
+<xsl:template match="pictures" xmlns:cl="http://apache.org/cocoon/portal/coplet/1.0">
+<xsl:variable name="maxp" select="count(picture)"/>
+
+<xsl:choose>
+<xsl:when test="$fullscreen='true'">
+  <!-- This is the two column version: 
+  <table>
+    <xsl:for-each select="picture">
+        <xsl:if test="position() mod 2 = 1">
+            <tr>        
+                <td><img src="{.}"/></td>
+                <xsl:choose>
+                    <xsl:when test="position() = last()">
+                        <td>&#160;</td>
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:variable name="p" select="position()+1"/>
+                        <td><img src="{//picture[position()=$p]}"/></td>
+                    </xsl:otherwise>
+                </xsl:choose>
+            </tr>
+        </xsl:if>
+    </xsl:for-each>
+  </table>
+  -->
+  <!-- And this is the simple version -->
+      <table>
+          <tr width="100%">
+              <td>
+                <xsl:for-each select="picture">
+                   <img src="{.}"/><xsl:text> </xsl:text>
+                </xsl:for-each>
+              </td>
+          </tr>
+      </table>
+</xsl:when>
+<xsl:otherwise>
+  <xsl:variable name="picn">
+    <xsl:choose>
+      <xsl:when test="$pic=$maxp">1</xsl:when>
+      <xsl:when test="$pic=''">2</xsl:when>
+      <xsl:otherwise><xsl:value-of select="$pic+1"/></xsl:otherwise>
+    </xsl:choose>
+  </xsl:variable>
+  <xsl:variable name="picp">
+    <xsl:choose>
+      <xsl:when test="$pic=1 or $pic=''"><xsl:value-of select="$maxp"/></xsl:when>
+      <xsl:otherwise><xsl:value-of select="$pic - 1"/></xsl:otherwise>
+    </xsl:choose>
+  </xsl:variable>
+  <xsl:variable name="showpicindex">
+    <xsl:choose>
+      <xsl:when test="$pic=1 or $pic=''">1</xsl:when>
+      <xsl:otherwise><xsl:value-of select="$pic"/></xsl:otherwise>
+    </xsl:choose>
+  </xsl:variable>
+
+  <p>Picture <xsl:value-of select="$showpicindex"/> of <xsl:value-of select="$maxp"/>
+    <xsl:if test="$showpicindex &gt; 1">
+      - <cl:link path="attributes/picture" value="{$picp}">&#xAB; Previous</cl:link>
+    </xsl:if>
+    <xsl:if test="$showpicindex &lt; $maxp">
+      - <cl:link path="attributes/picture" value="{$picn}">Next &#xBB;</cl:link>
+    </xsl:if>
+    </p>
+    <p><cl:link path="attributes/picture" value="{picture[position()=$showpicindex]}" coplet="GalleryViewer-1">Push to Viewer</cl:link></p>
+    <img src="{picture[position()=$showpicindex]}"/>
+</xsl:otherwise>
+</xsl:choose>
+</xsl:template>
+</xsl:stylesheet>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/gallery.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/gallery.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/picture.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/picture.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/picture.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/picture.xml Thu Sep  1 02:08:10 2005
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!-- SVN $Id$ -->
+<pictures/>
\ No newline at end of file

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/picture.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/picture.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/picture.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/picture.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/picture.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/picture.xsl Thu Sep  1 02:08:10 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.
+-->
+<!-- $Id$ 
+
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<!-- The current picture to display -->
+<xsl:param name="pic"/>
+
+<xsl:template match="pictures" xmlns:cl="http://apache.org/cocoon/portal/coplet/1.0">
+    <xsl:choose>
+        <xsl:when test="$pic=''">
+            <p>Please choose a picture in the gallery.</p>
+        </xsl:when>
+        <xsl:otherwise>
+            <img src="{$pic}"/>
+        </xsl:otherwise>
+    </xsl:choose>
+</xsl:template>
+
+</xsl:stylesheet>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/picture.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/picture.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/bird1.jpg
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/bird1.jpg?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/bird1.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/bird2.jpg
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/bird2.jpg?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/bird2.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/cat1.jpg
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/cat1.jpg?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/cat1.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/cat2.jpg
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/cat2.jpg?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/cat2.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/dog1.jpg
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/dog1.jpg?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/dog1.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/dog2.jpg
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/dog2.jpg?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/dog2.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/sitemap.xmap?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/sitemap.xmap (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/sitemap.xmap Thu Sep  1 02:08:10 2005
@@ -0,0 +1,54 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+<map:pipelines>
+    
+  <map:pipeline>	
+
+	<map:match pattern="images/*.jpg">
+    	<map:read mime-type="image/jpg" src="samplepics/{1}.jpg"/>
+   	</map:match>
+
+    <!-- this is a gallery coplet -->
+    <map:match pattern="browser">
+        <map:generate type="directory" src="{coplet:copletData/attributes/image-dir}">
+            <map:parameter name="include" value="{coplet:copletData/attributes/image-include}"/>
+        </map:generate>
+        <map:transform src="dir2pic.xsl">
+            <map:parameter name="dirprefix" value="{coplet:copletData/attributes/image-uri-prefix}"/>
+        </map:transform>
+        <map:transform type="xslt" src="gallery.xsl">
+            <map:parameter name="pic" value="{coplet:attributes/picture}"/>
+            <map:parameter name="fullscreen" value="{coplet:aspectDatas/fullScreen}"/>
+        </map:transform>
+        <map:transform type="portal-coplet"/>
+        <map:serialize type="xml"/>
+    </map:match>
+    <map:match pattern="viewer">
+        <map:generate src="picture.xml"/>
+        <map:transform type="xslt" src="picture.xsl">
+            <map:parameter name="pic" value="{coplet:attributes/picture}"/>
+        </map:transform>
+        <map:serialize type="xml"/>
+    </map:match>
+
+  </map:pipeline>
+
+</map:pipelines>
+</map:sitemap>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/sitemap.xmap
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/history/path.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/history/path.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/history/path.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/history/path.xsl Thu Sep  1 02:08:10 2005
@@ -0,0 +1,32 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:template match="/links">
+	<xsl:for-each select="link">
+		<xsl:text> &gt; </xsl:text>
+		<a>
+			<xsl:attribute name="href">
+				<xsl:value-of select="concat('bookmark?history=', number)"/>
+			</xsl:attribute>
+			<xsl:value-of select="title"/>
+		</a>
+	</xsl:for-each>
+</xsl:template>
+
+</xsl:stylesheet>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/history/path.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/history/path.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/history/path.xsp
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/history/path.xsp?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/history/path.xsp (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/history/path.xsp Thu Sep  1 02:08:10 2005
@@ -0,0 +1,62 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<xsp:page language="java" xmlns:xsp="http://apache.org/xsp">
+<xsp:structure>
+<xsp:include>org.apache.cocoon.portal.acting.helpers.*</xsp:include>
+<xsp:include>java.lang.String</xsp:include>
+</xsp:structure>
+<links>
+	
+		<xsp:logic>
+
+			List listHistory = (List) request.getSession().getAttribute( "portal-history");
+			String strData = "untitled";
+			for (int i = 1; i &lt; listHistory.size()-1; i++)
+			{
+				List listItem = (List) listHistory.get( i);
+				for( int j=0; j &lt; listItem.size(); j++)
+				{
+					Mapping mapping = (Mapping) listItem.get( j);
+					if( mapping instanceof org.apache.cocoon.portal.acting.helpers.CopletEventDescription)
+					{
+						CopletEventDescription desc = (CopletEventDescription) listItem.get( j);
+						if( desc.copletId.equals( "MyCoplet"))
+						{
+							strData = (String) desc.data;
+						}
+					}
+					else if( mapping instanceof org.apache.cocoon.portal.acting.helpers.LayoutEventDescription)
+					{
+						LayoutEventDescription desc = (LayoutEventDescription) listItem.get( j);
+						if( desc.layoutId.equals( "maintab") &amp;&amp; desc.path.equals("parameters/title"))
+						{
+							strData = (String) desc.data;
+						}
+					}
+				}
+				<xsp:content>				
+				<link>
+					<number><xsp:expr>i</xsp:expr></number>
+					<title><xsp:expr>strData</xsp:expr></title>
+				</link>
+				</xsp:content>
+			}
+		</xsp:logic>
+	
+</links>
+</xsp:page>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/history/path.xsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/history/path.xsp
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/history/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/history/sitemap.xmap?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/history/sitemap.xmap (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/history/sitemap.xmap Thu Sep  1 02:08:10 2005
@@ -0,0 +1,34 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+<map:pipelines>
+    
+  <map:pipeline>	
+
+     <!-- this is a history coplet -->
+    <map:match pattern="path">
+        <map:generate type="serverpages" src="path.xsp"/>
+        <map:transform type="xslt" src="path.xsl"/>             
+    	<map:serialize type="html"/>
+    </map:match>
+
+  </map:pipeline>
+
+</map:pipelines>
+</map:sitemap>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/history/sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/history/sitemap.xmap
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/html/envelope.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/html/envelope.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/html/envelope.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/html/envelope.xml Thu Sep  1 02:08:10 2005
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<!-- SVN $Id$ -->
+<envelope/>
\ No newline at end of file

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/html/envelope.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/html/envelope.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/html/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/html/sitemap.xmap?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/html/sitemap.xmap (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/html/sitemap.xmap Thu Sep  1 02:08:10 2005
@@ -0,0 +1,59 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+  <map:pipelines>
+    <map:pipeline type="noncaching">	
+      
+      <map:match pattern="app-coplet">
+        <map:generate src="envelope.xml"/>
+        <map:transform type="portal-proxy">
+          <map:parameter name="envelope-tag" value="envelope"/>
+        </map:transform>
+        <map:transform type="htmlroot">
+          <map:parameter name="add-mode" value="false"/>
+        </map:transform>
+        <map:transform type="portal-html-linktoeventlink"/>
+        <map:serialize type="xml"/>
+      </map:match>
+
+      <map:match pattern="application">
+        <map:act type="portal-urlhelper" src="{coplet:temporaryAttributes/application-uri}">
+          <map:parameter name="copletid" value="{coplet:#}"/>
+          <map:generate src="{url}"/>
+        </map:act>
+        <map:transform type="htmlroot">
+          <map:parameter name="add-mode" value="false"/>
+        </map:transform>
+        <map:transform type="portal-html-eventlink">
+          <map:parameter name="attribute-name" value="application-uri"/>
+        </map:transform>
+        <map:serialize type="xml"/>
+      </map:match>
+<!--
+      <map:match pattern="live.html">
+        <map:generate type="html" src="{request-param:feed}"/>
+        <map:transform type="htmlroot">
+          <map:parameter name="add-mode" value="false"/>
+        </map:transform>
+        <map:serialize type="xml"/>
+      </map:match>
+-->
+    </map:pipeline>
+
+  </map:pipelines>
+</map:sitemap>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/html/sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/html/sitemap.xmap
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/login/login.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/login/login.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/login/login.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/login/login.xml Thu Sep  1 02:08:10 2005
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2005 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Id$ 
+ Description: The login form for the portal
+
+-->
+
+<content>
+      <h3>Personalized Area</h3>
+	<form>
+		<url>auth</url>
+		<field name="name" type="text" length="24" description="User"/>
+		<field name="password" type="password" length="24" description="Password"/>
+	</form>
+</content>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/login/login.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/login/login.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/login/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/login/sitemap.xmap?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/login/sitemap.xmap (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/login/sitemap.xmap Thu Sep  1 02:08:10 2005
@@ -0,0 +1,34 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+<map:pipelines>
+    
+  <map:pipeline>	
+
+     <!-- this is a login coplet -->
+    <map:match pattern="coplet">
+        <map:generate src="login.xml"/>
+        <map:transform src="{portal-skin:skin.basepath}/styles/login-html.xsl"/>
+	<map:serialize type="xml"/>
+    </map:match>
+    
+  </map:pipeline>
+
+</map:pipelines>
+</map:sitemap>

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/login/sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/login/sitemap.xmap
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/bbc_news.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/bbc_news.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/bbc_news.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/bbc_news.xml Thu Sep  1 02:08:10 2005
@@ -0,0 +1,108 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<rss version="0.91">
+ <channel>
+  <title>BBC News | World | UK Edition</title> 
+  <link>http://news.bbc.co.uk/go/click/rss/0.91/public/-/1/hi/world/default.stm</link> 
+  <description>Updated every minute of every day</description> 
+  <language>en-gb</language> 
+  <lastBuildDate>Tue, 29 Apr 03 14:41:21 GMT</lastBuildDate> 
+  <copyright>Copyright: (C) British Broadcasting Corporation, http://news.bbc.co.uk/2/shared/bsp/hi/services/copyright/html/default.stm</copyright> 
+  <docs>http://www.bbc.co.uk/syndication/</docs> 
+ <image>
+  <title>BBC News Online</title> 
+  <url>http://news.bbc.co.uk/furniture/syndication/bbc_news_120x60.gif</url> 
+  <link>http://news.bbc.co.uk</link> 
+  </image>
+ <item>
+  <title>US pulls out of Saudi Arabia</title> 
+  <description>The United States says virtually all its troops, except some training personnel, are to be withdrawn from Saudi Arabia.</description> 
+  <link>http://news.bbc.co.uk/go/click/rss/0.91/public/-/1/hi/world/middle_east/2984547.stm</link> 
+  </item>
+ <item>
+  <title>Sars 'a long-term epidemic'</title> 
+  <description>The outbreak of the Sars virus in China is a grave and long-term problem, Prime Minister Wen Jiabao says.</description> 
+  <link>http://news.bbc.co.uk/go/click/rss/0.91/public/-/1/hi/world/asia-pacific/2985649.stm</link> 
+  </item>
+ <item>
+  <title>PM rejects Mid-East violence</title> 
+  <description>The Palestinian prime minister-designate says there is no military solution to the Isralei conflict, as he faces a crucial vote.</description> 
+  <link>http://news.bbc.co.uk/go/click/rss/0.91/public/-/1/hi/world/middle_east/2983939.stm</link> 
+  </item>
+ <item>
+  <title>Charges over Serb PM murder</title> 
+  <description>Serbian ultra-nationalist Vojislav Seselj and 44 others are charged over the killing of PM Zoran Djindjic.</description> 
+  <link>http://news.bbc.co.uk/go/click/rss/0.91/public/-/1/hi/world/europe/2985423.stm</link> 
+  </item>
+ <item>
+  <title>'Anti-war' four stress euro-role</title> 
+  <description>Four anti-war EU leaders end a summit reaffirming their commitment to Nato - but seeking closer European ties.</description> 
+  <link>http://news.bbc.co.uk/go/click/rss/0.91/public/-/1/hi/world/europe/2984021.stm</link> 
+  </item>
+ <item>
+  <title>Vajpayee 'not to go to Pakistan'</title> 
+  <description>India's prime minister is unlikely to visit Pakistan for talks in the near future, despite an invitation from his counterpart.</description> 
+  <link>http://news.bbc.co.uk/go/click/rss/0.91/public/-/1/hi/world/south_asia/2984265.stm</link> 
+  </item>
+ <item>
+  <title>Croat 'war crimes' general dies</title> 
+  <description>The former head of the Croatian army, seen as a national hero but indicted by the war crimes tribunal, dies.</description> 
+  <link>http://news.bbc.co.uk/go/click/rss/0.91/public/-/1/hi/world/europe/2985633.stm</link> 
+  </item>
+ <item>
+  <title>Militant killed in Gaza attack</title> 
+  <description>A Palestinian militant dies in a strike by Israeli helicopter gunships in Gaza, while two others are reported killed in the West Bank.</description> 
+  <link>http://news.bbc.co.uk/go/click/rss/0.91/public/-/1/hi/world/middle_east/2984559.stm</link> 
+  </item>
+ <item>
+  <title>Blair arrives for Russia talks</title> 
+  <description>The UK prime minister is holding his first meeting with President Putin since the start of the Iraq war.</description> 
+  <link>http://news.bbc.co.uk/go/click/rss/0.91/public/-/1/hi/uk_politics/2983789.stm</link> 
+  </item>
+ <item>
+  <title>Iraqis killed in anti-US protest</title> 
+  <description>US troops open fire on demonstrators in the town of Falluja, killing at least 13 people according to witnesses.</description> 
+  <link>http://news.bbc.co.uk/go/click/rss/0.91/public/-/1/hi/world/middle_east/2984663.stm</link> 
+  </item>
+ <item>
+  <title>Iraqi antiquities summit held</title> 
+  <description>Museum experts meet in London to discuss how to help restore the looted cultural heritage of Iraq.</description> 
+  <link>http://news.bbc.co.uk/go/click/rss/0.91/public/-/1/hi/world/europe/2984171.stm</link> 
+  </item>
+ <item>
+  <title>US anger at war crimes threat</title> 
+  <description>The US warns Belgium not to proceed with a possible war crimes case against Iraq war commander Tommy Franks.</description> 
+  <link>http://news.bbc.co.uk/go/click/rss/0.91/public/-/1/hi/world/middle_east/2983911.stm</link> 
+  </item>
+ <item>
+  <title>Wimbledon ups prize money</title> 
+  <description>This year's Wimbledon men's singles champion will receive &#163;575,000.</description> 
+  <link>http://news.bbc.co.uk/go/click/rss/0.91/public/-/sport1/hi/tennis/2985277.stm</link> 
+  </item>
+ <item>
+  <title>Kiwis bat out Colombo draw</title> 
+  <description>New Zealand and Sri Lanka draw the first Test, despite three late wickets for Muttiah Muralitharan.</description> 
+  <link>http://news.bbc.co.uk/go/click/rss/0.91/public/-/sport1/hi/cricket/2984095.stm</link> 
+  </item>
+ <item>
+  <title>Fears for Nigerian oil hostages</title> 
+  <description>Negotiations are under way to free foreign oil workers - including 50 Britons - held on rigs off the Nigerian coast.</description> 
+  <link>http://news.bbc.co.uk/go/click/rss/0.91/public/-/1/hi/world/africa/2983577.stm</link> 
+  </item>
+  </channel>
+  </rss>
\ No newline at end of file

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/bbc_news.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/bbc_news.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_business.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_business.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_business.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_business.xml Thu Sep  1 02:08:10 2005
@@ -0,0 +1,119 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<rss version="2.0">
+ <channel>
+  <title>CNET News.com - E-Business</title> 
+  <link>http://www.news.com/</link> 
+  <description>Tech News First</description> 
+  <language>en-us</language> 
+  <pubDate>Tue, 29 Apr 2003 07:35:23 PDT</pubDate> 
+  <lastBuildDate>Tue, 29 Apr 2003 07:35:23 PDT</lastBuildDate> 
+  <category domain="syndic8">14173</category> 
+  <category>CNET News.com - E-Business</category> 
+  <generator>CNET</generator> 
+  <docs>http://news.com.com/2009-1090-980549.html</docs> 
+  <ttl>20</ttl> 
+ <image>
+  <title>CNET News.com</title> 
+  <url>http://i.i.com.com/cnwk.1d/i/ne/gr/prtnr/rss_logo.gif</url> 
+  <link>http://www.news.com/</link> 
+  <width>88</width> 
+  <height>31</height> 
+  </image>
+ <item>
+  <title>OASIS: Net procurement needs to align</title> 
+  <link>http://rss.com.com</link> 
+  <description>The Web services standards group launches an effort to create uniform practices for the way companies procure supplies over the Internet.</description> 
+  <category>E-Business</category> 
+  <guid isPermaLink="true">http://rss.com.com/2100-1019-998596.html</guid> 
+  <pubDate>Mon, 28 Apr 2003 12:34:00 PDT</pubDate> 
+  </item>
+ <item>
+  <title>Earnings: Amazon tapers loss</title> 
+  <link>http://rss.com.com</link> 
+  <description><!-- PLEASE BE SURE TO UPDATE THE BRIEF WITH THE LATEST HEADLINES -->The Web retailer narrows loss...Nortel posts surprise profit...Spider-Man can't save Sony from slipping into the red.</description> 
+  <category>E-Business</category> 
+  <guid isPermaLink="true">http://rss.com.com/2009-1017-255584.html</guid> 
+  <pubDate>Sun, 27 Apr 2003 06:00:00 PDT</pubDate> 
+  </item>
+ <item>
+  <title>Monster backpedals on listings purge</title> 
+  <link>http://rss.com.com</link> 
+  <description>Amid protests from Arab-American groups, the career Web site partially backs away from a decision to exclude references to job postings and r&#233;sum&#233;s from seven countries.</description> 
+  <category>E-Business</category> 
+  <guid isPermaLink="true">http://rss.com.com/2100-1022-998357.html</guid> 
+  <pubDate>Fri, 25 Apr 2003 17:08:00 PDT</pubDate> 
+  </item>
+ <item>
+  <title>VC Watch: Nanosys receives $30 million</title> 
+  <link>http://rss.com.com</link> 
+  <description>The company is an intellectual property licensing player in nanotechnology...Demantra rakes in $16 million...NeoScale Systems whips up $12 million.</description> 
+  <category>E-Business</category> 
+  <guid isPermaLink="true">http://rss.com.com/2100-1021-998356.html</guid> 
+  <pubDate>Fri, 25 Apr 2003 09:35:00 PDT</pubDate> 
+  </item>
+ <item>
+  <title>Taiwan dreads Computex ghost town</title> 
+  <link>http://rss.com.com</link> 
+  <description>Fears of empty halls at Computex Taipei due to the SARS outbreak have prompted the city's mayor to send out 200,000 letters of reassurance to overseas buyers.</description> 
+  <category>E-Business</category> 
+  <guid isPermaLink="true">http://rss.com.com/2100-1021-998329.html</guid> 
+  <pubDate>Fri, 25 Apr 2003 06:26:00 PDT</pubDate> 
+  </item>
+ <item>
+  <title>Amazon lifted by international sales</title> 
+  <link>http://rss.com.com</link> 
+  <description>The Web retailer reports a narrower loss and higher revenue on the back of a 68 percent rise in overseas sales, special promotions and cost-cutting.</description> 
+  <category>E-Business</category> 
+  <guid isPermaLink="true">http://rss.com.com/2100-1021-998280.html</guid> 
+  <pubDate>Thu, 24 Apr 2003 15:22:00 PDT</pubDate> 
+  </item>
+ <item>
+  <title>Best Software reshuffles, cuts jobs</title> 
+  <link>http://rss.com.com</link> 
+  <description /> 
+  <category>E-Business</category> 
+  <guid isPermaLink="true">http://rss.com.com/2110-1021-998278.html</guid> 
+  <pubDate>Thu, 24 Apr 2003 14:54:00 PDT</pubDate> 
+  </item>
+ <item>
+  <title>SEC set to swoop in insider trading suit</title> 
+  <link>http://rss.com.com</link> 
+  <description>A wife-and-husband pair of Wall Street high-flyers will reportedly soon face civil suit charges of irregularities in trading in shares of eBay and Drugstore.com.</description> 
+  <category>E-Business</category> 
+  <guid isPermaLink="true">http://rss.com.com/2100-1021-998215.html</guid> 
+  <pubDate>Thu, 24 Apr 2003 11:02:00 PDT</pubDate> 
+  </item>
+ <item>
+  <title>Federal charges shock Silicon Valley</title> 
+  <link>http://rss.com.com</link> 
+  <description>To many in Silicon Valley, there is a growing sense that the once high-flying banker Frank P. Quattrone is taking the heat for the entire industry. <br /><span class="a1">The New York Times</span></description> 
+  <category>E-Business</category> 
+  <guid isPermaLink="true">http://rss.com.com/2100-1021-998124.html</guid> 
+  <pubDate>Wed, 23 Apr 2003 21:30:00 PDT</pubDate> 
+  </item>
+ <item>
+  <title>eBay to stay in San Jose</title> 
+  <link>http://rss.com.com</link> 
+  <description /> 
+  <category>E-Business</category> 
+  <guid isPermaLink="true">http://rss.com.com/2110-1018-998123.html</guid> 
+  <pubDate>Wed, 23 Apr 2003 21:00:00 PDT</pubDate> 
+  </item>
+  </channel>
+  </rss>
\ No newline at end of file

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_business.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_business.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_news.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_news.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_news.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_news.xml Thu Sep  1 02:08:10 2005
@@ -0,0 +1,79 @@
+<?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.
+-->
+<!-- SVN $Id$ -->
+<rss version="2.0">
+ <channel>
+  <title>CNET News.com</title> 
+  <link>http://www.news.com/</link> 
+  <description>Tech News First</description> 
+  <language>en-us</language> 
+  <pubDate>Tue, 29 Apr 2003 07:29:05 PDT</pubDate> 
+  <lastBuildDate>Tue, 29 Apr 2003 07:29:05 PDT</lastBuildDate> 
+  <category domain="syndic8">14171</category> 
+  <category>CNET News.com</category> 
+  <generator>CNET</generator> 
+  <docs>http://news.com.com/2009-1090-980549.html</docs> 
+  <ttl>20</ttl> 
+ <image>
+  <title>CNET News.com</title> 
+  <url>http://i.i.com.com/cnwk.1d/i/ne/gr/prtnr/rss_logo.gif</url> 
+  <link>http://www.news.com/</link> 
+  <width>88</width> 
+  <height>31</height> 
+  </image>
+ <item>
+  <title>Intel worker accused of aiding terrorists</title> 
+  <link>http://rss.com.com</link> 
+  <description>The Justice Department charges engineer Mike Hawash, who has been in solitary confinement since March 20, with conspiracy to levy war against America and of supporting terror groups.</description> 
+  <category>Media</category> 
+  <guid isPermaLink="true">http://rss.com.com/2100-1028-998718.html</guid> 
+  <pubDate>Tue, 29 Apr 2003 07:15:00 PDT</pubDate> 
+  </item>
+ <item>
+  <title>Commentary: Breaking the digital music logjam</title> 
+  <link>http://rss.com.com</link> 
+  <description>The iTunes Music Store will raise the bar for digital music under Windows and change the industry, but it won't get Apple out of its 5 percent ghetto in the PC business.</description> 
+  <category>News.Commentary</category> 
+  <guid isPermaLink="true">http://rss.com.com/2009-1122-998707.html</guid> 
+  <pubDate>Tue, 29 Apr 2003 06:10:00 PDT</pubDate> 
+  </item>
+ <item>
+  <title>Off the hype meter</title> 
+  <link>http://rss.com.com</link> 
+  <description>Industry watcher <b>Jon Oltsik</b> offers his nominations for technology categories in which the elevation of hype has become an art form.</description> 
+  <category>Perspectives</category> 
+  <guid isPermaLink="true">http://rss.com.com/2010-1071-998529.html</guid> 
+  <pubDate>Tue, 29 Apr 2003 04:00:00 PDT</pubDate> 
+  </item>
+ <item>
+  <title>Sweet Semel of success</title> 
+  <link>http://rss.com.com</link> 
+  <description>After two years as leader of Yahoo, CEO Terry Semel is silencing naysayers with the results of his low-key approach.</description> 
+  <category>Media</category> 
+  <guid isPermaLink="true">http://rss.com.com/2100-1030-998665.html</guid> 
+  <pubDate>Tue, 29 Apr 2003 04:00:00 PDT</pubDate> 
+  </item>
+ <item>
+  <title>Apple's music: Evolution, not revolution</title> 
+  <link>http://rss.com.com</link> 
+  <description>For all the glitz surrounding the unveiling of Apple's new music service, a quick look suggests that it's a solid, but hardly revolutionary, addition to the market.</description> 
+  <category>Media</category> 
+  <guid isPermaLink="true">http://rss.com.com/2100-1027-998675.html</guid> 
+  <pubDate>Tue, 29 Apr 2003 04:00:00 PDT</pubDate> 
+  </item>
+  </channel>
+  </rss>
\ No newline at end of file

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_news.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_news.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_news2.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_news2.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_news2.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_news2.xml Thu Sep  1 02:08:10 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.
+-->
+<!-- SVN $Id$ -->
+<rss version="2.0">
+ <channel>
+ <image>
+  <title>CNET News.com</title> 
+  <url>http://i.i.com.com/cnwk.1d/i/ne/gr/prtnr/rss_logo.gif</url> 
+  <link>http://www.news.com/</link> 
+  <width>88</width> 
+  <height>31</height> 
+  </image>
+ <item>
+  <title>Intel worker accused of aiding terrorists</title> 
+  <link>http://rss.com.com</link> 
+  <description>The Justice Department charges engineer Mike Hawash, who has been in solitary confinement since March 20, with conspiracy to levy war against America and of supporting terror groups.</description> 
+  <category>Media</category> 
+  <guid isPermaLink="true">http://rss.com.com/2100-1028-998718.html</guid> 
+  <pubDate>Tue, 29 Apr 2003 07:15:00 PDT</pubDate> 
+  </item>
+  </channel>
+  </rss>
\ No newline at end of file