xforms:repeat problem in xforms:setvalue.

Posted by Laxmi Narayana-3 on
URL: https://discuss.orbeon.com/xforms-repeat-problem-in-xforms-setvalue-tp1574854.html

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