cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Sitemap parameters failing...
Date Fri, 31 May 2002 20:04:47 GMT
> From: Per Kreipke [mailto:per@onclave.com]
> 
> Vadim,
> 
> Did I get this wrong too? Just trying to correct my understanding.

No, looks like you are right and found an error... Will have to take a
look at it. Later. :)

Vadim

> 
> 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


Mime
View raw message