Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 26th, 2007, 02:51 AM
Authorized User
 
Join Date: Oct 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Apply Paging on Grouped Data

Hi All,

I have used 3 level grouping using keys in my XSLT code.. And now I wish to implement paging on this data.. Can anyone please suggest me a way to do this...

Thanks and Regards,
Jhansi
__________________
Thanks and Regards,
Jhansi
 
Old November 26th, 2007, 06:05 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

It sounds more like you need some kind of user interface/programming solution, which is not really what XSLT is for, it simply transforms from one format to another.

There might be a javascript solution to problem, but I would usually do this server side in ASP.Net, and hence probably not be using XSLT in the first place. I suspect a client only solution would be more trouble that its worth.



/- Sam Judson : Wrox Technical Editor -/
 
Old November 26th, 2007, 11:36 AM
Authorized User
 
Join Date: Oct 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Sam,
       I m using a method for paging where I m passing the page number as a query string in the page...but it only works for non grouped data...if its working also,its considering the number of records per page as a one group..So I m able to display one group in one page..for example if i give the number of records per page as 3, it displays 3 groups in a page ....

Thanks and Regards,
Jhansi
 
Old November 26th, 2007, 01:01 PM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

I assume this is because you are using some query involving the position() function?

Have you considered using the <xsl:number> declaration instead?

/- Sam Judson : Wrox Technical Editor -/
 
Old November 26th, 2007, 01:30 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

I think you have to treat this as a 2-phase transformation

(a) do the grouping and capture the results in a variable

(b) do the paging on the contents of that variable.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Paging Data grid view Prakash001 Visual Basic 2005 Basics 0 February 6th, 2008 04:07 AM
paging through data - Data Access Objects fedoracore PHP Databases 0 November 28th, 2006 07:54 PM
Paging and Data base connectivity nicesukhi ASP.NET 2.0 Basics 1 August 2nd, 2006 09:33 AM
Apply Custom template & import data from text file shampabera Excel VBA 2 August 8th, 2005 07:41 AM
Averaging Grouped Data Andy Hodges SQL Language 1 April 6th, 2004 09:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.