W3C home > Mailing lists > Public > public-xformsusers@w3.org > February 2020

Functions with optional first parameter

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Wed, 05 Feb 2020 12:55:32 +0100
To: " XForms" <public-xformsusers@w3.org>
Message-ID: <op.0fijeu0esmjzpq@steven-xps13>
A small number of functions have an optional first parameter, where if it  
is absent, the context item is used:

boolean  is-card-number(string?)
boolean  valid(item*?)
boolean  relevant(item*?)
boolean  readonly(item*?)
boolean  required(item*?)

Is there reasoning behind this, rather than requiring (valid(.), for  

Received on Wednesday, 5 February 2020 11:55:38 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 5 February 2020 11:55:39 UTC