Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 62899 invoked by uid 500); 14 Jan 2002 13:33:04 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 62888 invoked from network); 14 Jan 2002 13:33:03 -0000 From: "Vadim Gritsenko" To: Subject: RE: Views and RE: [VOTE] Retuning Sitemap Implementation Date: Mon, 14 Jan 2002 08:32:32 -0500 Message-ID: <013101c19cff$ec0e53c0$90a4558b@vgritsenkopc> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 In-reply-to: <3C42A495.4050607@anyware-tech.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > From: Sylvain Wallez [mailto:sylvain.wallez@anyware-tech.com] > > Vadim Gritsenko wrote: > > >>>>3. Token expansion is allowed for all attributes. > > > > Done; yet there is an issue with the views, labels, and > > map:generate|serialize|transform's type attribute. The issue is how to > > determine label of the particular component if at compilation time name > > of the component is not known (because of substitution). > > Sorry to jump in lately (I have hard times to follow the list), but I'm > not sure it desirable to allow substitution in component types and view > labels. I tend to agree with you... btw, labels are not substituted - because (in part) that they are allowed in (where no substitution possible). > This could lead to very obscure sitemaps (refer also to "dynamic > sitemap" Stefano is strongly against), and since source/parameters for > sitemap statements often are component-specific, I don't see any real > functional use for this. One could come up with the example of usage; but I also do not think that this functionality is required. > > Thinking about views, why it is necessary to declare views and > > component's labels in every sub-sitemap? If first is just inconvenience, > > second poses more serious treat: every sub sitemap dealing with views > > must define own pool of components (read: use (sometimes: lots of) > > memory), leading to scalability issues. I think there is need to come up > > with the mechanism to lookup view labels on run-time. Any ideas? > > This could be achieved by a using a specialized ComponentSelector that > holds the labels for each component. But this means the sitemap is no > more self-contained (views behaviour can depend on the parent sitemap). > > > > And I have another view-related question: what should be the correct > > view behavior for the following sitemap fragment: > > > > > > > > > > ... > > > > > > > > > > Now it seems invokes view right after generator. > > Jumping to a view occurs at the first statement having the label the > view refers to, i.e. the generator in this case. Shouldn't it be called after transformer? Or, if I want it to be after transformer, I have to do something like this: And this solution leads to issue #1: scalability problems. I'm just imagining something like www.mycgiserver.com (thousands of users) on one instance of Cocoon 2. It's a waste to allow every user have own pools; and every user should have an ability to declare own labels. This leads me to opinion that concerns are overlapping. Shouldn't it be possible to declare labels without declaration of new components? What do you think? Vadim --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org