cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex McLintock <a...@OWAL.co.uk>
Subject Re: Parameter passing with Cocoon
Date Tue, 14 May 2002 12:54:01 GMT
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message