Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 49003 invoked by uid 500); 14 May 2002 08:16:29 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 48992 invoked from network); 14 May 2002 08:16:28 -0000 Subject: Re: DO NOT REPLY [Bug 9048] New: - Can we pass the name of the xsl to used for transformation as a parameter To: cocoon-dev@xml.apache.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: From: mratliff@collegenet.com Date: Tue, 14 May 2002 01:22:51 -0700 X-MIMETrack: Serialize by Router on pdx1/UAI(Release 5.0.9 |November 16, 2001) at 05/14/2002 01:22:51 AM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N You might try... Assuming you have a parameter in the request object named "reportName" whose value is "bar", this pipeline will apply the stylesheet "bar.xsl" to the xml found in the file specified by the "foo" URI. The "request" action with "parameters" set to true makes all request parameters available to sitemap. See comments in org.apache.cocoon.acting.RequestParamAction.java. There are other ways to do this sort of thing. Cocoon 2 offers *much* more flexibility and power than simple Cocoon1 example you cite. You can even apply a stylesheet built dynamically using another pipeline. Search through user list or developer list for posts about cocoon: pseudoprotocol, request generator, dynamic stylesheets, actions, etc. And study sitemaps found in /cocoon and /cocoon/samples. BTW, definitely NOT a bug. Hope this helps, --Michael bugzilla@apache.o rg To: cocoon-dev@xml.apache.org cc: 05/13/02 03:18 PM Subject: DO NOT REPLY [Bug 9048] New: - Can we pass the Please respond to name of the xsl to used for transformation as a parameter cocoon-dev DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9048 Can we pass the name of the xsl to used for transformation as a parameter Summary: Can we pass the name of the xsl to used for transformation as a parameter Product: Cocoon 2 Version: 2.0 Platform: Other OS/Version: Other Status: NEW Severity: Blocker Priority: Other Component: general components AssignedTo: cocoon-dev@xml.apache.org ReportedBy: pkrishna@learnframe.com Earlier, while using cocoon-I, we created a xml wrapper as below: "" + '\n' + "" + '\n' + "" + '\n' + "" + DateFormat.getDateInstance().format(new Date()) + "" + '\n' + reportDef + "Nebo, Learnframe, Inc. are registered trademarks of Learnframe, Inc. Powered by Learnframe." + ""; Xsl name to be used was programmatically generated. From my reading of cocoon2, the name of the XSL file to be used in transformation should be declared ahead in sitemap.xmap; how would I pass in the name of the xsl file in a request object and letting the org.apache.cocoon.transformation to use the xsl file passed in the request object instead of what's set in the src attribute. --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org