|
i'm trying to update a node of my xforms instance with a code like this:
<forms:setvalue ref="instance('y')/data" value="xxforms:call-xpl('oxf:x.xpl','data',instance('x'),'data')"/> x.xpl seems to be running fine, but i get the text representation of its return into instance('y')/data. i'd need it in xml there. -- Tibor Veres [hidden email] -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
|
this is what works :)
<xforms:insert context="instance('y')/data" nodeset="new-root" origin="xxforms:call-xpl('oxf:x.xpl', 'data',instance('x'), 'data')"/> On 11/13/06, Tibor Veres <[hidden email]> wrote: > i'm trying to update a node of my xforms instance with a code like this: > > <forms:setvalue ref="instance('y')/data" > value="xxforms:call-xpl('oxf:x.xpl','data',instance('x'),'data')"/> > > x.xpl seems to be running fine, but i get the text representation of > its return into instance('y')/data. i'd need it in xml there. > > -- > Tibor Veres > [hidden email] > -- Tibor Veres [hidden email] -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
|
In reply to this post by Tibor Veres
Tibor,
If you need the XML representation why not do an xforms:submission? Or use @calculate on an xforms@bind. Xforms:setvalue will only set a text value, like xsl:value-of in XSLT Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Tibor Veres [mailto:[hidden email]] >Sent: 13 November 2006 16:01 >To: [hidden email] >Subject: [ops-users] xforms:setvalue vs xxforms:call-xpl > >i'm trying to update a node of my xforms instance with a code >like this: > ><forms:setvalue ref="instance('y')/data" >value="xxforms:call-xpl('oxf:x.xpl','data',instance('x'),'data')"/> > >x.xpl seems to be running fine, but i get the text >representation of its return into instance('y')/data. i'd need >it in xml there. > >-- >Tibor Veres > [hidden email] > > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
| Free forum by Nabble | Edit this page |
