Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 74023 invoked from network); 10 Oct 2007 08:34:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Oct 2007 08:34:46 -0000 Received: (qmail 71944 invoked by uid 500); 10 Oct 2007 08:34:28 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 71903 invoked by uid 500); 10 Oct 2007 08:34:28 -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 List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 71892 invoked by uid 99); 10 Oct 2007 08:34:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2007 01:34:28 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [194.244.116.252] (HELO gruppo4.com) (194.244.116.252) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2007 08:34:30 +0000 X-Virus-Scanned: by cgpav Received: from [217.133.32.17] (account tobia.conforto HELO chirale.ikkoku) by gruppo4.com (CommuniGate Pro SMTP 4.2) with ESMTP id 19411277 for users@cocoon.apache.org; Wed, 10 Oct 2007 10:30:58 +0200 Received: by chirale.ikkoku (sSMTP sendmail emulation); Wed, 10 Oct 2007 10:30:57 +0200 Date: Wed, 10 Oct 2007 10:30:57 +0200 From: Tobia Conforto To: users@cocoon.apache.org Subject: Cocoon 2.1 environment objects from a Java XSLT extension Message-ID: <20071010083057.GU21934@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11+cvs20060126 X-Virus-Checked: Checked by ClamAV on apache.org Hi I'm rewriting some functionality into Java XSLT extensions, for performance reasons. For now I'm just writing a Java class, copying it to WEB-INF/classes and calling its static methods from XSLT as such: This works, but I need to access the standard Cocoon environment objects (Request would suffice) from my Java class. Should I pass the whole request object to the stylesheet as a parameter and then pass it on to every invocation of my methods? How do I pass the request object to the stylesheet? I couldn't do it. Is there a better way? Tobia --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org