From users-return-55067-apmail-cocoon-users-archive=cocoon.apache.org@cocoon.apache.org Tue Sep 02 09:10:20 2003 Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 65947 invoked from network); 2 Sep 2003 09:10:19 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Sep 2003 09:10:19 -0000 Received: (qmail 67214 invoked by uid 500); 2 Sep 2003 09:09:36 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 67191 invoked by uid 500); 2 Sep 2003 09:09:35 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Delivered-To: moderator for users@cocoon.apache.org Received: (qmail 22677 invoked from network); 2 Sep 2003 07:11:01 -0000 From: Date: Tue, 02 Sep 2003 09:10:08 +0200 Subject: getting parameters from the sitemap for my own transformer To: users@cocoon.apache.org Message-id: MIME-version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, i have written a transformer which is needed for my project. This transformer has to work in two modes which should be specified by a parameter passed in the sitemap: -- this is what i wrote in my sitemap -- ... ---- -- this is what i wrote in my transformer -- public class ACLTransformer extends AbstractSAXTransformer implements Parameterizable, Poolable { ... public void parameterize(Parameters parameters) throws ParameterException { this.ignore_type = parameters.getParameterAsBoolean("ignore_type", false); } ---- The value of my Boolean variable ignore_type is set to false, which means that the parameter from the sitemap couldn' t be passed to my class. I think the way I use the interface Parameterizable is correct and i' d like to know if i have to do further modifications to my sitemap or perhaps to the cocoon.xconf file. Thank you for your help. Gregor Bertrand --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org