You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Alex Romayev <ro...@yahoo.com> on 2002/09/18 09:14:04 UTC
Re: Pgination - Total # of pages
I've seen this happen when the last page has the
maximum number of allowed records per page, but I
haven't had a chance to confirm to report this as a
bug.
--- Richard <ri...@voxsant.com> wrote:
> Hi Guys,
>
> Have anybody encountered this...
>
> The total attribute under the page:page element is
> giving me a wrong value. Its giving me 4 instead of
> 3. see xml...
>
> <?xml version="1.0" encoding="UTF-8" ?>
> - <document xmlns:xsp="http://apache.org/xsp"
> xmlns:xspdoc="http://apache.org/cocoon/XSPDoc/v1"
> xmlns:esql="http://apache.org/cocoon/SQL/v2"
>
xmlns:xsp-request="http://apache.org/xsp/request/2.0"
> xmlns:page="http://apache.org/cocoon/paginate/1.0">
> - <header>
> <title>Voxsant's Employee Maintenance - Search
> Results</title>
> </header>
> - <body>
> - <employeeresults>
> - <record>
> <id>003</id>
> <firstname>Glenn</firstname>
> <lastname>Danzig</lastname>
> </record>
> - <record>
> <id>004</id>
> <firstname>Ted</firstname>
> <lastname>Nasmith</lastname>
> </record>
> </employeeresults>
> </body>
> - <page:page current="1" total="4"
>
current-uri="/cocoon/richard_webapps/results-employees(1).html"
>
clean-uri="/cocoon/richard_webapps/results-employees.html">
> <page:link type="next"
>
uri="/cocoon/richard_webapps/results-employees(2).html"
> page="2" />
> </page:page>
> </document>
>
>
> Thanks
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>