[Xsltforms-support] insert with origin works in xsltforms?
Brought to you by:
alain-couthures
From: Javier D. <jd...@ge...> - 2009-11-13 10:10:26
|
Hello, I am trying to use a xml template to insert new elements in a repeat structure using origin (as it can be seen in http://en.wikibooks.org/wiki/XForms/Insert_with_Origin) I mean, instead of (seen in a example of xsltforms): <xforms:action ev:event="DOMActivate"> <xforms:insert nodeset="transaction" position="after" at="last()"/> <xforms:setvalue ref="transaction[last()]/date" value="substring-before(now(), 'T')"/> <xforms:setvalue ref="transaction[last()]/amount" value="'0.00'"/> <xforms:setvalue ref="transaction[last()]/withdraw">true</xforms:setvalue> <xforms:setvalue ref="transaction[last()]/desc"/> </xforms:action> something like this: <xforms:action ev:event="DOMActivate"> <xforms:insert nodeset="transaction" position="after" at="last()" origin="instance('template')/transaction"/> </xforms:action> I haven't found any example with origin, so I'm not sure if it is possible to do this now with xsltforms... Best Regards, Javier |