Creating XSLT for Group Data

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<p style=" I have a XML Data like below :
<pre style=" <code style="vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; padding:0px; margin:0px; border:0px initial initial <span style="vertical-align:baseline; background-color:transparent; color:#800000; padding:0px; margin:0px; border:0px initial initial <data<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <span style="vertical-align:baseline; background-color:transparent; color:#ff0000; padding:0px; margin:0px; border:0px initial initial ItemCount<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial =<span style="vertical-align:baseline; background-color:transparent; color:#0000ff; padding:0px; margin:0px; border:0px initial initial "5"<span style="vertical-align:baseline; background-color:transparent; color:#800000; padding:0px; margin:0px; border:0px initial initial ><span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <br/><span style="vertical-align:baseline; background-color:transparent; color:#800000; padding:0px; margin:0px; border:0px initial initial <zrow<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <span style="vertical-align:baseline; background-color:transparent; color:#ff0000; padding:0px; margin:0px; border:0px initial initial GroupName<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial =<span style="vertical-align:baseline; background-color:transparent; color:#0000ff; padding:0px; margin:0px; border:0px initial initial "Manager"<span style="vertical-align:baseline; background-color:transparent; color:#ff0000; padding:0px; margin:0px; border:0px initial initial User<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial =<span style="vertical-align:baseline; background-color:transparent; color:#0000ff; padding:0px; margin:0px; border:0px initial initial "User1"<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <span style="vertical-align:baseline; background-color:transparent; color:#800000; padding:0px; margin:0px; border:0px initial initial /><span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <br/><span style="vertical-align:baseline; background-color:transparent; color:#800000; padding:0px; margin:0px; border:0px initial initial <zrow<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <span style="vertical-align:baseline; background-color:transparent; color:#ff0000; padding:0px; margin:0px; border:0px initial initial GroupName<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial =<span style="vertical-align:baseline; background-color:transparent; color:#0000ff; padding:0px; margin:0px; border:0px initial initial "Developer"<span style="vertical-align:baseline; background-color:transparent; color:#ff0000; padding:0px; margin:0px; border:0px initial initial User<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial =<span style="vertical-align:baseline; background-color:transparent; color:#0000ff; padding:0px; margin:0px; border:0px initial initial "User2"<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <span style="vertical-align:baseline; background-color:transparent; color:#800000; padding:0px; margin:0px; border:0px initial initial /><span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <br/><span style="vertical-align:baseline; background-color:transparent; color:#800000; padding:0px; margin:0px; border:0px initial initial <zrow<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <span style="vertical-align:baseline; background-color:transparent; color:#ff0000; padding:0px; margin:0px; border:0px initial initial GroupName<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial =<span style="vertical-align:baseline; background-color:transparent; color:#0000ff; padding:0px; margin:0px; border:0px initial initial "Manager"<span style="vertical-align:baseline; background-color:transparent; color:#ff0000; padding:0px; margin:0px; border:0px initial initial User<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial =<span style="vertical-align:baseline; background-color:transparent; color:#0000ff; padding:0px; margin:0px; border:0px initial initial "User3"<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <span style="vertical-align:baseline; background-color:transparent; color:#800000; padding:0px; margin:0px; border:0px initial initial /><span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <br/><span style="vertical-align:baseline; background-color:transparent; color:#800000; padding:0px; margin:0px; border:0px initial initial <zrow<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <span style="vertical-align:baseline; background-color:transparent; color:#ff0000; padding:0px; margin:0px; border:0px initial initial GroupName<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial =<span style="vertical-align:baseline; background-color:transparent; color:#0000ff; padding:0px; margin:0px; border:0px initial initial "CEO"<span style="vertical-align:baseline; background-color:transparent; color:#ff0000; padding:0px; margin:0px; border:0px initial initial User<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial =<span style="vertical-align:baseline; background-color:transparent; color:#0000ff; padding:0px; margin:0px; border:0px initial initial "User4"<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <span style="vertical-align:baseline; background-color:transparent; color:#800000; padding:0px; margin:0px; border:0px initial initial /><span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <br/><span style="vertical-align:baseline; background-color:transparent; color:#800000; padding:0px; margin:0px; border:0px initial initial <zrow<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <span style="vertical-align:baseline; background-color:transparent; color:#ff0000; padding:0px; margin:0px; border:0px initial initial GroupName<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial =<span style="vertical-align:baseline; background-color:transparent; color:#0000ff; padding:0px; margin:0px; border:0px initial initial "CEO"<span style="vertical-align:baseline; background-color:transparent; color:#ff0000; padding:0px; margin:0px; border:0px initial initial User<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial =<span style="vertical-align:baseline; background-color:transparent; color:#0000ff; padding:0px; margin:0px; border:0px initial initial "User5"<span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <span style="vertical-align:baseline; background-color:transparent; color:#800000; padding:0px; margin:0px; border:0px initial initial /><span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <br/><span style="vertical-align:baseline; background-color:transparent; color:#800000; padding:0px; margin:0px; border:0px initial initial </data><span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial <br/>[/code][/code]
<p style=" I want output like below :
<pre style=" <code style="vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; padding:0px; margin:0px; border:0px initial initial <span style="vertical-align:baseline; background-color:transparent; padding:0px; margin:0px; border:0px initial initial Manager<br/><br/>User1<br/><br/>User3<br/><br/>Developer<br/><br/>User2<br/><br/>CEO<br/><br/>User4<br/><br/>User5<br/>[/code][/code]
<p style=" What should be my XSLT?? I want to create an XSLT which should transform my data in above format. Could you please help generating one?
<p style=" Thanks <hr class="sig https://twitter.com/#!/NaimishPandya @NaimishPandya | mailto:pandya.naimish@hotmail.com
Email | http://www.linkedin.com/in/naimishpandya LinkedIn | http://naimishpandya.wordpress.com/
My Blog

View the full article
 
Back
Top