From cocoon-dev-return-11828-apmail-xml-cocoon-dev-archive=xml.apache.org@xml.apache.org Thu Mar 15 20:42:33 2001 Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 31359 invoked by uid 500); 15 Mar 2001 20:42:24 -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 31329 invoked from network); 15 Mar 2001 20:42:20 -0000 Message-ID: <3AB12885.C6DE8F86@apache.org> Date: Thu, 15 Mar 2001 15:39:33 -0500 From: Berin Loritsch X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: "cocoon-dev@xml.apache.org" Subject: [C2] Proposal for "generator" URL protocol Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Keeping in mind with the Separation of Concerns pattern, I would like to simplify some Enterprise development functionality. Our company has come up with some informational DTDs that represent key consepts in our system. What would benefit us is the ability to write a custom generator that supplies those compositional units. Right now, we are forced to implement that functionality as LogicSheets. It is much easier for us to write and test a Generator than it is to do LogicSheets. The protocol would allow us to Xinclude or util:include those units in approval and summary forms. The URL would be used like this: That would translate into roughly the following code: StringTokenizer tok = new StringTokenizer(url, "/?&"); Generator gen = (Generator) generatorSelector.select(tok.nextToken()); String source = tok.nextToken(); Parameters params = new Parameters(); while(tok.hasMoreTokens()) { StringTokenizer param = new StringTokenizer(tok.nextToken(), "="); params.setParameter(param.nextToken(), param.nextToken()); } gen.setup(resolver, objectModel, source, params); This would allow me to create the generators using XSP, but without the hastle of LogicSheet writing. --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org