the existing code (posted above) displays the results based on the parameters put in. This all works fine.
The thing that is missing is the XSL code to paginate the results.
Pagination is when you split the results into pages and have links like "Previous, Next, page 1, page 2, page 3, page...