Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 12568 invoked from network); 10 Mar 2000 01:26:28 -0000 Received: from unknown (HELO ricardo.plenix.com) (root@207.33.160.100) by locus.apache.org with SMTP; 10 Mar 2000 01:26:28 -0000 Received: from ricardo (cr2167247111.cable.net.co [216.72.47.111] (may be forged)) by ricardo.plenix.com (8.9.3/8.8.7) with SMTP id RAA24165 for ; Thu, 9 Mar 2000 17:26:27 -0800 From: Ricardo Rocha Reply-To: ricardo@apache.org To: cocoon-dev@xml.apache.org Subject: Re: Dom elements as function Arguments in XSP file Date: Thu, 9 Mar 2000 20:02:17 -0500 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain References: <2DF4B08BBEB1D111AE20006008CB4EAE024D4C3D@gomez.mercury.co.il> In-Reply-To: <2DF4B08BBEB1D111AE20006008CB4EAE024D4C3D@gomez.mercury.co.il> MIME-Version: 1.0 Message-Id: <00030920330507.01678@ricardo> Content-Transfer-Encoding: 8bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi guys, On Wed, 08 Mar 2000, Guy wrote: > How Can I pass DOM Elements to the functions in the XSP file > I have the following files > > Report > > > > .. > > > > > > > How can I get the tag as String or as Element in the > Lib.xsl.xsp file? I hope I'm understanding your requirement correctly (TM), :-) The question could be rephrased as: "when a dynamic XSP tag is represented in logic as a method, how can I pass content nested inside the dynamic tag as argument(s) to the underlying method?" In the example above, you may want to process so that generated code looks like: { User user = (User)session.getValue("User"); ReportInput[] inputs = ; // Here's the trick user.execReport(inputs, request, document) } Assuming you have XSL templates to transform each through to a suitable Java expression, you could do something like: User user = (User)session.getValue("User"); ReportInput[] inputs = { , // Note the comma }; user.execReport(inputs, request, document) Hope this helps, Ricardo