Hallo!
Ich suche mit XSLT eine Vergleich/Update-Routine.
file1:
<?xml version="1.0" encoding="utf-8"?>
<Root>
<Element id="1">
file 1 --- Inhalt 1
</Element>
<Element id="3">
file 1 --- Inhalt 3
</Element>
<Element id="4">
file 1 --- Inhalt 4
</Element>
</Root>
file2:
<?xml version="1.0" encoding="utf-8"?>
<Root>
<Element id="1">
file 2 --- Inhalt 1
</Element>
<Element id="2">
file 2 --- Inhalt 2
</Element>
</Root>
Durch XSLT erzeugter Output:
<?xml version="1.0" encoding="UTF-8"?>
<Root>
<Element id="1">
file 1 --- Inhalt 1
file 2 --- Inhalt 1
</Element>
<Element id="2">
file 2 --- Inhalt 2
<flag nur-in="file2"/>
</Element>
<Element id="3">
file 1 --- Inhalt 3
<flag nur-in="file1"/>
</Element>
<Element id="4">
file 1 --- Inhalt 4
<flag nur-in="file1"/>
</Element>
</Root>
Die Frage ist: welche XSL-Datei erzeugt mittels file1 und file2 diesen Output?
Puntila