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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
- XQuery Help and Discussion (2017)
-> + Issue with Processing Instruct... (2)
-> + problem converting json to XML... (2)
-> + Problem base64 decoding string... (3)
-> + Problems posting multipart for... (5)
-> + trouble with download of price... (2)
-> + Problem with http-post not bei... (3)
-> + path problem, xps_file:writeAl... (9)
-> + Xquery update support? (2)
-> + problem with Stylus studio try... (5)
-> + adding dtd reference to xml ou... (4)
-> + xquery escaping ambarsand when... (3)
-> + Whitespace problem when return... (5)
-> + Problem with namespace prefix ... (5)
-> - Sending via SFTP returns unexp... (1)
-> + Query and Sftp clent (4)
-> + xquery and try - catch (3)
-> + Query + ddtek:http-post optio... (5)
-> + Example files referenced in do... (3)
-> + Automatic Error Detection and ... (3)
-> + Working with result of ddtek:h... (2)
-- [1-20] [21-40] [41-60] Next
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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
(Deleted User) Subject: import de modules
Author: (Deleted User)
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
(Deleted User) Subject: import de modules
Author: (Deleted User)
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
(Deleted User) Subject: import de modules
Author: (Deleted User)
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.

   
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.