| Subject: [xsl] merging multiple xml files From: RPeterson@xxxxxxxxxxxxxx Date: Wed, 4 Jun 2003 14:36:08 -0500 | 
I have multiple xml files that I wish to merge. An example of the files is
below.  Note that a file
may contain thousands of <detail> nodes.  I want to merge them so that the
clients are grouped together
I have been using a master xml file to try and merge but with no success in
keeping the clients together.
Also, due to the size of the files, is using xsl:copy and xsl:copy-of the
best way to approach this.
Thanks
.
<masterfile>
      <doc filename="file1.xml"/>
      <doc filename="file2.xml"/>
      <doc filename="file3.xml"/>
</masterfile>
<client>
      <name>A</name>
      <subclient>
            <name>a</name>
            <detail>....</<detail>
            <detail>....</<detail>
      </subclient>
</client>
<client>
      <name>A</name>
      <subclient>
            <name>b</name>
            <detail>....</<detail>
            <detail>....</<detail>
      </subclient>
</client>
<client>
      <name>B</name>
      <subclient>
            <name>c</name>
            <detail>....</<detail>
            <detail>....</<detail>
      </subclient>
</client>
<merged>
      <client>
            <name>A</name>
            <subclient>
                  <name>a</name>
                  <detail>....</<detail>
                  <detail>....</<detail>
            </subclient>
            <subclient>
                  <name>b</name>
                  <detail>....</<detail>
                  <detail>....</<detail>
            </subclient>
      </client>
      <client>
            <name>B</name>
            <subclient>
                  <name>c</name>
                  <detail>....</<detail>
                  <detail>....</<detail>
            </subclient>
      </client>
</merged>
 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] How to sort Using Dom and, Malcolm Macaulay | Thread | Re: [xsl] merging multiple xml file, G. Ken Holman | 
| Re: [xsl] How to sort Using Dom and, Rick Taylor | Date | Re: [xsl] importing/including a sty, florian | 
| Month |