Mmh, could something like this work:
<xf:repeat nodeset="foo">
<xf:setvalue ev:event="xforms-enabled" ref="@index"
value="count(../preceding-sibling::foo)"/>
This is not ideal but might work with 3.5.
Also you could do it with binds:
<xf:bind nodeset="foo/@index" calculate="count(../preceding-sibling::foo)"/>
-Erik
On Thu, Jan 13, 2011 at 1:40 AM, JohnBampton <
[hidden email]> wrote:
>
> I have a value that I want to store in the model. It's basically the loop
> counter of a xforms:repeat control.
> I can only use orbeon 3.5. So I can't use variables. I want to then use
> this value later inside another nested repeat. How do I do this? I tried
> xforms:setvalue but that seems to need a trigger and an action and can't be
> used alone. I have posted other topics that are similar in nature to this
> one. But no one seems to want to respond
> --
> View this message in context:
http://orbeon-forms-ops-users.24843.n4.nabble.com/Store-value-of-calculation-in-model-tp3215507p3215507.html> Sent from the Orbeon Forms (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