Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 24147 invoked from network); 12 Oct 2003 01:42:25 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Oct 2003 01:42:25 -0000 Received: (qmail 33710 invoked by uid 500); 12 Oct 2003 01:41:59 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 33508 invoked by uid 500); 12 Oct 2003 01:41:58 -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 33495 invoked from network); 12 Oct 2003 01:41:57 -0000 Received: from unknown (HELO hotmail.com) (64.4.15.95) by daedalus.apache.org with SMTP; 12 Oct 2003 01:41:57 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 11 Oct 2003 18:42:06 -0700 Received: from 66.214.4.226 by lw10fd.law10.hotmail.msn.com with HTTP; Sun, 12 Oct 2003 01:42:06 GMT X-Originating-IP: [66.214.4.226] X-Originating-Email: [ahimsadesi@hotmail.com] Reply-To: ssukumar@ecologyfund.net From: "Sonny Sukumar" To: users@cocoon.apache.org Bcc: Subject: RE: Pass sitemap params to "xslt" transformer? Date: Sat, 11 Oct 2003 18:42:06 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 12 Oct 2003 01:42:06.0939 (UTC) FILETIME=[0B6CF2B0:01C39062] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Con, Thank you very much for your suggestions. I implemented both suggestions and now I get: Here's my stylesheet: Thanks again, Sonny >From: Conal Tuohy >Reply-To: users@cocoon.apache.org >To: users@cocoon.apache.org, ssukumar@ecologyfund.net >Subject: RE: Pass sitemap params to "xslt" transformer? >Date: Sun, 12 Oct 2003 14:42:36 +1300 > >Sonny, you need: > > > >Note the curly brackets! This is an "Attribute Value Template". If you miss >the { } then "$centerPage" is interpreted as a string literal! > >Also, the parameter declaration looks wrong to me. I'm not sure, I don't >think you really want: > > > >This will assign the centerPage variable a value equal to the nodeset >containing the root node of your document, if that node's name is "home", >or >if that's not the name of the root node, then centerPage will equal the >empty nodeset. > >I think you probably want: > > > >This would assign it the string literal "home" > >Cheers > >Con > > > > -----Original Message----- > > From: Sonny Sukumar [mailto:ahimsadesi@hotmail.com] > > Sent: Sunday, 12 October 2003 11:07 > > To: peter.horsfield@ngc.com; users@cocoon.apache.org > > Subject: RE: Pass sitemap params to "xslt" transformer? > > > > > > > > --Update-- > > > > I tried the map:transform without passing any > > s at all, so > > just the default xsl:param value in the XSL stylesheet will > > be used (see > > prev. message below). > > > > I also made the template simpler. Just this now: > > > > > > > > > > Anyhow, the output I'm getting is: > > > xmlns:cinclude="http://apache.org/cocoon/include/1.0" > > src="$centerPage"/> > > > > This indicates the param *value* isn't being substituted. > > Why might this > > be? > > > > >From: "Sonny Sukumar" > > >Reply-To: ssukumar@ecologyfund.net > > >To: peter.horsfield@ngc.com, users@cocoon.apache.org > > >Subject: RE: Pass sitemap params to "xslt" transformer? > > >Date: Sat, 11 Oct 2003 12:55:20 -0700 > > > > > > > > >Ok, I can't get the value to work in the > > XSL. I keep > > >getting a ResourceNotFoundException. I even tried hardcoding the > > >map:parameter value, but it still doesn't work. Here's the sitemap > > >map:transform: > > > > > > > src="mysite/xsl/customerFacingTemplate.xsl"> > > > > > > > >value="cocoon:/internal/showProduct?productId=00123"/> > > > > > > > > >The XSL is: > > > > > > > > > > > > > >version="1.0" > > > > > xmlns:rp="http://www.redpouch.com/rp" > > > > > xmlns:cinclude="http://apache.org/cocoon/include/1.0"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >The specific error is this: > > >org.apache.cocoon.ProcessingException: Failed to execute pipeline.: > > >java.lang.RuntimeException: > > org.apache.cocoon.ResourceNotFoundException: > > >Resource not found.: > > org.apache.excalibur.source.SourceNotFoundException: > > >file:/usr/local/tomcat/webapps/cocoon/$centerPage doesn't exist > > > > > >Any ideas?? > > > > > >Thanks, > > > > > >Sonny > > > > > >>From: "Horsfield, Peter A." > > >> > > >>Absolutely: > > >> > > >> > > >> > > >> > > >> > > >>Then, in your XSLT file at the top level (under stylesheet) > > >> > > >> > > >> > > >>I've had problems using hyphens in parameter names, however. > > >> > > >>Peter > > >> > > >>-----Original Message----- > > >>From: Sonny Sukumar [mailto:ahimsadesi@hotmail.com] > > >>Sent: Wednesday, October 08, 2003 3:03 PM > > >>To: users@cocoon.apache.org > > >>Subject: Pass sitemap params to "xslt" transformer? > > >> > > >> > > >> > > >>Is there any way to pass *sitemap* parameters to the "xslt" > > transformer > > >>(TraxTransformer)? I know there's a > > "use-request-parameters" option to > > >>use > > >>request parameters, but that's not what I want to do. > > >> > > >>I want to at least be able to pass in the request URI (e.g. > > "requestUri" > > >>in > > >>"http://www.mysite.com/requestUri?id=12345"), but passing > > in parameters > > >>with > > >> > > >>names/values of my choosing from the sitemap would be better. > > >> > > >>Thanks for the help, > > >> > > >>Sonny > > >> > > >>_________________________________________________________________ > > >>Add MSN 8 Internet Software to your existing Internet > > access and enjoy > > >>patented spam protection and more. Sign up now! > > >>http://join.msn.com/?page=dept/byoa > > >> > > >> > > >>------------------------------------------------------------ > > --------- > > >>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > > >>For additional commands, e-mail: users-help@cocoon.apache.org > > > > > >_________________________________________________________________ > > >Add MSN 8 Internet Software to your existing Internet access > > and enjoy > > >patented spam protection and more. Sign up now! > > >http://join.msn.com/?page=dept/byoa > > > > > > > > >--------------------------------------------------------------------- > > >To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > > >For additional commands, e-mail: users-help@cocoon.apache.org > > > > > > > _________________________________________________________________ > > Help protect your PC. Get a FREE computer virus scan online > > from McAfee. > > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > > For additional commands, e-mail: users-help@cocoon.apache.org > > > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >For additional commands, e-mail: users-help@cocoon.apache.org > _________________________________________________________________ Instant message with integrated webcam using MSN Messenger 6.0. Try it now FREE! http://msnmessenger-download.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org