cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: ESQL doc.
Date Fri, 15 Feb 2002 16:10:24 GMT
Here is an example I worked out (with help). Don't know if this works for 2
embedded queries:

            select dept from department_table
                <esql:get-string column="dept"/>
                    select id,name 
                    from employee_table 
                    where department_id = <esql:get-string column="dept"
                        <name><esql:get-string column="name"/></name>
                    <p>Sorry, no results 2!</p>
            <p>Sorry, no results 1!</p>

hope this helps.

-----Original Message-----
From: Olivier Rossel []
Sent: 14 February 2002 14:37
Subject: ESQL doc.

I read the archives of the mailing-list about ESQL and nested queries.
I read an interesting thing about "ancestor" in the declaration of inner 
But I can find no documentation at all, about that point.

Anyone has a link?
Any docs has been updated in addition to the page available at: ?

My problem is to have something like:

<query1> select foobar, foo, bar from table1;
for each foobar:  { 
   <query2> select * from table2 where field1=<current-value-of foobar>;
    for each barfoo (selected by the previous query, inside the '*'): {
        <query3> select * from table3 where field1=<current-value-of barfoo;
    <get-columns-of query2>
    <get-columns-foo-of query1>
    <get-columns-bar-of query1>

I do not plan to use a single complicated SQL request in order to have a 
flat XML

Legal Disclaimer 

This message contains confidential information and is intended only for
the individual named.  If you are not the named addressee you should not
disseminate, distribute or copy this e-mail.  Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system.
mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late or
incomplete, or contain viruses.  The sender therefore does not accept
liability for any errors or omissions in the contents of this message that
arise as a result of e-mail transmission.  If verification is required
please request a hard-copy version.  This message is provided for
informational purposes only.
our website at:

Wide Learning is a trading name of Wide Multimedia Ltd Registered office:
33-41 Dallington Street, London EC1V 0BB
Company number: 3339664 VAT number: 690 8399 83

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message