On Thu, 21 Aug 2003, Steven Noels wrote:
> Jeremy Quinn wrote:
>
> >
> > On Thursday, August 21, 2003, at 10:27 AM, Unico Hommes wrote:
> >
> >> What build are you using. This wasn't working a few weeks ago but has
> >> been fixed.
> >>
> >
> > 2.1.1-dev, a couple of days old.
>
> ... and I'm running into the same problem, with HEAD from this afternoon.
>
> sitemap:
>
> <map:match pattern="foo/*/bar/*">
> <map:generate src="forms/{1}-baz.xml" type="jx"/>
> <map:transform src="style/site2html.xsl"/>
> <map:serialize/>
> </map:match>
There are no sitemap parameters, right?
>
> jxpage:
>
> <page xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
>
> [...]
>
> <jx:choose>
> <jx:when test="${parameters.getParameter('status') == 'success'}">
because of the above you'll wont get anything!
Have you tried to do point to
http://yourserver:8888/yourapp/foo/x/bar/y?status=111 and use a
${request.getParameter('status') instead?
> <p>We love you.</p>
> </jx:when>
> <jx:otherwise>
> <p>Unfortunately, the processing of your payment failed.</p>
> </jx:otherwise>
> </jx:choose>
>
> [...]
>
> </content>
> </page>
>
> I also tried any permutation of JEXL and JXPath, but no luck.
>
> Some thoughts aside:
>
> - The contract for exchanging (named) parameters between sitemap,
> flowscript and jxtransformer needs to be solidified (but we knew that)
> - I'm slightly annoyed by the abundance of choice with JEXL and JXPath.
> Wouldn't it be better to stick with only one of them?
>
> </Steven>
>
--
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com