xsl-list
[Top] [All Lists]

merging the contents of consecutive duplicate elements

2005-10-17 15:36:00
Hello list,
 
I haven't found this in the archives. I have XML that can contain
duplicate, consecutive elements with different contents, for example:
 
<info>
      <para>text A </para>
      <note>note A </note>
 </info>
 <info>
      <para>text B</para>
      <note>note B</note>
      <para>text C</para>
  </info>
 
Is there a way to do the following:
 
merge the contents of the duplicate elements into a single info element,
for example:
 
<info>
    <para>text A</para>
    <note>note A</note>
    <para>text B</para>
    <note>note B</note>
    <para>text C</para> 
</info>
 
Thanks,
 
Ann Marie
 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>