[MarkLogic Dev General] Resolving error code QName in error:error

Danny Sokolsky Danny.Sokolsky at marklogic.com
Mon Aug 20 10:01:45 PDT 2012


Hi Florent,

You should be able to find them here:

http://docs.marklogic.com/5.0doc/docapp.xqy#display.xqy?fname=http://pubs/5.0doc/xml/xquery/namespaces.xml%2321104

The namespace URI is:

http://marklogic.com/xdmp/error

The schemas for these are located in the <marklogic-dir>/Config directory (for example, /opt/MarkLogic/Config on linux).

-Danny

-----Original Message-----
From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf Of Florent Georges
Sent: Monday, August 20, 2012 9:56 AM
To: MarkLogic General ML
Subject: [MarkLogic Dev General] Resolving error code QName in error:error

  Hi,

  When catching an error with MarkLogic's try/catch extension, the
error description document (an element error:error) contains the error
code in error:name.  It contains it as a serialized QName in content.
But the corresponding prefix is not bound in that document (so we
can't use fn:resolve-QName(), which is the idiomatic way to do it).

  How can I find the namespace URI of the error code stored in
error:name?

  Regards,

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


More information about the General mailing list