Hi Guru,I have an order entry application retrieving data from sql2000 using templateswith xsl and stored procs. The data Im presenting needs to be grouped bycategory. What I would like to do is place each category into div tags anddisplay on request( There are only 4 categories). Im thinking that I needto be able to perform some sort of loop with comparisons on category cd.But Im new to xslt an dont know how.This is an example of the data:<item ss05_item_no="OS01" ss05_item_desc="Binder, 3 ring, vinyl, 2",Black" ss05_unit_of_measure="E/1" ss05_cat_cd="1"/><item ss05_item_no="OS02" ss05_item_desc="Binder, 3 ring, vinyl, 3",Black" ss05_unit_of_measure="E/1" ss05_cat_cd="1"/><item ss05_item_no="OS03" ss05_item_desc="Binder Clips, 1 1/4"" ss05_unit_of_measure="X/12"ss05_cat_cd="1"/><item ss05_item_no="OS04" ss05_item_desc="Glue Stick" ss05_unit_of_measure="E/1"ss05_cat_cd="1"/>I know, it's ugly data.... In a real scenario the ss05_cat_cd value variesfrom 1 - 4.I would like to group like categories into div tags which show and hide data.Thanks in advance,Ralph Carrasquillo