declare function local:say-hello-1($x)
{
"Hello, " || $x || "!"
};
declare function local:say-hello-2($x as string)
{
"Hello, " || $x || "!"
};
declare function local:say-hello-3($x as string)
as string
{
"Hello, " || $x || "!"
};
local:say-hello-1("Mister Spock"),
local:say-hello-2("Mister Spock"),
local:say-hello-3("Mister Spock")
"Hello, Mister Spock!" "Hello, Mister Spock!" "Hello, Mister Spock!"
declare function local:say-hello($x as string)
{
"Hello, " || $x || "!"
};
local:say-hello(1)
xs:integer can not be promoted to parameter type xs:string of function local:say-hello()