Re: [Xsltforms-support] User defined functions example
Brought to you by:
alain-couthures
From: Isidro V. V. <jv...@gm...> - 2013-10-07 22:28:08
|
Well, I think I found it myself. Looking inside xsltforms.js I found similar functions and it, apparently, does what we want XsltForms_xpathCoreFunctions['http://example.net/xforms/new-functions/ new-func'] = new XsltForms_xpathFunction( false, XsltForms_xpathFunction.DEFAULT_NONE, false, function() { return "NEW FUNC"; } ); On 10/07/2013 08:45 PM, Isidro Vila Verde wrote: > I am trying to run the example presented here > (http://en.wikibooks.org/wiki/XSLTForms/XSLTForms_only_Extensions#User-Defined_Functions) > but the browser complains about a syntax error and, when I open the > console, I see the error message: > > ReferenceError: XPathCoreFunctions is not defined > > Is that example updated to the current xsltforms version orhas anyone > tested it? > > Best regards > > Isidro > |