On 25.Sep.2002 -- 03:57 PM, Alan Hodgkinson wrote:
> 
> Dear All,
> 
> I get a compile error from the Java code generated by 
> my logic sheet.
> 
> I'm trying to implement a logic sheet that looks up
> a value given an id. I'm calling it from an XSP page
> as follows:
> 
>   <dbutil:idlookup table="Clients">
>      <xsp-request:get-parameter name="clientId"/>
>   </dbutil:idlookup>
> 
> The dbutil logic sheet makes use of the esql logicsheet.
> dbutil:idlookup performs, more or less, the following:
> 
>   <xsl:template match="dbutil:idlookup">
>     <esql:collection>
>        ...
>        <esql:query>
>           select name from Clients where clientId =
>             <xsl:value-of select=".|text()"/>

Gotcha! Need to use xsl:copy-of
(This one is certainly a top 10 error)

        Chris.
-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    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/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to