Bugs item #2807105, was opened at 2009-06-16 13:03
Message generated for change (Tracker Item Submitted) made by yingying
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2807105&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PF/compiler
Group: Pathfinder "stable"
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ying Zhang (yingying)
Assigned to: Nobody/Anonymous (nobody)
Summary: misleading error msg for fn:resolve-QName

Initial Comment:
Hi all, I think the following error message is a bit misleading:

$ echo 'fn:resolve-QName("foo:test", <a xmlns:foo="bar"/>)' | pf
error in function application: at (1,1-1,50): wrong number of arguments for 
function `fn:resolve-QName' (expected 1, got 2)

because the query itself is correct (according to the standard), and the error 
is actually caused by that pathfinder implements a different signature than the 
standard one.
So I have two suggestions:
- change the error message into:  reference to undefined function 
`fn:resolve-QName', which makes the code and the documentation 
(http://monetdb.cwi.nl/projects/monetdb/XQuery/Documentation/QName-Functions.html)
 matching each other
- since pathfinder supports a 'resolve-QName' function, with different 
signature, maybe we should consider using the prefix 'pf', instead of 'fn'?

Regards,

Jennie

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2807105&group_id=56967

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to