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

Eval in context

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Wed, 05 Feb 2020 12:43:41 +0100
To: " XForms" <public-xformsusers@w3.org>
Message-ID: <op.0fiiu3gpsmjzpq@steven-xps13>
Many functions have a variable number of parameters for special cases.

For instance,

valid()
valid(item*)
valid(item*, boolean)
valid(item*, boolean, boolean)


and

string  serialize(item*)
string  serialize(item*, $params)

(and others).

And yet we have:

item()*  eval(string)
  Evaluates the string as an expression in the current context.

item()*  eval-in-context(string, node()*)
  Evaluates the string as an expression in the given context.

Is there a reason for this?

Steven
Received on Wednesday, 5 February 2020 11:43:48 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 5 February 2020 11:43:48 UTC