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.......
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.
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....
Bookmarks