You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Fuad Efendi <fu...@rbc.com> on 2006/11/15 16:58:31 UTC

Re: request parameters in sitemap

Sorry for late response, I am trying to find smth... and found this...

use '&amp;' instead of '&'
    <map:generate src="http://www.google.nl/search?hl=nl&amp;q={1}"/>



Wouter Roosendaal wrote:
> 
> Hi,
> 
> I trying to get cocoon (2.1.7) to request an xml document from an url.
> For example I have tried the following in my sitemap.xmap
>             <map:match pattern="*.qry">
>               <map:generate
> src="http://www.google.nl/search?hl=nl&q={1}"/>
>               <map:serialize type="xml"/>
>             </map:match>
> When I call the page http://mycocoon/help.qry I expected the call that 
> gets passed to cocoon is:
> http://www.google.nl/search?hl=nl&q=help but I get an error message from 
> cocoon that says:
> The reference to entity "q" must end with the ';' delimiter.
> 
> I've tried to pass the request parameters with <map:parameter name="q"   
> value="{1}" /> etc.
> After some reading my guess is the & in the src part of the generator. 
> Is there any way to pass request parameters to a generator or am I 
> totally on the wrong track here?
> 
> Any pointers to a resolution would be much appreciated.
> 
> Wouter.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/request-parameters-in-sitemap-tf437528.html#a7360324
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org