You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Vadim Gritsenko <va...@verizon.net> on 2002/06/01 01:25:55 UTC
RE: Sitemap parameters failing...
Can't reproduce. Are you sure that you are using latest (2.0.3 branch
CVS) sitemap.xsl?
Vadim
--
Resistance is futile.
> -----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
RE: Sitemap parameters failing...
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Per Kreipke [mailto:per@onclave.com]
>
> > sitemap.xsl was removed from CVS HEAD (Cocoon 2.1) that's why you
had
> > trouble locating it.
>
> Ok. Just as I've understood it :-) Is the sitemap still used but its
code
> generated some other way in 2.1?
Sitemap is interpreted in the 2.1.
Vadim
> > You can try latest Cocoon from cocoon_2_0_3_branch, which should
work ok
> > for you.
>
> Will do, thanks.
>
> Per
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: Sitemap parameters failing...
Posted by Per Kreipke <pe...@onclave.com>.
> sitemap.xsl was removed from CVS HEAD (Cocoon 2.1) that's why you had
> trouble locating it.
Ok. Just as I've understood it :-) Is the sitemap still used but its code
generated some other way in 2.1?
> You can try latest Cocoon from cocoon_2_0_3_branch, which should work ok
> for you.
Will do, thanks.
Per
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: Sitemap parameters failing...
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Per Kreipke [mailto:per@onclave.com]
>
> Vadim,
>
> > > - I'm using C2 (RC1 I think) and this bug still exists in the
current
> > code
> > > when I look at the CVS code.
>
> > Can't reproduce. Are you sure that you are using latest (2.0.3
branch
> > CVS) sitemap.xsl?
>
> No, I'm definitely not. I meant by the line above that I compared the
> portion of the sitemap.xsl I'm using (2.0.2) with the version in CVS
to see
> if the ordering was similar and I thought it was. However, I must
admit that
> there was something strange about browsing CVS using the web interface
to
> that particular file (sitemap.xsl), I recall having to try through a
bunch
> of the targets to get any view of it at all.
>
> Clearly, it's my responsibility to see if I can prove that the bug
still
> exists under the latest code. I'll attempt somehow to do that without
> updating my install to the latest CVS version [not sure we're ready
for it
> :-)]
sitemap.xsl was removed from CVS HEAD (Cocoon 2.1) that's why you had
trouble locating it.
You can try latest Cocoon from cocoon_2_0_3_branch, which should work ok
for you.
Vadim
>
> Per
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: Sitemap parameters failing...
Posted by Per Kreipke <pe...@onclave.com>.
Vadim,
> > - I'm using C2 (RC1 I think) and this bug still exists in the current
> code
> > when I look at the CVS code.
> Can't reproduce. Are you sure that you are using latest (2.0.3 branch
> CVS) sitemap.xsl?
No, I'm definitely not. I meant by the line above that I compared the
portion of the sitemap.xsl I'm using (2.0.2) with the version in CVS to see
if the ordering was similar and I thought it was. However, I must admit that
there was something strange about browsing CVS using the web interface to
that particular file (sitemap.xsl), I recall having to try through a bunch
of the targets to get any view of it at all.
Clearly, it's my responsibility to see if I can prove that the bug still
exists under the latest code. I'll attempt somehow to do that without
updating my install to the latest CVS version [not sure we're ready for it
:-)]
Per
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org