Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 45846 invoked from network); 9 Apr 2005 19:03:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Apr 2005 19:03:30 -0000 Received: (qmail 31907 invoked by uid 500); 9 Apr 2005 19:03:28 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 31878 invoked by uid 500); 9 Apr 2005 19:03:28 -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 31864 invoked by uid 99); 9 Apr 2005 19:03:27 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from postfix4-1.free.fr (HELO postfix4-1.free.fr) (213.228.0.62) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 09 Apr 2005 12:03:26 -0700 Received: from [192.168.0.100] (lns-vlq-39f-81-56-134-235.adsl.proxad.net [81.56.134.235]) by postfix4-1.free.fr (Postfix) with ESMTP id 1C56A317783 for ; Sat, 9 Apr 2005 21:03:23 +0200 (CEST) Message-ID: <425826FB.4040507@apache.org> Date: Sat, 09 Apr 2005 21:03:23 +0200 From: Sylvain Wallez Organization: Anyware Technologies User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Manually specifying a mounted sub sitemap's context References: In-Reply-To: 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 Jochen Kuhnle wrote: >Hi Sylvain, > >I agree that generated sitemaps are a somewhat more sophisticated use of >Cocoon. However, I think it is a nice feature to have. My main reason for >this is that I want to hide the nuts and bolts of sitemaps from site >maintainers and just want to give them a limited subset (or high-level XML >description) for the one specific site that is easy to understand and >maintain. So why not pre-generate it? So no-one ever forgets to do it! > Hmm... same use case as Gianugo. Is it possible for these files to be changed directly on the live site, or is this part of some kind of deployment operation? >I found that it is quite efficient to generate the sitemap dynamically. >Since the sitemap-pipeline is created by a developer who knows more about >this stuff (including caching) than a maintainer, I think we can assume it >will be cacheable. Of course optimum support here would be to have the >map:mount code write "DANGER! Your sitemap pipeline is not cacheable" to >the log, but I don't think this is necessary. > >In addition, I can think of use cases where specifiable contexts might >come in handy even for "normal" sitemaps. One is that you maybe want to >differentiate access rights to sitemaps from access rights to content. >With a specifiable context, you could move all sitemaps into a special >sitemap-directory (or tree), separate from the content, and still avoid >ugly directory traversal prefixes to content files (type="jx" src="../../../path/to/the/content/directory/page.jx"/>). You get >"nicer" sitemaps, and you just have to set file permissions on two >directories (the sitemap and the site directory) instead of each and every >file. > > What you need here is a global variable that can be used as a prefix, thus writing And if you find it too verbose, what you need is the sitemap to be able to define it's own context (i.e. , see my previous post) and not have this context be defined externally. Sylvain -- Sylvain Wallez Anyware Technologies http://apache.org/~sylvain http://anyware-tech.com Apache Software Foundation Member Research & Technology Director