Originally posted by Himanshu Jhamb:
I want my XSL to work on tags Lv1Tag1, Lv1Tag2, Lv1Tag3 and transform the above to:
<TopLevelTag>
<Level1>
<Lv1Tag1/>
</Level1>
<Level1>
<Lv1Tag2/>
</Level1>
<Level1>
<Lv1Tag3/>
</Level1>
</TopLevelTag>
I tried thinking of using <xsl:for-each> but could not think up a solution. Tried exploring the internet for XPATH options available, but to no avail.
So, how far did you go with your ideas.....
Please post your style sheet so we know where to start.
I don't want to do all the homework for you.
Thanks.
- m
Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81