xforms:setvalue is not setting more than one value with <xforms:action ev:event="xforms-value-changed">

Hi,
I want to find out if any of the form data is changed , so I kept my code inside <xforms:group model="main-model">
-------------
----------- xforms:controls.......
--------

<xforms:action ev:event="xforms-value-changed">
<xforms:setvalue ref="instance('main-instance')/records/status" value="instance('main-instance')/node1"/>
</xforms:group>
It is working fine.
But when I tried to as follows giving more than one values with in xforms:setvalue It is takin nullvalue. I am not able to display with xform:output also

<xforms:group model="main-model">
-------------
----------- xforms:controls.......
--------
<xforms:action ev:event="xforms-value-changed">
<xforms:setvalue ref="instance('main-instance')/records/status">
<xsl:value-of select="instance('main-instance')/node1"/> and <xsl:value-of select="instance('main-instance')/node1"/>
</xforms:setvalue>
</xforms:group>

The problem I found is xforms:setvalue with value is working but not working if I use xsl:value-of inside the xforms:setvalue. Please suggest any solution. Here I am updating status node. It I update with fixed data it is taking if I use xsl:value-of nodes it is just inserting null at the specified node.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

formsPlayer is an XForms processor

formsPlayer is an XForms processor, and does not support XSL. Placing markup within the setvalue element causes that markup to be escaped and inserted into the target node as text.

If I understand you correctly, the effect that I suspect you are trying to achieve can be accomplished by the use of the XPath concat() function, thus.

<xf:setvalue
ref="instance('main-instance')/records/status"
value="concat(instance('main-instance')/node1,' and ', instance('main-instance')/node1)" />

Thanks

Than you Paul Butcher for your suggession

Subrahmanyam

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.