Hi,
I'm having trouble finding out how to don't lose the attributes of my generated elements.
I'm new to QVT operational, I'm trying to remake a script I did in QVT relations with mediniQVT but I feel this is not so going good...
I'm no good programmer at all, and all I did in the code was using my imagination, hope I'm not doing huge mistakes...the thing is that some of the generated elements (operative units and products by now)are losing their names and other attributes and I don't understand why
Here's the code in QVTo:::

Thank you very much this totally helped me!!!
Got another question... Sorry

If I execute the transformation repeatedly it doesnt replace the existing target model, instead places a "sibling" model...
Got any idea?
Red should replace Blue, instead it allocates right next to it... don't know why...at the end the code used right now.