XPath constraint to an other model instance

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

XPath constraint to an other model instance

Vancheri, Alessandro

Is it possible having an XPath expression in the constraint attribute of a bind expression, referencing an instance element defined in another model of the same application?

 

I have to check about the unique constrain of a value.

 

Many thanks.

 

Alessandro

 



--
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
Reply | Threaded
Open this post in threaded view
|

Re: XPath constraint to an other model instance

Alessandro Vernet
Administrator
Alessandro,

On Jan 16, 2008 10:34 AM, Vancheri, Alessandro
<[hidden email]> wrote:
> Is it possible having an XPath expression in the constraint attribute of a
> bind expression, referencing an instance element defined in another model of
> the same application?

With instance(), you can only access instances declared in the current
model. This is what the XForms specification mandates; don't ask me
why :). But we provide an alternate function which lets you access any
instance: xxforms:instance(). It works like instance: you don't need
to specify the model, since you are not allowed to use the same
instance ID even in different models. More on this function (an other
extension functions) at:
http://www.orbeon.com/ops/doc/reference-xforms-2#ops-extensions.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.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