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]>

Reply via email to