You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gk...@apache.org on 2007/03/28 15:28:00 UTC

svn commit: r523315 - in /cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF: resource/ resource/external/ resource/internal/ sitemap.xmap

Author: gkossakowski
Date: Wed Mar 28 06:27:59 2007
New Revision: 523315

URL: http://svn.apache.org/viewvc?view=rev&rev=523315
Log:
Make blocks created from archetype following block convention. Discussed here: http://thread.gmane.org/gmane.text.xml.cocoon.devel/71697

Added:
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/resource/
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/resource/external/
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/resource/internal/
Modified:
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/sitemap.xmap

Modified: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/sitemap.xmap?view=diff&rev=523315&r1=523314&r2=523315
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/sitemap.xmap (original)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/sitemap.xmap Wed Mar 28 06:27:59 2007
@@ -15,14 +15,16 @@
   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:sitemap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://apache.org/cocoon/sitemap/1.0 http://cocoon.apache.org/schema/sitemap/cocoon-sitemap-1.0.xsd"
+ xmlns:map="http://apache.org/cocoon/sitemap/1.0">
   
   <map:flow language="javascript">
     <map:script src="demo.js"/>
   </map:flow>
   
   <map:pipelines>
-    <map:pipeline>
+    <map:pipeline id="demo">
       <map:match pattern="">
         <map:call function="demo"/>
       </map:match>
@@ -30,6 +32,27 @@
         <map:generate src="demo.xml" type="jx"/>
         <map:serialize type="xml"/>
       </map:match>
+    </map:pipeline>
+    
+    <map:pipeline id="internal-resource" internal-only="true">
+      <!-- Put matchers for internal (accessible only to Cocoon blocks) resources here
+        More details: http://cocoon.zones.apache.org/daisy/cdocs-site-main/g2/1345.html -->
+      <map:match pattern="resource/internal/**">
+        <map:read src="resource/internal/{1}"/>
+      </map:match>
+    </map:pipeline>
+    
+    <map:pipeline id="external-resource">
+      <!-- Put matchers for extnernal (accessible to the outside world, e.g. browser) resources here. 
+        More details: http://cocoon.zones.apache.org/daisy/cdocs-site-main/g2/1345.html -->
+      <map:match pattern="resource/external/**">
+        <map:read src="resource/external/{1}"/>
+      </map:match>
+    </map:pipeline>
+    
+    <map:pipeline id="service">
+      <!-- Put your servlet service matchers here.
+        More details: http://cocoon.zones.apache.org/daisy/cdocs-site-main/g2/1345.html -->
     </map:pipeline>
   </map:pipelines>