The elftest() function

PRELIMINARY INFORMATION - SUBJECT TO CHANGE

Release 2.1 - ...

The elftest() extension function performs the "Elfproef" on the input. It can be used to validate BSN (Dutch SSN) and bank account numbers.

XML CopyCode image Copy Code
boolean exf:elfproef(string number, boolean invertLsd)

It returns true if the given number conforms to the elfproef.

Parameters:

  • number: The number to be validated
  • invertLsd: Opional. Invert the least significant digit. Set to true for BSN validation, which works slightly differently from bank account validation.

Namespace

This function is available within the Smartsite XForms namespace (http://smartsite.nl/namespaces/xforms/1.0).