cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Crafter <craft...@dresdnerbank.de>
Subject Re: [C2/Patch] Selector Heaven :-)
Date Fri, 01 Dec 2000 09:58:14 GMT
On Thu, 30 Nov 2000, Giacomo Pati wrote:

> Marcus Crafter wrote:
> > 
> >         Yes, the patch was intentional. I sent the patch in a couple of weeks
> >         back which fixes a problem where if the user did the following:
> > 
> >                 <when test="myparam < 4">
> > 
> >         and then
> > 
> >                 <when test="myparam = 4">
> > 
> >         Then the representing class level variables will have the same names,
> >         causing a compile error.
> 
> I thought I've fixed that, isn't it?

	I checked sitemap.xsl - the call to translate in generate-name doesn't
	convert < or > to _ characters which causes a compile error ( > cannot
	be in a variable name).

	If < > were added to the call to translate, then the next problem is
	that the call to generate-id still uses .. as a parameter, so the
	variables have the same node number. This means 2 tests will have the
	same generated variable name.

	What did your fix change ?

	Cheers,

	Marcus

-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   Open Software Associates GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'     Email : Marcus.Crafter@osa.de
          &&&&.        Business Hours : +49 69 9757 200
    &&&&&&&:           After Hours    : +49 69 49086750


Mime
View raw message