RE: Auto-complete return value

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

RE: Auto-complete return value

Marc.Benimeli
Here is the missing attached document.

--
Marc


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

liste.xhtml (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Auto-complete return value

Erik Bruchez
Administrator
Marc,

 > Here is the missing attached document.

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[$position]/@value]/item

-Erik

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



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