cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Per Kreipke" <...@onclave.com>
Subject RE: Sitemap parameters failing...
Date Fri, 31 May 2002 20:00:12 GMT
Vadim,

Did I get this wrong too? Just trying to correct my understanding.

Per

> -----Original Message-----
> From: Per Kreipke [mailto:per@onclave.com]
> Sent: Friday, May 31, 2002 12:08 PM
> To: cocoon-dev@xml.apache.org
> Subject: Sitemap parameters failing...
>
>
> In the following test sitemap fragment, I thought I was doing something
> wrong because I couldn't get the sitemap to compile:
>
> <map:match patter="client.xml">
> 	<map:parameter name="client" value="magnet" />
>
> 	<map:generate src="config/{client}.xml" />
> 	<map:serialize type="xml" />
> </map:match>
>
>
> When I look at the sitemap.xsl code I think I see why: the generated java
> fragment below is wrong, param is initialized outside the function
> definition for the matcher.
>
> param = new Parameters();
> param.setParameter("client", "magnet");
>
> private final boolean matchN10002D(.....) throws ...
> {
> 	...
> 	Parameters param;
> 	...
>
> }
>
> Notes:
>
> - this is not an issue for the other instances where map:parameter is used
> (e.g. in map:act, map:select, etc) because those are called from
> within the
> function generated by "map:match".
>
> - I think the same bug exists in both XSL templates for "map:match" and
> "map:match//map:match".
>
> - I'm using C2 (RC1 I think) and this bug still exists in the current code
> when I look at the CVS code.
>
>
> Per
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message