cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject Re: Esql in Logicsheets
Date Tue, 16 Oct 2001 06:50:59 GMT
On 15.Oct.2001 -- 06:11 PM, Alexander Smirnoff wrote:
> I'm trying to hide ESQL taglib in Logicsheet. Something like that:
> 
> <xsl:template match="lib:asset[@action='get-id']">
>         <esql:connection>
>             <esql:pool>gwvas</esql:pool>
>             <esql:execute-query>
>                 <esql:query>
>                     <xsp:expr>"select id from asset where
> name='"+<xsl:value-of select="@name"/>+"'"</xsp:expr>
>                 </esql:query>
>                 <esql:results>
>                     <esql:row-results>
>                         <xsp:expr><esql:get-int column="id"/></xsp:expr>
>                     </esql:row-results>
>                 </esql:results>
>             </esql:execute-query>
>         </esql:connection>
> </xsl:template>
> 
> The result I'd like to get in xsp:
> 
> <xsp:logic>
> ...
> id=<lib:asset action="get-id" name="vd2222"/>
> ...
> </xsp:logic>
> 
> This doesn't work ... Whats wrong about this approach?

Alexander,

nothing is wrong with this. It does work. Perhaps you have forgotten
to declare all necessary namespaces or haven't declared the new taglib
in cocoon.xconf or (million other possible pitfalls). Unless you tell
us more about your problem (i.e. what "doesn't work" means exactly,
how your xsp, xsl and cocoon.xconf look like) it's hard to help.

	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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message