Subject: [xsl] Is this a grouping task? From: "Rick Quatro rick@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 22 Oct 2019 18:07:20 -0000 |
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/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Suggestion for handling a, Michael Kay mike@xxx | Thread | Re: [xsl] Is this a grouping task?, Martin Honnen martin |
Re: [xsl] Suggestion for handling a, Michael Kay mike@xxx | Date | Re: [xsl] Is this a grouping task?, Martin Honnen martin |
Month |