RE: [XQuery]&[F&O] fn:error: function parameters

Hi Michael,
I am wondering whether you would really achieve the desired results.
>error("No input")
when you give an input in XQuery as fn:error("No Input")
At my end I am getting the exception thrown as 
javax.ejb.EJBException: System error: {err}XP0004: Invalid static type: {http://www.w3.org/2001/XMLSchema}string.

This is not as per you mention in your mail. What could be the reason for the difference in nature of error thrown? 

However I too agree that it would be much better to change the  'Unidentified Error' to  'User Error'. 

Regards,

Kanad. 




>A mischievous note: it is therefore an error to call the function with a
>single string argument, e.g.

>error("No input")

>But since it's implementation-defined what the error message for this error
>is, an implementation that outputs "Error: No input" would be entirely
>conformant...

Received on Thursday, 30 September 2004 15:36:17 UTC