XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Ignacio Hernández-RosSubject: 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;

declare namespace conf = "http://xbrl.org/2005/conformance";
declare namespace sche = "http://www.xbrl.org/2005/genericXmlSchemaError";
declare namespace xfie = "http://www.xbrl.org/2005/function/instance/error";
declare namespace xbrldte = "http://xbrl.org/2005/xbrldt/errors";
declare namespace xbrldie = "http://xbrl.org/2005/xbrldi/errors";

import schema namespace xl = "http://www.xbrl.org/2003/XLink" at "http://www.xbrl.org/2003/xl-2003-12-31.xsd";
import schema namespace xlink = "http://www.w3.org/1999/xlink" at "http://www.xbrl.org/2003/xlink-2003-12-31.xsd";
import schema namespace link = "http://www.xbrl.org/2003/linkbase" at "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd";
import schema namespace xbrli = "http://www.xbrl.org/2003/instance" at "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd";

import schema namespace vt = "http://www.hernandez-ros.com/2005/XDT-ValidationTool" at "CheckTaxonomyElements.xsd";
(: import schema namespace tx = "http://www.xbrl.org/dim/conf/primary" at "lib/base/primary.xsd"; :)

import module namespace xfi = "http://www.xbrl.org/2005/function/instance" at "XBRL-XF-2006.xq";
import module namespace xbrlDChkTx = "http://www.hernandez-ros.com/xbrlfunctions/ChkDimTx" at "XBRLChkDimTx.xq";
import module namespace xbrlDChkInst = "http://www.hernandez-ros.com/xbrlfunctions/ChkDimInst" at "XBRLChkDimInst.xq";
import module namespace xbrlDChkLink = "http://www.hernandez-ros.com/xbrlfunctions/ChkDimLink" at "XBRLChkDimLink.xq";
import module namespace xbrlF = "http://www.hernandez-ros.com/xbrlfunctions/DTS" at "XBRLFunctions.xq";
import module namespace XBRLSeq = "http://www.hernandez-ros.com/xbrlfunctions/Sequences" at "Sequences.xq";
-------------

All modules are implemented in local files.

I receive no details about which module cannot be located.

Any ideas?

Cheers,
IHR

Postnext
Ignacio Hernández-RosSubject: 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.

I really don't want any kind of mapping.

How can I disable mapping?

Regards,
IHR

Postnext
Minollo I.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?

Thanks,
Minollo

Postnext
Ignacio Hernández-RosSubject: 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.

I'll continue investigating the problem.

Regards,
IHR

Postnext
Minollo I.Subject: XQST0059 cannot locate the requested module error
Author: Minollo I.
Date: 11 Feb 2006 09:18 PM
Ignacio,
thanks to your help we have been able to reproduce the problems you have reported. We are investigating and we'll keep you posted.

Thanks,
Minollo

Posttop
Minollo I.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.

Minollo

 
Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.