Hi,

This is weird, but the query below gives different results depending on if the 
function being applied is local or from another module. The default collation 
is "http://marklogic.com/collation/";.

xquery version "1.0-ml";
declare namespace test="test";

declare function local:get-options() 
{
  let $query := cts:element-range-query(xs:QName("foo"), "=", "bar")
  return cts:element-range-query-options($query)
};

xdmp:apply(xdmp:function(xs:QName("local:get-options"))),
xdmp:apply(xdmp:function(xs:QName("test:get-options"), "options.xqy"))


=> collation=http://marklogic.com/collation/
=> collation=http://marklogic.com/collation/codepoint


(: options.xqy :)
xquery version "1.0-ml";
module namespace test="test";

declare function local:get-options() 
{
  let $query := cts:element-range-query(xs:QName("foo"), "=", "bar")
  return cts:element-range-query-options($query)
};


Why does calling the function from another module set the wrong collation?

(should add I'm using 5.01)

Thanks
Rob
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to