I have two files. (1) client.xml and (2) server.xml.
I need to merge server.xml and client.xml. client.xml contains client specific information and server.xml contains newely added attributes.
For example client.xml looks like
Client.xml
-----------
<context-param>
<debugLevel>warning</debugLevel>
<logFile>../../logs/servlet.log</logFile>
<patternLayout>%d [%l] %-5p %c %x - %m%n</patternLayout>
</context-param>
server.xml
------------
<context-param>
<debugLevel>info</debugLevel>
<logFile>servlet.log</logFile>
<patternLayout>a~z</patternLayout>
<!-- Value determines how many records are returned on the
query pages if Records Per Page is left blank. "ALL"
keyword is used to return all records-->
<recordsPerPage>ALL</recordsPerPage>
<gatePin>4</gatePin>
</context-param>
After merging the two files, the merged file should look like
result.xml
------------
<context-param>
<debugLevel>warning</debugLevel>
<logFile>../../logs/servlet.log</logFile>
<patternLayout>%d [%l] %-5p %c %x - %m%n</patternLayout>
<!-- Value determines how many records are returned on the
query pages if Records Per Page is left blank. "ALL"
keyword is used to return all records-->
<recordsPerPage>ALL</recordsPerPage>
<gatePin>4</gatePin>
</context-param>
I am attaching client.xml, server.xml and the result.xml, so kindly help me to design an XSLT for my requirement.
Thanks a bunch
Murali
client.xml Client.xml
server.xml server.xml
result.xml result.xml
|