Tambet,
XForms 1.1 says that current() "Returns the context node used to
initialize the evaluation of the containing XPath expression".
When writing:
<setvalue ref="…" value="…"/>
the context in which the value expression evaluates is set by the @ref
attribute. So current() returns that, not the context within the
repeat.
-Erik
On Tue, Jul 12, 2011 at 1:48 AM, Tambet Matiisen
<
[hidden email]> wrote:
> Hi!
>
> Can anyone explain why current() function does not work in
> <xforms:setvalue>, but works in <xforms:output>? See attached example. When
> I replace current() with context() the example works as expected.
>
> Regards
> Tambet
>
>
> --
> 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