setvalue for multiple nodes

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

setvalue for multiple nodes

Libelah
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: setvalue for multiple nodes

Hank Ratzesberger
Hi Libelah,

On Apr 6, 2009, at 8:15 AM, Libelah wrote:

>
> Hi
>
> me again - i have another Question.
>
> Is it possible in any way to use the setValue for mutliple Nodes at  
> once? In
> my case all nodes with another node beeing 1 ?
> like:
> <xforms:setvalue ref="/items[./active = 1]/active2" value="1"/>
> setValue seems to take only the first node resulting of such a xPath
> expression... is there another way?
Apparently, no.  According to the spec. it requires single-node binding
to simple content.

http://www.w3.org/TR/xforms11/#action-setvalue

However, action elements can be made to iterate with the while  
attribute:

http://www.w3.org/TR/xforms11/#action-iterated

but I don't have any examples to provide.

Regards,
Hank


>
> I would be very glad if someone could give me a hint - Thank you  
> very much
> in advance.
> --
> View this message in context: http://www.nabble.com/setvalue-for- 
> multiple-nodes-tp22910869p22910869.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> 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
Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
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
Reply | Threaded
Open this post in threaded view
|

Re: setvalue for multiple nodes

Alexander Žaťko
In reply to this post by Libelah
Check this thread:

http://www.nabble.com/forum/ViewPost.jtp?post=8310013&framed=y

A.


On Apr 6, 2009, at 5:15 PM, Libelah wrote:

>
> Hi
>
> me again - i have another Question.
>
> Is it possible in any way to use the setValue for mutliple Nodes at  
> once? In
> my case all nodes with another node beeing 1 ?
> like:
> <xforms:setvalue ref="/items[./active = 1]/active2" value="1"/>
> setValue seems to take only the first node resulting of such a xPath
> expression... is there another way?
>
> I would be very glad if someone could give me a hint - Thank you  
> very much
> in advance.
> --
> View this message in context: http://www.nabble.com/setvalue-for-multiple-nodes-tp22910869p22910869.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> 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


--
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