There are a few things I would look at. First, when you call a resource, you can pass parameters. See:
http://wiki.apache.org/cocoon/Resources?action=highlight&value=map%3Acall I know you can then pass these parameters to your action. Second, you might be able to make use of the RequestParamModule. Take a look at: http://wiki.apache.org/cocoon/InputModules I believe one of these are what you are searching for. Irv On Thu, 10 Mar 2005 21:15:32 +0530, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > Hi, 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 > <DocumentID_<Title>.zip). > > we have site map in which when the user clicks on the download button, which > ends with a pattern > http://servername:port/<access_to_the_document>/<documentID>?view=download, > my pipeline in the sitemap will be invoked. > > In that pipeline, I execute <map:aggregate> 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: > > <?xml version="1.0" encoding="UTF-8"?> > <zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0" > title="sometitle.zip"> > <zip:entry name="xyz.ppt" src="soemURL"/> > <zip:entry name="abc.pdf" src="someURL"/> > </zip:archive> > > After getting this xml on-fly from the transformer, I will call <map: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 > > > [EMAIL PROTECTED] > 03/10/2005 21:02Please respond [EMAIL PROTECTED] > > To users@cocoon.apache.org > cc > bcc > Subject How to pass an attaribute value from a resulting transformed xml > asparameter to <map:call resource="someresource"> > > > > > Hi, > In the sitemap, in a pipeline, after xsl transfomration, I am gettign an xml > file. After that I am calling <map:call resource> to zip the contents using > zipArchiveSerialzer. Now I am gettign the document title as an attribute to > the root element in my xml. > Following is my xml which is dynamically created using XSL transformation: > <?xml version="1.0" encoding="UTF-8"?> > <zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0" > title="sometitle.zip"> > <zip:entry name="xyz.ppt" src="soemURL"/> > <zip:entry name="abc.pdf" src="someURL"/> > </zip:archive> > > My problem is: > Now how can I pass the title attibute to <map:call > resource="someresoource">? > Please help me. this is very urgent requirement for me. > > Thanks & Regards, > Murthy > ForwardSourceID:NT00004212 > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ForwardSourceID:NT00004236 > > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]