Yes, I think function mapping is the most likely problem. Thanks for the link 
documentation link.

Maggie

From: Justin Makeig 
<[email protected]<mailto:[email protected]>>
Reply-To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Friday, August 21, 2015 12:54 PM
To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Subject: Re: [MarkLogic Dev General] Failure to enforce occurrence indicators 
in function signature

You're likely running into function mapping 
<http://docs.marklogic.com/guide/xquery/enhanced#id_55459>.

Justin


On Aug 21, 2015, at 9:44 AM, Hasegawa, Margarete 
<[email protected]<mailto:[email protected]>> wrote:

Hi,

Has anyone experienced an issue with MarkLogic failing to enforce occurrence 
indicators in function calls? For example, a function expects xs:string? 
(meaning that the function is expecting either the empty sequence or a single 
node), but instead accepts multiple values and does not fail. We've observed 
that instead of raising a syntax error, ML will sometimes give unpredictable 
behavior instead. Could this be a bug?

Many thanks!
Maggie

_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to