W3C home > Mailing lists > Public > www-talk@w3.org > March to April 2001

XML problem

From: Mukul Gandhi <mukulw3@yahoo.com>
Date: Wed, 25 Apr 2001 05:31:30 -0700 (PDT)
Message-ID: <20010425123130.24488.qmail@web6305.mail.yahoo.com>
To: www-talk@w3.org
Hi ,
I have 2 xml files.

<employee id="100">
<employee id="101">
<employee id="102">

<employee id="100">

Pl note that for <employee id="100"> , <Dept> is
different in 2 files. Rest everything is same. id
attribute in empl2.xml can be any id value from
empl1.xml(but its dynamic). empl1.xml can have any no
of <employee> entries with different id values. But
empl2.xml will have only 1 <employee> entry and
<Name>, <Dept> and <Title> in it can be different from
the corresponding ones in empl1.xml(based on matching
id). I want to write a XSL stylesheet which merges
these 2 XML documents. For a matching <employee> entry
in both files(based on id), the resulting XML document
will have <Name>, <Dept> and <Title> modified
according to that in 2nd file but rest of <employee>
entries should be same(from empl1.xml).

Any help on this problem will be much appreciated.


Siemens Information Systems Ltd 
Tower (B), Plot 6A, Sector-18
HUDA Area, Gurgaon
Haryana -122 015, India

Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
Received on Wednesday, 25 April 2001 08:31:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:57:29 UTC