www.webdeveloper.com
Results 1 to 3 of 3

Thread: paging

  1. #1
    Join Date
    Oct 2003
    Posts
    1

    paging

    I have a huge xml file wich I want to split up when displayed in browser. is there a way to first count all entries in the xml and than display i.e 10 each time. i would prefer to generate the whole xml each time - and maybe use javascript to control wich part thyat are displayed.......

    anyone?

    thanks

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,119
    What do you meant by displaying the elements,

    If you are trying to split XML document into separate chunks of completely independant XML document,then JavaScript will not help.
    You will need to use some other programming language to parse the document and creae completely independent XML documents( you can use XSL/XSLT for this purpose as well)

    If you wanted to display a specific number of elements in text mode in a page ? yes then youi can use JavaScript for this purpose.
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

  3. #3
    Join Date
    Sep 2003
    Location
    Australia
    Posts
    37
    carrying Khalid's suggestion forward, in ur xslt u can use the xpath function count() to find out the total number of elements and then for-each through them....

    HTH

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles