cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Enke Michael <Michael.E...@wincor-nixdorf.com>
Subject Re: Re: Error correction for esql.xsl
Date Tue, 08 Jan 2002 11:36:09 GMT
Hi Torsten,
you have forgotten to insert one line:
_esql_query.setKeepGoing(false);

If this line is missing the last DB entry will be repeated infinitely.

Michael



Torsten Curdt wrote:
> 
> On Mon, 7 Jan 2002, Enke Michael wrote:
> 
> > Hi committer,
> > this doesn't work because the last but one is repeated nonterminating:
> >
> > <xsl:template name="nextRow">
> >   //checking out early?
> >     if (_esql_query.getMaxRows() != -1 &amp;&amp; _esql_query.getCurrentRow()
- _esql_query.getSkipRows() == _esql_query.getMaxRows() - 1 ) {
> >     } else {    //if not, advance normally
> >       _esql_query.setKeepGoing( _esql_query.nextRow() );
> >     }
> > </xsl:template>
> >
> > please replace with:
> >
> > <xsl:template name="nextRow">
> >   //checking out early?
> >     if (_esql_query.getMaxRows() != -1 &amp;&amp; _esql_query.getCurrentRow()
- _esql_query.getSkipRows() == _esql_query.getMaxRows() ) {
> >       _esql_query.setKeepGoing(false);
> >     } else {    //if not, advance normally
> >       _esql_query.setKeepGoing( _esql_query.nextRow() );
> >     }
> > </xsl:template>
> 
> added this to my ToDo list for today.
> 
> Thanks!
> --
> Torsten
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message