Subject:XQST0059 cannot locate the requested module error Author:Ignacio Hernández-Ros Date:11 Feb 2006 07:42 AM
Each time I try to execute an xquery that contains modules I receive this error.
The same XQuery can be executed with other products without that particular problem. (other products have problems at different stages of the same query)
The query and modules is to big to be included here so I include only the head of the starting query.
------------------
(:
(c) 2005 XBRL International. All Rights Reserved. http://www.XBRL.org/legal/
This document may be copied and furnished to others, and derivative works that
comment on or otherwise explain it or assist in its implementation may be
prepared, copied, published and distributed, in whole or in part, without
restriction of any kind, provided that the above copyright notice and this
paragraph are included on all such copies and derivative works. XBRL is a
registered trademark of AICPA licensed exclusively to XBRL International.
Circulation of this Internal Working Draft is restricted to members and participants
of XBRL International and is not appropriate to cite from other documents.
Recipients of this draft are invited to submit comments to the editors, and to submit
notification of any relevant patent rights of which they are aware and to provide
supporting documentation.
XII is not responsible of the consequences of the usage of this software.
:)
xquery version "1.0";
(:
Implementation notes:
* Read comments on each module
* This module navigates throw the conformance suite documents and send each one of the tests to validation
functions. The validation result is compared with the expected result and an xhtml page is created
to show the results.
:)
declare construction preserve;
declare copy-namespaces preserve, inherit;
Subject:XQST0059 cannot locate the requested module error Author:Ignacio Hernández-Ros Date:11 Feb 2006 08:00 AM
In the middle of the query there is this code:
-----------------------
for $uri in doc("xdt.xml")/testcases/testcase/@uri
let $test := doc($uri)
(: where not(starts-with($uri,"000-Schema-invalid/")) :)
return
-----------------------
It looks like the mapper window says that the file $uri cannot be opened.
Subject:XQST0059 cannot locate the requested module error Author:Minollo I. Date:11 Feb 2006 08:43 AM
About the "mapper problem"; are you switching to the mapper tab when the error you are mentioning is prompted? Mapper won't currently understand that syntax; if you don't need mapping, I would use the "XQuery Source" tab to manipulate this specific XQuery.
Or am I misunderstanding the context in which the error is being output?
Subject:XQST0059 cannot locate the requested module error Author:Ignacio Hernández-Ros Date:11 Feb 2006 06:54 PM
Thank you for your reply Minollo.
I don't need mapping but I cannot lauch the query (neither in Stylus Studio built-in module or in Saxon inside the editor) until I solve the problem with the mapping.
The queries can be launched outside Stilus studio but cnnot be executed step by step. Every time I try to launch the query using the editor a dialog appears saying that a module cannot be located and the only thing I see it is not correct is in the mapper (tab) that I don't need and I don't know how to get rid of it.
Subject:XQST0059 cannot locate the requested module error Author:Minollo I. Date:11 Feb 2006 08:39 AM
Assuming you are using/evaluating Stylus Studio Enterprise Edition, try switching to the Saxon 8.x processor (XQuery > Scenario Properties; select the Processor tab and choose Saxon 8.6.1). You should get better diagnostic about the error the internal processor is displaying.