Which XQuery processor is this ?
This looks like it should work.  Is it possible you are calling the function in 
several places and this is not the instance where it is failing ?


----------------------------------------
David A. Lee
[email protected]<mailto:[email protected]>
http://www.xmlsh.org

From: [email protected] [mailto:[email protected]] On Behalf Of 
Kunal Chauhan
Sent: Monday, May 27, 2013 11:17 AM
To: [email protected]
Subject: [xquery-talk] Type 'element(*, xs:untyped)' cannot be cast to type 
'xs:QName'.

Hi,
I am trying to pass QName to function as an argument, at that time I am getting 
following error.

Static type error. Type 'element(*, xs:untyped)' cannot be cast to type 
'xs:QName'.
Below is XQuery function calling
tryToPassQname($ele ,  QName('http://www.myCompany.com/20120831','location') )

Below is a function signature :
tryToPassQname($item as node(), $qname as xs:QName) as xs:QName )

can any one tell me what's going on wrong over here ?
Thanks and Regards,
--
Kunal Chauhan
[email protected]<mailto:[email protected]>
[+918655517141]
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to