cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wouter Roosendaal <o...@tuvok.nl>
Subject request parameters in sitemap
Date Sat, 22 Oct 2005 20:17:24 GMT
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


Mime
View raw message