> From: Maksimov, Aleksey [mailto:[EMAIL PROTECTED]] > > > Hi Aleksey, > > > > If I were to do what you suggest. How would the pipeline know > > which request > > parameter it is accessing, since in my different pipelines I may have > > different parameter names to select? > > I tried that case this way first: > > <map:selector name="request" > src="org.apache.cocoon.selection.RequestSelector"> > <parameter-name>xsl</parameter-name> > <parameter-name>xslOne</parameter-name> > </map:selector> > > but this doesn't work. So the only solution, I could think of, is have
Of course doesn't. > multiple selectors like this: > > <map:selector name="request" > src="org.apache.cocoon.selection.RequestSelector"> > <parameter-name>xsl</parameter-name> > </map:selector> > <map:selector name="requestOne" > src="org.apache.cocoon.selection.RequestSelector"> > <parameter-name>xslOne</parameter-name> > </map:selector> Try this one (it may be more useful for you): <map:selector name="request" src="org.apache.cocoon.selection.RequestSelector"/> ... <map:select type="request"> <map:parameter name="parameter-name" value="xsl"/> <map:when test="..."> ... skipped a lot ... </map:otherwise> </map:select> Vadim --------------------------------------------------------------------- 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]>