qexo-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qexo-general] Globals


From: Seshukumar Venkata Adiraju
Subject: [Qexo-general] Globals
Date: Tue, 15 Apr 2003 17:42:52 +0530

Is there any way I can bind some global constants before executing a xquery?

 

I’m having a query template as a xml file.

I want to run the xml with some parameters,

 

For example

let $var1 := “value1”

return

<html>

<body>

 ………

……

…..

</body>

</html>

 

For me the value of the variable is actually a variable. I want to be able to bind this before running the xquery,

I tried Environment.addBinding(“var1”, “value1”),

Before executing the xquery,

 

On doing this I get successfully bound message when I bind it.

Then when I’m executing the xml file using the same instance of XQuery class

I get en error saying var1 is not bound.

 

What do I do?

 

 

Seshu Kumar Adiraju

SETLabs, Infosys Technologies Limited

 

  In all chaos there is a cosmos,           
   in all disorder a secret order."             
                    --  Carl Jung          

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]