[MarkLogic Dev General] Functions with optional arguments

Tim Finney tjf2n at virginia.edu
Tue Dec 9 17:03:15 PST 2008


Dear All,

I notice that some of the built-in functions have optional arguments.
For example, both of these are OK:

xdmp:get-request-field("foo")
xdmp:get-request-field("foo", "bar")

How is this done? Is it just a matter of writing more than one function
definition, each with a different signature, or is there another way?

Best,

Tim Finney
XQuery programmer
UVa Press




More information about the General mailing list