W3C home > Mailing lists > Public > www-forms@w3.org > July 2007

Re: XPath extension functions in XForms

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Tue, 17 Jul 2007 18:16:16 +0200
Message-ID: <469CEB50.60001@orbeon.com>
To: www-forms@w3.org

Elliotte Harold wrote:
 >
 > Do any of the existing XForms engines add their own vendor-sepcific
 > extension functions to XPath? That is, functions that are not standard
 > parts of XForms 1.0? if so, can anyone provide or point me to more
 > details about these functions?

Orbeon Forms supports several extension functions, documented here:

   http://www.orbeon.com/ops/doc/reference-xforms-2#xpath-extensions

Note that Orbeon Forms uses XPath 2.0, and comes with support for all
the XPath 2.0 functions.

 > Also, must such functions be namespaced and prefixed like XSLT
 > extension functions? Or can they be simple local names like
 > sin(). cos(), and tan()?

We chose to prefix them to avoid polluting the namespace. I think that
this is good practice in general. It also makes it clear that you are
using functions which may not work with other XForms processors.

-Erik

-- 
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/
Received on Tuesday, 17 July 2007 16:16:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:09 GMT