You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Enke Michael <Mi...@wincor-nixdorf.com> on 2002/01/07 11:37:17 UTC

Error correction for esql.xsl

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>

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


Re: Re: Error correction for esql.xsl

Posted by Torsten Curdt <tc...@dff.st>.
On Tue, 8 Jan 2002, Enke Michael wrote:

> 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

Thanks!

Fixed it. Maybe you could send a "diff -u" patch next time, please?!
Will prevent such mistakes...
--
Torsten


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


Re: Re: Error correction for esql.xsl

Posted by Enke Michael <Mi...@wincor-nixdorf.com>.
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


Re: Error correction for esql.xsl

Posted by Torsten Curdt <tc...@dff.st>.
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