Hi,
In the example you give, I don’t think anything significant is lost in the first transformation, so the transformation appears to be completely reversible. For example:
id → number;
number → id;
name\firstname + name\lastname → name
name → name\firstname + name\lastname
[which are always separated by a single space].
So it should always be possible to reconstruct the orginal xml from the new xml in this example case.
If your real transformation loses information which is significant, you could preserve the original data as comments or cdata in the output xml. This has already been discussed in your other posts so I won’t cover it again here.
Alternatively you could keep a copy of the original xml in a separate doctype or file, linked to the new doctype by some ‘primary key’ value (such as ‘id’).
I hope this helps.
[This message was edited by Bill Leeney on 07 January 2005 at 10:18.]
#Tamino#API-Management#webMethods