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

Attachment: asd.xhtml
Description: application/xhtml

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to