On 17.May.2002 -- 06:14 PM, Torsten Curdt wrote:
> On Friday 17 May 2002 16:34, Christian Haul wrote:
> > On 17.May.2002 -- 02:31 PM, Christian Haul wrote:
> > > On 17.May.2002 -- 12:23 PM, Torsten Curdt wrote:
> > > I would nest if(hasResultSet) into the switch statement. We would want
> > > to have multiple no-results / update-results blocks for each result,
> > > wouldn't we??
> >
> > OK, did your way since the XSL is simpler ;-)
>
> ok
>
> > Anyway, I've put the code into HEAD - please check. I'm off
> > 'till Wednesday so if I did break anything you'll have to live with it
> > 'till then or fix it ;-)
>
> will do - guess I already found somehting...
>
> the switch() should not use the getResultCount because of this:
>
> getResultCount but position() of result
> result 1 1
> update-result 2 -
> result 3 2
>
> we need the incrementing varibale as I proposed...
> but that's not a major biggy to fix ;-)
Torsten, my intention was to keep that var inside EsqlQuery and access
it via getResultCount(). It is incremented with every call to getMoreResults()
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]>