You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de> on 2001/11/19 13:54:25 UTC

Re: esql logicsheet get-column-name column=?

On 07.Nov.2001 -- 07:56 AM, Roger I Martin PhD wrote:
> Apparently esql:get-column-name takes only column names and string representation of column indexes; no variables.  The generated java code shows either

> although it looks like it should be feasible.  Is there a way?
> 
>   Also I want to supply an index variable like
> 
>   <xsp:logic>
>   for(int _esql_i=1;_esql_i&lt;=<esql:get-column-count/>;_esql_i++)
>   {
>     </xsp:logic>
>       <th>
>         <xsp:logic>
>           <esql:get-column-name column="_esql_i"/>
>         </xsp:logic>
>       </th>
>     <xsp:logic>
>   }
>   </xsp:logic>
> 
>   How?

You might have found out by now, if not, you'd need to 

     <esql:get-column-name><esql:param name="column"><xsp:expr>_esql_i</xsp:expr></esql:param></esql:get-column>

Sorry, for such a late response.

	Chris.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>