[Xsltforms-support] Inserting into empty node set
Brought to you by:
alain-couthures
From: sores <so...@al...> - 2012-06-01 13:36:40
|
Dear All, Is there any way to control the insert location within a parent node set given by the context attribute? I am trying to insert elements into an empty repeat. Elements are inserted after the last child of the context node set, but I need them somewhere else for validation. Please, see the XForms file attached. Example: instance data: <root> <ch1/> <ch2/> <ch4/> </root> output after editing: <root> <ch1>aa</ch1> <ch2>bb</ch2> <ch4>dd</ch4> <ch3>cc1</ch3> <ch3>cc2</ch3> </root> I would prefer the output like this: <root> <ch1>aa</ch1> <ch2>bb</ch2> <ch3>cc1</ch3> <ch3>cc2</ch3> <ch4>dd</ch4> </root> If input contains <c3/> elements at the right location, it works fine. Any help would be appreciated. Regards, Laszlo Sores |