blob: 605783d892343e599ec15ba722661dccafdb66bb [file] [log] [blame]
rule N2N
transform s : In!t_n
to t : Out!t_n {
t.a_label = s.a_label;
if (s == In.root) {
Out.root = t;
}
else {
s.parentNode.equivalent().appendChild(t);
var copy = new Out!t_n;
copy.a_label = s.a_label + "_copy";
s.parentNode.equivalent().appendChild(copy);
}
}