Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 15924 invoked by uid 500); 20 Jun 2001 19:38:51 -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 15895 invoked from network); 20 Jun 2001 19:38:49 -0000 Date: Wed, 20 Jun 2001 21:26:24 +0200 (CEST) From: giacomo X-X-Sender: To: , cc: Subject: Re: [Patch][C2.1] sitemap redirections + target spec In-Reply-To: <20010620145123.E29680@bremen.dvs1.informatik.tu-darmstadt.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N On Wed, 20 Jun 2001, Christian Haul wrote: > Hi all. > > The attached patch adds the ability to specify a "target" in a > tag. The "target" is available as "{1}" > in the resource specification. Why not as "{target}"? And why not substitutable? > > > Example > > > > > > > > > > > > > > > > > > > > > > > > > > > This way it is only necessary to specify required transformation steps > only in one place. A redirection to a URL wouldn't work here as that > would create a new request object which discards some values. In > addition resources are not accessible from outside. > > > Implementation > > Since maps (listOfMaps) is handed to resources, a new map is added to > the listOfMaps with just one entry ("1","@target"). > > > > Rationale > > A thing called "flowmap" has been discussed on this list for a long > time. Recently I felt the need for such a thing as well. Anyway, it > was not clear enough for me in which aspects a flowmap will differ from > the sitemap. All in all I believe all the functionality for a flowmap > is already present in the sitemap concept. > > As far as I am concerned, a sitemap would care about the URI mapping > and transformation steps. A flowmap would be a XML representation of a > state chart with states, sub states, transitions, triggers, guards and > actions. Yes, as Berin once stated the sitemap represents the "resources" and the flowmap the "directed graphs" between them. > > States can be represented by matchers, sub states by nested > matchers. Triggers are requests (request parameters) which could be > represented by selectors. Transitions are allowed paths to other URIs > or resources, guards can be realized by cocoon-actions with nested > content and actions, well be be realized by cocoon-actions. > > This way every resource would need a separate definition. > > The patch allows to redirect to a common definition for > transformation. So those two different concerns are separated, even if > they live in the same file. Since resources from ancestor sitemaps can > be accessed, this could be split up to that resources are only defined > in the top level sitemap. I don't like the fact that sub sitemap refers to parent ones. Admittedly sub sitemap already refers to sitemap components defined in the parent sitemap. But also Berin proposed to move them out of the sitemap right into the cocoon.xconf file (where all components are collected anyway). Giacomo --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org