On 25.Apr.2002 -- 09:25 AM, Hahn Kurt (CHA) wrote:
> I'm developing a Cocoon application wich produces PDF files from a file
> which is generated by a DB access (Oracle). The problem is the query: The
> results I should get looks like this:
> 
> <row>
> <field1>text</field1>
> ...
> <fieldN>text</fieldN>
> <field1FromSecondSelect>text</field1FromSecondSelect>
> ...
> <fieldNFromSecondSelect>text</fieldNFromSecondSelect>
> </row>

You are not be any chance talking about nesting another query inside
the first? If so, why don't you just try it ? ;-)

<esql:execute-query>
  ...
  <esql:row-results>
     
         <esql:execute-query>
                ....
         </esql:execute-query>

  </esql:row-results>
<esql:execute-query>


Can't remember off hand if you need <esql:connection> for your
subquery.

Access values from outer query by using attribute ancestor="1" or
however deep it's nested (e.g. <esql:get-string column="name" ancestor="1"/>)

Or try the grouping stuff (documented on user guide -> XSP -> ESQL)

        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/faqs.html>

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

Reply via email to