Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 6506 invoked by uid 500); 8 May 2002 15:15:07 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 6495 invoked from network); 8 May 2002 15:15:07 -0000 Message-ID: <601F6322AD71D5118D6C0003472515290660CE54@sjmemexc1.stjude.org> From: "Hunsberger, Peter" To: "'cocoon-users@xml.apache.org'" Subject: Using resources or other pipeline sources in parameters? Date: Wed, 8 May 2002 10:13:16 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Is it possible to map the contents of a cocoon resource or other sitemap component to a parameter that is to be passed to a stylesheet? Currently, I have a pipeline where I wrap the contents of the request along with the original source xml and pass that all into my style sheet as follows: Where run/requestdata just picks up the request generator. However, it would be nice to be able to do something like: This simplifies the stylesheet considerably since the I can now refer to the request data as a global parameter and not have to take special steps to parse it and pass it around as a variable (which implies making sure the variable passes through all templates unscathed until it gets to it's final consumer, which in my case is about 8 templates deep in the whole process). I suspect that this might be achieved fairly simply with XSP's but I'd sort of like to not use XSP since there is a bit of a strategic reason to keep the templates as close to pure XSLT as possible. If I was to use XSP's what would the approach be? Just rename the template as an XSP (and change the pipeline of course) and then pick up the request object directly? I'm running Cocoon 2.0.2 under JBoss2.4.4/Tomcat4.0.4b with JRE1.4 if it makes any difference.... Peter Hunsberger Phone: 901-495-5252 E-mail: Peter.Hunsberger@stjude.org --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: