XSLTGeneral 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .

Hi Michael:
Thank you so much for quick help however my problem is DataSet will be multiple in a single file and we need to handle context as well as correct data should be populated for example i have corrected the entire input and output structure. May I request you to please help me here.

It is hard to understand your completely unindented input and output samples but I think you can use for-each-group, as already suggested (of course assuming you use an XSLT 2 or 3 processor like Saxon 9 or Altova 2017/18/19):