View Single Post
  #2 (permalink)  
Old June 3rd, 2008, 06:10 PM
mhkay's Avatar
mhkay mhkay is offline
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

>Plz dont provide me the links apart from solution

Don't be impertinent. You'll get what you're given. Beggars can't be choosers.

The problem you describe is known as "grouping". In XSLT 2.0, use the xsl:for-each-group instruction. In XSLT 1.0, use the Muenchian grouping coding pattern. You will find both described in any XSLT textbook and on many tutorial sites: just google.

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