Hi,

  With the following URL resolver module, I get the expected 404:

    xquery version "3.0";
    'does-not-exist'

  But with the following:

    xquery version "3.0";
    ''

I get the following misleading error (it is a string, but empty):

    XDMP-RETURNTYPE: /.../url-rewriter.xq returned which is not of
    type string

  And with the following:

    xquery version "3.0";
    ()

I get the following misleading error (it is not a string this time):

    XDMP-RETURNTYPE: /.../url-rewriter.xq returned empty string
    which is not of type a non-empty string value

  In addition, I couldn't find in the Dev Guide how a URL rewriter
module can tell MarkLogic "you know what?, I cannot rewrite that
URL, please resolve it yourself the usual way."  I would have
expected that returning the empty sequence does exactly that (but
from above it is obvious it is not the case).  Is there any other
way?

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to