[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: 2 level grouping
Google "Muenchian method". -- Charles Knell cknell@xxxxxxxxxx - email -----Original Message----- From: Jeroen Janssen <jeroen@xxxxxxxx> Sent: Thu, 26 Jun 2003 15:41:04 +0200 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: 2 level grouping I have a problem that I have been trying to find the solution for for quite a while, but frankly it's a bit too complicated for my limited xsl skills, maybe someone on this list can point me in the right direction. I have something like this: <items> <item month="5" year="2003"/> <item month="5" year="2003"/> <item month="4" year="2003"/> <item month="3" year="2003"/> <item month="2" year="2003"/> <item month="1" year="2003"/> <item month="12" year="2002"/> <item month="11" year="2002"/> <item month="10" year="2002"/> <item month="9" year="2002"/> </items> And as a result I would like a list of all the months and all the years, with no duplicates. Something like this: 5/2003 4/2003 3/2003 2/2003 1/2003 5/2002 ect. you get the idea... Now if it was just the months I could (with a little help from google) write an xsl that would work. But the years make it much more complicated. Hopefully I'm making myself clear here... XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|