Answer: Use XSL to "search and replace" between two XML files

R

Rolf Kemper

Hi Luke,

for any reason answering your mail in the usual way did not work yet.
However, if I undestood it right you have the problem of overwriting
values in case they exist in a second xml. I had a similar problem
which could be solved by union.

So may be you can create something like this

<xsl:variable "myMerge" select="($nodeset1[some predicate] |
$nodeSet2[some predicate])[last()]"/>

This worked for me on a single value. May be it works also if
$nodesetX[some predicate] describes more than one value.

HTH,

Rolf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top