File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Pagination xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Pagination xml" Watch "Pagination xml" New topic

Pagination xml

Julia Johnson

Joined: Mar 11, 2012
Posts: 3
Hello everybody!
Please, advise me something in my problem. I have an xml file with 2000 records and i need to display data on 20 records per sheet.
Thank you!
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

What have you done so far?

[Asking smart questions] [About Bear] [Books by Bear]
Julia Johnson

Joined: Mar 11, 2012
Posts: 3
I have been studying xslt, but i can't understand how to apply it for pagination. There are no id in xml file.
I'm trying read xml by stax and output data in browser, but all data are displayed.
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

I would parse the 2000 "records" in the XML (whatever they might be) into 2000 plain old Java objects and use ordinary pagination methods to display them.

XSLT would be a long way down the list of technologies I would choose for that.
I agree. Here's the link:
subject: Pagination xml
It's not a secret anymore!