cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <tcu...@dff.st>
Subject Re: XMLForm and concatenation in view: possible bug?
Date Wed, 16 Apr 2003 15:11:30 GMT
Sylvain.Thevoz@swisscom.com wrote:
> Torsten,
> 
> If I understand, the problem is that the path /person_col[1]/yourexpression is NOT a
valid and correct path.
> 
> In other words, with this code:
> <xf:itemset nodeset="persons_col">
>   <xf:caption ref="concat(lastName, firstName)"/>
> 
> XMLForm creates the paths:
> /person_col[1]/concat(lastName, firstName)
> /person_col[2]/concat(lastName, firstName)
> ...
> 
> which are not correct.
> 
> It should maybe creates something like:
> /person_col[1]/lastName + /person_col[1]/firstName
> /person_col[2]/lastName + /person_col[2]/firstName
> ...
> 
> 
> Am I right or totally out of the subject?

Well, almost right :)

/person_col[1]/lastName + /person_col[1]/firstName
...

is usually not what you want in the caption ref either.
You want the ref to refer to the current item not the
caption itself.
--
Torsten


Mime
View raw message