You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christian Joelly <ch...@knapp.com> on 2002/03/05 21:40:25 UTC

[C2] esql:group, esql:member

Hello!

has anybody sucessfully used esql:group/esql:member in C2?

i looked at the esql.xsl and the group and member templates are not in
that taglib. maybe they are not implemented?

thx, Chris

-- 
KNAPP Logistics Automation  http://www.knapp.com
Ing. Christian Jölly        Tel/FAX: (++43) 316 / 495 1926 / 495 394
Günter-Knapp-Straße 5-7     A-8075 Hart bei Graz


Re: [C2] esql:group, esql:member

Posted by Tim Myers <ph...@stserv.hcf.jhu.edu>.
Hey Torsten,

> > The other patch will allow looping to be controlled completely from
> > the outside of esql.  This just entails exposing "next-row" and is
> > "more rows?" functionality through the logic sheet.  Also, the
> > <esql:get-???> calls will have to be made available to descendents of
> > <esql:results> not just <row-results>
> 
> ...why would someone want to have ResultSet values *NOT* under
> row-results. That's exactly how JDBC does it and I couldn't think of any
> reason not to do it the same way...

Nobody would want to do that.  But they might want to control the 
looping structure that is row results rather than using <esql:row-results/>.

Entertaining example attached...  don't mind the _esql_query.keepgoing() it would be replaced with <esql:keep-going/>

So why not just use subqueries?   1 query vs. 30 query.

Stop me if it's FS.

Tim

Re: [C2] esql:group, esql:member

Posted by Torsten Curdt <tc...@dff.st>.
wait a minute....

> Hey Chris
>
> Just a heads up.  I'm going to submit two patches in the near future
> for esql. One is to fix the footer behavior-- since the footer occurs
> after the comparison, if you put an <esql:get-???> in the footer it
> returns data for the next row.  it should return data for the most
> recent row.

not quite sure about this one.... don't know what you mean by footer

> The other patch will allow looping to be controlled completely from
> the outside of esql.  This just entails exposing "next-row" and is
> "more rows?" functionality through the logic sheet.  Also, the
> <esql:get-???> calls will have to be made available to descendents of
> <esql:results> not just <row-results>

But...

...why would someone want to have ResultSet values *NOT* under
row-results. That's exactly how JDBC does it and I couldn't think of any
reason not to do it the same way...
--
Torsten


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


Re: [C2] esql:group, esql:member

Posted by Tim Myers <ph...@stserv.hcf.jhu.edu>.
Hey Chris

Just a heads up.  I'm going to submit two patches in the near future for esql.
One is to fix the footer behavior-- since the footer occurs after the comparison, if you put an <esql:get-???> in the footer it returns data for the next row.  it should return data for the most recent row.

The other patch will allow looping to be controlled completely from the outside of esql.  This just entails exposing "next-row" and is "more rows?" functionality through the logic sheet.  Also, the <esql:get-???> calls will have to be made available to descendents of <esql:results> not just <row-results>

Look for the patches in bugzilla sometime this week.

Tim

On Tue, Mar 05, 2002 at 09:55:20PM +0100, Christian Haul wrote:
> On 05.Mar.2002 -- 09:40 PM, Christian Joelly wrote:
> > Hello!
> > 
> > has anybody sucessfully used esql:group/esql:member in C2?
> > 
> > i looked at the esql.xsl and the group and member templates are not in
> > that taglib. maybe they are not implemented?
> 
> Perhaps you looked at the wrong version? It should be contained in Cocoon
> 2.0.1 and above. It certainly is contained in HEAD.
> 
> 	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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>

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


Re: [C2] esql:group, esql:member

Posted by Christian Joelly <ch...@knapp.com>.
Hello!

On Tue, Mar 05, 2002 at 09:55:20PM +0100, Christian Haul wrote:
> On 05.Mar.2002 -- 09:40 PM, Christian Joelly wrote:
> > has anybody sucessfully used esql:group/esql:member in C2?
> > i looked at the esql.xsl and the group and member templates are not in
> > that taglib. maybe they are not implemented?
> 
> Perhaps you looked at the wrong version? It should be contained in Cocoon
> 2.0.1 and above. It certainly is contained in HEAD.

hmmm, it seems that "my version"[tm] of c2 is always too old... ;-)

thx, Chris

-- 
KNAPP Logistics Automation  http://www.knapp.com
Ing. Christian Jölly        Tel/FAX: (++43) 316 / 495 1926 / 495 394
Günter-Knapp-Straße 5-7     A-8075 Hart bei Graz


Re: [C2] esql:group, esql:member

Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
On 05.Mar.2002 -- 09:40 PM, Christian Joelly wrote:
> Hello!
> 
> has anybody sucessfully used esql:group/esql:member in C2?
> 
> i looked at the esql.xsl and the group and member templates are not in
> that taglib. maybe they are not implemented?

Perhaps you looked at the wrong version? It should be contained in Cocoon
2.0.1 and above. It certainly is contained in HEAD.

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