I want to make a query front end to the IMDB movie database.
To do this, I have a cocoon matcher that receives a query parameter and pass it along to the IMDB query url.
Very simple. But how do I URL encode the query parameterin the sitemap? This is not done automatically.
<!-- ================ -->
<!-- imdb find tst -->
<!-- ================ -->
<map:match pattern="findimdb"><map:generate type="html" src="http://www.imdb.com/Find?for={request-param:for}">
</map:generate>
<map:transform src="stylesheets/parseimdb.xsl"/>
<map:serialize type="xml"/>
</map:match>If for contains whitespace, the pipeline will crash.
I've tried the wsproxy generator too, and it's having the same problem.
Whats the correct way to do it? I've tried making a solution somewhat like this:
<map:generate type="html" src="http://www.imdb.com/Find"> <map:param name=use-request-params" value="true"/> <map:param name="for" value="{request-param:for}"/> </map:generate>
But it doesn't propagate the parameter value at all.
It seems the {} tags can contain jxpath expressions, can this be used to call the URLEncode funtion?
/Joakim
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
