Actually, this is XQuery 3.0 syntax. 

XQuery 1.0 gives you no way to define a default value for an external variable 
(a crazy omission).

You clearly have an expectation that the default value for an external variable 
should be an empty sequence. You may regard that as intuitive, but it's not 
what the spec says.

Michael Kay
Saxonica


On 19 Jun 2013, at 07:34, Kunal Chauhan wrote:

> Thanks David, Thanks for your quick response.
> It's works.
> can you tell me logic behind this ?
> 
> 
> On Wed, Jun 19, 2013 at 11:44 AM, David Lee <[email protected]> wrote:
> try
> 
>  
> 
> declare variable $a external := ();
> 
>  
> 
>  
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to