Probably bug in declare variable!

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Probably bug in declare variable!

Евгений-8
Hello!
I'm use next code:
-----------------------------------------------
xquery version "1.0";
declare namespace param="bla-bla-bla";
declare variable $param:param{"value-1"};
let $param:param:="value-2"
return $param:param
-----------------------------------------------
Result : "value-2".

It`s all right! But, if use xQuery module:
-----------------------------------------------
module namespace param="bla-bla-bla";
declare variable $param:param{"value-1"};
-----------------------------------------------
and next code:
-----------------------------------------------
xquery version "1.0";
import module namespace param="bla-bla-bla" at "bla-bla-bla-bla";
let $param:param:="value-2"
return $param:param
-----------------------------------------------
Result : "value-1".

This is bug?

Evgeny [hidden email]





-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: Probably bug in declare variable!

Jean-Baptiste Quenot-2
> -----------------------------------------------
> module namespace param="bla-bla-bla";
> declare variable $param:param{"value-1"};
> -----------------------------------------------
> and next code:
> -----------------------------------------------
> xquery version "1.0";
> import module namespace param="bla-bla-bla" at "bla-bla-bla-bla";
> let $param:param:="value-2"
> return $param:param
> -----------------------------------------------
> Result : "value-1".

Hello,

I also noticed that variables declared in modules are not taken
into account.  Is it a bug or a feature?  Anyone?
--
Jean-Baptiste Quenot
Systèmes d'Information
ANYWARE TECHNOLOGIES
Tel : +33 (0)5 61 00 52 90
Fax : +33 (0)5 61 00 51 46
http://www.anyware-tech.com/


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open