> Vadim Gritsenko wrote:
>
> >>From: Konstantin Piroumian [mailto:kpiroumian@apache.org]
> >>
> >>Hi, team!
> >>
> >>I've just updated Cocoon from CVS and got this error:
> >>java.lang.ClassCastException:
> >>
> >
> >It could be my bug fix. See:
> >http://marc.theaimsgroup.com/?l=xml-cocoon-cvs&m=101941073405942&w=4
> >
> >Vadim
> >
>
> That's a side-effect of your patch : keys in the Map stack are no more
> Strings. Should be fixed now (please cross-check).
Now it seems to be working, but a little strange. Params are not passed to
resource in <map:call /> and I had to use {../0} to access needed data:
<!-- This is the resource I am calling -->
<map:resource name="composite">
<map:aggregate element="site">
<map:part src="cocoon:/menu/{../0}"/> <!-- I had to change
this like this -->
<map:part src="cocoon:/content/{page}" label="content"/>
<!-- This does not work -->
</map:aggregate>
<map:transform src="site2html.xsl">
<map:parameter name="page" value="{../0}" />
<map:parameter name="locale" value="{current-locale}" />
<!-- This param is not present -->
</map:transform>
<map:serialize/>
</map:resource>
</map:resources>
<map:match pattern="*.xml">
<map:call resource="composite">
<map:parameter name="page" value="{1}.xml"/> <1-- These
parameters are not passed to resource -->
<map:parameter name="current-locale" value="ru"/>
</map:call>
</map:match>
Is it related to the same changes?
Konstantin
>
> (just coming back from a few days off-list. I now have to flush my mail
> box... )
>
> Sylvain
>
> --
> Sylvain Wallez
> Anyware Technologies Apache Cocoon
> http://www.anyware-tech.com mailto:sylvain@apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
|