Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 41985 invoked from network); 24 Apr 2005 10:47:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Apr 2005 10:47:50 -0000 Received: (qmail 2616 invoked by uid 500); 24 Apr 2005 10:48:14 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 2539 invoked by uid 500); 24 Apr 2005 10:48:14 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 2525 invoked by uid 99); 24 Apr 2005 10:48:14 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from essemtepe.nada.kth.se (HELO smtp.nada.kth.se) (130.237.222.115) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 24 Apr 2005 03:48:13 -0700 X-Authentication-Info: The sender was authenticated as danielf using PLAIN at smtp.nada.kth.se Received: from [83.226.249.247] (localhost [127.0.0.1]) (authenticated bits=0) by smtp.nada.kth.se (8.12.10/8.12.11) with ESMTP id j3OAlTon019977; Sun, 24 Apr 2005 12:47:29 +0200 (MEST) Message-ID: <426B79AB.1000206@nada.kth.se> Date: Sun, 24 Apr 2005 12:49:15 +0200 From: Daniel Fagerstrom User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: block.xml and the blocks sitemap Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The block descriptor file contains a reference to the root sitemap of the block. In Cocoon the main configuration (cocoon.xconf) is the starting point instead. In the http environment the configuration file can be defined in web.xml or is taken from its default position. Then the root processor is configured with e.g.: Starting from the sitemap instead of from the configuration could simplify things for the blocks authors as they don't need to write a configuration file for a simple block and can define the compnents in the sitemap instead. But there is still the question how the block sitemap should be configured, should it get the reload parameter from the Cocoon root sitemap, and what about the config attribute? Also there is the question if there should be a "block.xconf" and how it should be related to the sitemap. IMO we should have the same behaviour in blocks as in the "main Cocoon". So if we have the sitemap as "main configuration" in blocks we should allow the same in the "main Cocoon". To simplify prototyping of the block manager I let block.xml point at the block configuration file instead as a temporary solution. --- o0o --- So, what is your opinions about this, has it been discussed before? /Daniel