[XQZone General] variable scope problem

Ciano.William ciano.william at ensco.com
Mon Jul 18 13:55:39 PDT 2005


Can someone tell me why I would get this error from the following code?


XDMP-UNDVAR: Undefined variable $g-server
in /test/default.xqy, on line 6


(: constants.xqy :)
module "http://www.w3.org/2003/05/xpath-functions"
define variable $g-server  { "myserver" }

(: lib.xqy :)
module "http://www.w3.org/2003/05/xpath-functions"
default element namespace = "http://www.w3.org/1999/xhtml"
import module "http://www.w3.org/2003/05/xpath-functions" at "constants.xqy"

(: default.xqy :)
default element namespace="http://www.w3.org/1999/xhtml"
import module "http://www.w3.org/2003/05/xpath-functions" at "lib.xqy"

<html>
<body>
{$g-server}
</body>
</html>

The information contained in this email message is intended only for the use of the individuals to whom it is addressed and may contain information that is privileged and sensitive. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by email at the above referenced address. Thank you.



More information about the General mailing list