Mike,
On Wed, May 7, 2008 at 10:40 AM, Park, Michael <
Michael_Park_1@...> wrote:
> Thanks. Maybe I'm missing something else then. I swapped out the
> following as you recommended. The second select1 list for all nodes
> changes to whatever index you are currently at:
>
> nodeset="for $pos in index('repeat') return
>
> instance('genre-select')/genre[@auth =
> instance('genres')/info[$pos]/@authority]"
>
> for
>
> nodeset="instance('genre-select')/genre[@auth =
> instance('genres')/info[xxforms:index('repeat')]/@authority]"
My apologies! xxforms:index('some-repeat-id') returns the current
index for the repeat you specify, which is not what we want here. We
don't want to know what the current select row is in the UI, but what
the current position is. So you were right to use position(), but it
was just not working because of the context change. What you can do
here is to declare a variable right after the <xforms:repeat> that
contains the current position, and use it later in your nodeset
expression. I have updated your example with this; you'll find it
attached.
Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog:
http://www.orbeon.com/blog/Personal Blog:
http://avernet.blogspot.com/Twitter -
http://twitter.com/avernet --
You receive this message as a subscriber of the
ops-users@... mailing list.
To unsubscribe: mailto:
ops-users-unsubscribe@...
For general help: mailto:
sympa@...?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws