Hi All,
I have multiple title nodes in template-instance. If I use xforms:repeat to set all title nodes to dummy node which is availble in main-instance on click of submit button, It is not setting anyof the title node values.
If I use xsl:for-each instead of xforms:repeat , It is working fine but I can't use template-instance in xsl:for-each.
Please help me how to set all title nodes from template-instance to dummy node in main-instance on click of submit button?
//Submit button code
<xforms:group>
<xforms:action ev:event="DOMActivate">
<xforms:setvalue ref="instance('main-instance')/dummy">
<xforms:repeat nodeset="instance('template-instance')//record"> <xforms:output value="title"/>; </xforms:repeat> </xforms:setvalue> <xforms:send submission="reply-send-email"/>
</xforms:action>
<xforms:trigger appearance="minimal">
</xforms:trigger>
</xforms:group>
my template-instance is as below:
<xforms:instance id="template-instance">
<template xmlns=""> <record> <title>nnnn</title>
</record>
<record>
<title>nnnn</title>
</record> </template>
</xforms:instance> my main-instance is as below: <xforms:instance id="main-instance">
<instance xmlns=""> <dummy/> </instance > </xforms:instance> -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi Laxmi,
> I have multiple *title* nodes in *template-instance.* If I use > *xforms:repeat* to set all *title* nodes to *dummy* node which is > availble in *main-instance* on click of submit button*,* It is not > setting anyof the *title* node values*.* > > If I use xsl:for-each instead of xforms:repeat , It is working fine but > I can't use template-instance in *xsl:for-each.* > ** > Please help me how to set all *title* nodes from *template-instance > *to* dummy* node in *main-instance* on click of submit button? of the template instance and set their value to the value of instance('main-instance')//dummy? I think the xxforms:iterate attribute can be helpful here: http://www.orbeon.com/orbeon/doc/reference-xforms-extensions#exforms-iterate <xforms:action ev:event="DOMActivate" xxforms:iterate="instance('template-instance')/record/title"> <xforms:setvalue ref="context()" value="instance('main-instance')/dummy"/> </xforms:action> HTH florian -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |