I have some XML files and I need to edit them automatically.
For example
<Content>
<Texts>
<Text id="1">
<en value="blaabla" />
</Text>
<Text id="2">
<en value="blablablablal" />
</Text>
</Texts>
</Content>
I need to copy “en value” lines and add these lines to their under line but with one change.
So when processing done, result should be that:
<Content>
<Texts>
<Text id="1">
<en value="blablabla" />
<fr value="blablabla" />
</Text>
<Text id="2">
<en value="blablablablal" />
<fr value="blablablablal" />
</Text>
</Texts>
</Content>
You could use this XSLT to transform your XML files: