cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Smirnoff" <asmirn...@vistar.ca>
Subject Esql in Logicsheets
Date Mon, 15 Oct 2001 22:11:16 GMT
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?

Thanks,
Alex


---------------------------------------------------------------------
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