Re: Parameter passing with Cocoon
Your second method http://www.foo.com/index-xyz.html still forces the designer to know parameters when he/she creates a link. But I think first method is useful. http://www.foo.com/xyz/index.html May you give me a tip about how to parse these parameters to use in XSL stylesheets? Can Cocoon do this for me or do I have to write codes for parsing parameters in my XSL? __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Parameter passing with Cocoon
Change that to http://www.foo.com/x/y/z/index.html and you can use a pipeline matcher like this: map:match pattern=/*/*/*/*.html map:generate src=/docs/{4}.xml/ map:transform src=/styles/yourtransfomer.xsl map:parameter name=x value={1}/ map:parameter name=y value={2}/ map:parameter name=z value={3}/ /map:transform map:serialize/ /map:match This will call the index.xml file and send the x, y and z parameters to the stylesheet. If you define the x, y and z parameters in your stylesheet, you can simply call them the regular xslt way. HTH, Bert At 03:17 14/05/2002 -0700, you wrote: Your second method http://www.foo.com/index-xyz.html still forces the designer to know parameters when he/she creates a link. But I think first method is useful. http://www.foo.com/xyz/index.html May you give me a tip about how to parse these parameters to use in XSL stylesheets? Can Cocoon do this for me or do I have to write codes for parsing parameters in my XSL? __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Parameter passing with Cocoon
At 13:33 14/05/2002, you wrote: Change that to http://www.foo.com/x/y/z/index.html and you can use a pipeline matcher like this: map:match pattern=/*/*/*/*.html map:generate src=/docs/{4}.xml/ map:transform src=/styles/yourtransfomer.xsl map:parameter name=x value={1}/ map:parameter name=y value={2}/ map:parameter name=z value={3}/ /map:transform map:serialize/ /map:match I try to do this already but since I am generating the hyperlinks from other Cocoon pages generated through XSLT I am having trouble with parameters which have funny characters in them. (spaces, slashes, plus sign, etc). I assume I need to do URL encoding of the parameter before putting it into the URL, but I can't see how to do this with XSLT. Can anyone point me to an explanation? Thanks Alex Openweb Analysts Ltd, London: Software For Complex Websites http://www.OWAL.co.uk/ Free Consultancy for London Companies thinking of Open Source Software. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]