We conclude this chapter with a summary of the various XForms functions defined in this chapter; see Table 6.3. For each function, we give its argument type, return type, and a brief description.
Function
Argument
Return
Description
avg
node-set
number
Average
boolean-from-string
string
boolean
Type coercion
count-non-empty
Count nodes
days-from-date
Days in epoch
if
boolean, string, string
Conditional
index
Repeat index
instance
Locate instance
max
Maximum
min
Minimum
months
Months
now
Current time
property
Feature value
seconds
Seconds
seconds-from-dateTime