This is a proposal for solving the requested issue with current bind-variables.

This new function called xqxq:set-variable($query-key as xs:anyURI, $var-name 
as xs:QName, $value as xs:string*)

fulfills the requested feature of casting an xs:string to the corresponding 
type of a defined external variable.
To be able to create this function a new function to the DynamicContext API had 
to be added, the function is called getValueType which returns a string of the 
type a given variable QName.
And then bringing this function to the xqxq module with the name 

I am not sure about the name set-variable since is different from 
bind-variable. Would appreciate suggestions on how to name this new function.
Your team Zorba Coders is subscribed to branch lp:zorba.

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to