I need to merge two similar xml files, but only records which match on common tags, e.g.<type>
in the following example:
file1.xml is
<node>
<type>a</type>
<name>joe</name>
</node>
<node>
<type>b</type>
<name>sam</name>
</node>
file2.xml is
<node>
<type>a</type>
<name>jill</name>
</node>
so that I have an output of
<node>
<type>a</type>
<name>jill</name>
<name>joe</name>
</node>
<node>
<type>b</type>
<name>sam</name>
</node>
What are the basics of doing this, in xsl?
Many thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…