Xsl sort

I have a way of sorting data from XML files using a XSL template. It sorts it just right, but how can I page the results. Like every 10 results a new page is generated with sorted results? I did this from a book and googled it and can’t find the answer. If any of you have read it, its from No Nonsense XML Web Development. Im trying to customize the scripts to my needs.

Thanks in advance,

Leo