GeeCON Prague 2014*
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
Author

Pagination xml

Julia Johnson
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 61310
    
  66

What have you done so far?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Julia Johnson
Greenhorn

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
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

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: http://aspose.com/file-tools
 
subject: Pagination xml