• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

paging using xsl

 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am tring to do paging of my large XML files when displaying it in the browser(like first 10, next 10...onward).without making multiple hits to database.just like the search results are displayed on the search engines with previous and next links .
Currently i am using servlet and xsl to render the xml on the
web page .Is it possible to page my search results using XSL.
please let me know if you have any idea/code sample .
thanks
kripal
 
Leverager of our synergies
Posts: 10065
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was browsing through mulberrytech xsl-list and spotted Steve Muench's post "Re: Paging using XSLT" (00/11/01) - maybe it will help.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Mr.kripal
I am working on paging using xsl. and i found on
internet that u were also working on the same problem before .
Have u solved it ..
if yes then plz send me example code of it .
mail me at manishporwal@hotmail.com
waiting for ur reply
Regds
Manish

Originally posted by Kripal Singh:
Hi,
I am tring to do paging of my large XML files when displaying it in the browser(like first 10, next 10...onward).without making multiple hits to database.just like the search results are displayed on the search engines with previous and next links .
Currently i am using servlet and xsl to render the xml on the
web page .Is it possible to page my search results using XSL.
please let me know if you have any idea/code sample .
thanks
kripal


 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Even I am facing the same problem. If anybody gets the solution please mail it on this forum. Thank you.
Regards,
Ashish Agrawal.
 
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
manishporwal
Welcome to the Java Ranch, we hope you�ll enjoy visiting as a regular however, your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy.
Thanks again and we hope to see you around the ranch!!
 
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use <xsl:for-each> and position() function to display only the records that fall into your pagination range, say 1-100, 101-200 etc. To avoid repeated DB access, you ahve to save your XML file somewhere in some form. Make sure your data doesn't change that much, or user will be looking at non-real time data. Try to save xml in somesort of raw data format to save memory space.
reply
    Bookmark Topic Watch Topic
  • New Topic