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
Grégory LegalSubject: import de modules
Author: Grégory Legal
Date: 17 Jan 2005 05:18 AM
hi, i've got a problem with Stylus Studio.
I have created an XQuery file that I want to declare like a module. So
i've write :

<-- XQuery module : " bibo.xquery " -->

module namespace bibo = "bibo";

declare function bibo:Somme2($a, $b)
{
let $s := $a + $b
return $s
};
<--------------------------------------->

and other XQuery file which call the first :

<-- XQuery File : " Test.xquery " -->

import module namespace bibo = "bibo" at "file://C:\GregData\test\bibo.xquery";
let $ent1 := 1
let $ent2 := 2
let $res := bibo:Somme2($ent1, $ent2)
return <resultat>{ $res }</resultat>

<------------------------------------>

But when I start debugging i have the next error :

" the module at file://C:\GregData\test\bibo.xquery is not a module "

I don't understand why it can consider it like a module.
How can I resolve this problem.
Someone could help me please, thanks.



Postnext
Alberto MassariSubject: import de modules
Author: Alberto Massari
Date: 17 Jan 2005 05:36 AM
Hi Gregory,
I have tried your query and module with Stylus 6.1 and they work for me;
but I had to remove those "<-- XQuery module : ... -->" strings from both
files, as they are invalid statements.
If you really have them in your files (that is, if you didn't write them
just in this message to separate them), please change them to be start
with "(:" and end with ":)"

Hope this helps,
Alberto

Postnext
Grégory LegalSubject: import de modules
Author: Grégory Legal
Date: 17 Jan 2005 06:09 AM
hi Alberto,

Those both strings, " <-- Xquery ... --> " , are'nt present in my code.
But on my computer, this code don't want run, it doesn't work !!
It don't consider my XQuery file as a module !
It's really crazy !!

But I wonder if another application can make troubles on stylus studio ??

If you have any ideas to resolve this problem, cause i can't achieve
my program without to use modules ( idon't want declare my functions in the main
Query).

thank you very much.

Postnext
Alberto MassariSubject: import de modules
Author: Alberto Massari
Date: 17 Jan 2005 10:51 AM
Hi Gregory,
you didn't answer to my question re the version of Stylus you are using.
If you are not using the latest version (either 6.0.212i or 6.1.287d),
could you try upgdating your copy of Stylus?

Thanks,
Alberto

Postnext
Alberto MassariSubject: import de modules
Author: Alberto Massari
Date: 17 Jan 2005 02:35 PM
>Hi Gregory,
>you didn't answer to my question re the version of Stylus you are using.

Sorry for the statement; I was pretty sure I had asked you which version
you were using, as I was able to run the query fine. But I just realized
I didn't, so I beg your pardon for my statement.

Alberto

Postnext
Grégory LegalSubject: import de modules
Author: Grégory Legal
Date: 18 Jan 2005 02:33 AM
hi alberto,

I grant your pardon but it's nothing. You are right, i have forgot to say
you what is the version of stylus I'm using.
I'm working with stylus 6 release 1; Framework version : 6.0, build 212e.
But another person who have the same version, succeeded to run my program.
I dont know where his my problem ?!?

If you have any idea...

Thanks.
Best Regards.

Posttop
Grégory LegalSubject: import de modules
Author: Grégory Legal
Date: 18 Jan 2005 04:55 AM
I have succeeded to run my program.
In Fact, it was the version of stylus.
I have change for stylus version 6 release 2, and it's ok !!!!
Thanks for your help.

 
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.