[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Is this a grouping task?
Hi All, Here is my input document: <root> <topic id="idm140322603719792"> <chgdesc revnbr="42">Content</chgdesc> <title line-break="0">Content</title> <revst/> <para>Content</para> <revend/> <para>Content</para> <revst/> <note> <para>Content</para> </note> <revend/> <para>Content</para> <revst/> <para>Content</para> <para>Content</para> <revend/> </topic> </root> In my output, I need to add an attribute to the sibling elements between the <revst> and <revend> elements. Here is the desired output: <root> <topic id="idm140322603719792"> <chgdesc revnbr="42">Content</chgdesc> <title line-break="0">Content</title> <para rev="changed">Content</para> <para>Content</para> <note rev="changed"> <para>Content</para> </note> <para>Content</para> <para rev="changed">Content</para> <para rev="changed">Content</para> </topic> </root> I am using XSLT 2 and think this may require a for-each-group solution. Any advice would be appreciated. Thank you very much. Rick Rick Quatro Carmen Publishing Inc. rick@xxxxxxxxxxxxxxx 585-729-6746 www.frameexpert.com/store/
|
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
|