Oups,
Sorry for that. It's not the good thread.
Erik,
The code you're provided doesn't work.
The position() Xpath 2.0 function does not return the same result in a
repeat loop inside or outside a select1 control.
See my new attached example.(the label of the select1)
Marc
>This is due to the way XPath works. In this expression:
>instance('listes-simple')/liste[@id=instance('instance')/choix[position
>()]/@value]/item
>a new context is created once you use "[...]", so position applies to
the position within that context, which is by default 1.
>Maybe you can try something like this (XPath 2.0):
>for $position in position() return
>instance('listes-simple')/liste[@id=instance('instance')/choix[$positio
>n]/@value]/item
-Erik
--
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--
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