Comment 3 for bug 1064978

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

Think of it like this:

if the user already mentioned that the type of the external variable is let's say xs:integer :

Query:
[...]
declare variable $ext as xs:integer external := 0;
[...]

And then it needs to bind the value 2, why can't he use a function signature where the passed value is automatically casted to the needed type? Why does XQXQ needs the user to mention again the type of the variable?

I mean if that is not hard to do, it would help the user, don't you think?