Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 5806 invoked from network); 10 Mar 2005 18:31:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Mar 2005 18:31:40 -0000 Received: (qmail 36600 invoked by uid 500); 10 Mar 2005 18:31:34 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 36559 invoked by uid 500); 10 Mar 2005 18:31:34 -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 Received: (qmail 36545 invoked by uid 99); 10 Mar 2005 18:31:34 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of ap-cocoon-users@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 10 Mar 2005 10:31:31 -0800 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1D9SPX-0000HR-LY for users@cocoon.apache.org; Thu, 10 Mar 2005 19:29:28 +0100 Received: from d51a4ce66.access.telenet.be ([81.164.206.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Mar 2005 19:29:27 +0100 Received: from jh by d51a4ce66.access.telenet.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Mar 2005 19:29:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: users@cocoon.apache.org From: Jorg Heymans Subject: Re: How to pass an attaribute value from a resulting transformed xml Date: Thu, 10 Mar 2005 19:29:39 +0100 Lines: 80 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: d51a4ce66.access.telenet.be User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en In-Reply-To: X-Antivirus: avast! (VPS 0510-0, 08/03/2005), Outbound message X-Antivirus-Status: Clean Sender: news X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-MailScanner-From: ap-cocoon-users@m.gmane.org X-MailScanner-To: users@cocoon.apache.org X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks for making your situation a bit more clear. I had a look at the docs to find a component that might suit your needs. Have you tried using the WriteDomSessionTransformer [1]? I have never used it myself, but from the docs it seems like it could do the trick for you : Apparently, this transformer stores an object called "DBresult" in the session, the object contains the DOM representation of your pipeline encapsulated inside a root "rowset" element. Inside the action that sets the response header you could fetch this object, do some DOM searching until you find the title and voila! HTH Jorg [1]http://cocoon.apache.org/2.1/userdocs/transformers/writedomsession-transformer.html suryanarayana.murthy@tcs.com wrote: > Hi, > I apologize for the previous unformatted mail. some how it was corrupted. > I am resendign this for readability. > > This is the step-by-step process I am following. > > We have a content management server. Users upload all the documents, > reports etcto this server. All the realted documents are stored/grouped > under one documentID. > > In the intranet portal, when the users search for a particular documentID, > they get some search results. ifthe user clicks on any link it opens the > summary of that document giving links to download each attachment or all > the attachments in a zip format (with name of the zip file as > .zip). > > we have site map in which when the user clicks on the download button, > which ends with a pattern > http://servername:port//?view=download, > my pipeline in the sitemap will be invoked. > > In that pipeline, I execute to get the document summary > xml. Then I will transform that xml to another xml which has required > format to use ZipArchiveSerialzer as shown below: > > > title="sometitle.zip"> > > > > > After getting this xml on-fly from the transformer, I will call resource="someresource"> . In that resource, I call an action which sets > the > response.setHeader("content-disposition","attachment;filename="+myfilename); > > This "myfilename" is supposed to be the title attribute in the above on-fly > generated zip-archive xml. So, now my problem is, how can I get this > title? > > Is there any other way where I can send this title as parameter from my > transformer? > > Please guide me. > > Thanks & Regards, > > Murthy > > > > > Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org