Extension functions

Release 2.0 - ...

LikeĀ XForms implementations from other vendors, the Smartsite XForms implementationĀ supports various extension functions.

exforms namespace

The extension functions available within the exforms namespace (http://www.exforms.org/exf/1-0) are:

  • relevant()
  • readonly()
  • required()

Smartsite namespace

The extension functions available within the Smartsite namespace (http://smartsite.nl/namespaces/xforms/1.0) are:

  • valid()
  • union()
  • context()
  • sort()
  • filterbyproperty()
  • label()
  • alert()
  • hint()
  • help()
  • elftest()
  • validateiban()
  • schema-valid()
  • constraint-valid()
  • required-valid()
  • istouched()
  • string-format()
  • string-ifempty()
  • string-indexof()
  • string-lastindexof()
  • string-pad()
  • string-repeat()
  • string-enclose()
  • string-urlencode()
  • string-urldecode()
  • string-htmlencode()
  • string-htmldecode()
  • string-htmlattributeencode()
  • loadurl()

For convenience, all the extension functions from the exforms namespace are also available within the Smartsite namespace.

Topics