Using user defined functions in xforms:bind

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

Using user defined functions in xforms:bind

Antoine.DE-TROOSTEMBERGH
Using user defined functions in xforms:bind

Hi,

Is it possible to use user defined functions in a bind.

Example:

<xforms:bind nodeset="myNode" constraint="myFunction(.)"/>

And where myFunction would be function containing something like

if(. castable as xs:integer and number(.) &gt; 5) then return true() else return false()


This would realy be helpfull.

Thx,

Antoine



--
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: Using user defined functions in xforms:bind

Erik Bruchez
Administrator
Antoine,

For XForms 1.2 or 2.0, we are thinking about introducing user-defined  
functions. XSTL 2.0 and XQuery 1.0 already support this, so we are  
getting some inspiration from these two languages.

We have started making a proposal there, but it is still very rough.  
Feedback is appreciated:

   http://www.w3.org/MarkUp/Forms/wiki/Custom_XPath_functions

-Erik

On Jun 19, 2008, at 6:54 AM, <Antoine.DE-
[hidden email]> <[hidden email]
 > wrote:

> Hi,
>
> Is it possible to use user defined functions in a bind.
>
> Example:
>
> <xforms:bind nodeset="myNode" constraint="myFunction(.)"/>
>
> And where myFunction would be function containing something like
>
> if(. castable as xs:integer and number(.) &gt; 5) then return true()  
> else return false()
>
>
> This would realy be helpfull.
>
> Thx,
>
> Antoine
>
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
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