cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roel Croonenberghs <Roel.Croonenber...@sofico.be>
Subject Re: using request parameter in <map: generator
Date Fri, 22 Jun 2007 15:12:25 GMT
can't u use this
        <map:match pattern="*/documents/*">
        <map:generate src="dasl-documents.xml" type="newjx">
          <map:parameter name="repository" 
value="{global:repositoryRoot}{global:{1}Path}"/>
          <map:parameter name="results" value="{2}"/>
        </map:generate>
        <map:transform type="webdav"/>
        <map:transform src="transformers/dasl-result.xsl"/>
        <map:serialize type="xml"/>
      </map:match>

and instead of www.mysite.com?results=5 you call 
www.mysite.com/documents/5 or www.mysite.com/documents/3 or ...

Roel




Vaduvoiu Tiberiu <vaduvoiutibi@yahoo.com> 
22/06/2007 17:07
Please respond to
users@cocoon.apache.org


To
users@cocoon.apache.org
cc

Subject
using request parameter in <map: generator






I want to define and use a request parameter for a dasl search
 so what I want to do is have a parameter "results" with which in dasl I 
can restrict the number of results that are displayed

in my sitemap, if I define:

      <map:match pattern="*/documents">
        <map:generate src="dasl-documents.xml" type="newjx">
          <map:parameter name="repository" 
value="{global:repositoryRoot}{global:{1}Path}"/>
          <map:parameter name="results" value="3"/>
        </map:generate>
        <map:transform type="webdav"/>
        <map:transform src="transformers/dasl-result.xsl"/>
        <map:serialize type="xml"/>
      </map:match>

this way it works. But how can I also use the request parameter (having 
something like www.mysite.com?results=5 work)? I remember that for 
transformers you could use

<map parameter name=use-request-parameter value="true"/>

 but this doesn't work if I put it between the <map generate> tags. So how 
can this be done?10x in advance




 
___________________________________________________________________________________
You snooze, you lose. Get messages ASAP with AutoCheck
in the all-new Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_html.html

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



Mime
View raw message