[Xsltforms-support] Context() in insert with origin.
Brought to you by:
alain-couthures
From: Mark L. <tin...@gm...> - 2015-04-06 22:54:56
|
Hi, I'm using an insert inside an action that's inside an xf:repeat. What it's meant to do is insert a new copy of the current node as a sibling. like so: <xf:action ev:event="xforms-value-changed"> <xf:insert context="context()/.." at="last()" position="after" origin="context()" /> The problem is that context() returns the node I'm currently working with in all cases but when I use it in origin. In that case it's returning the parent of the current node. The background to this is I'm logging control changes, and using insert as a way to get event context to an observer, so ideally I need the origin of the insert to be generic. Rgds, Mark Lawson |