Project

Profile

Help

Support #1382

closed

Circular definition of variable

Added by Anonymous almost 20 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Internals
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Legacy ID:
sf-959402
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

SourceForge user: wcordewiner

I use Saxon 7.9.1 and appear to have a problem with

(cascaded) XQuery module imports. Attached a zip

file containing the query and module which

reproduces the problem. The query imports a module

(module1.xq) containing a variable declaration. That

module again imports a module (module2.xq) again

containing a variable declaration. When a execute

the query, I get an error "Circular definition of

variable m2:pi" but to my knowledge there are no

circular variable definitions.

Wouter Cordewiner


Files

Tester.zip (9.56 KB) Tester.zip Anonymous, 2004-05-24 12:25
Actions #1

Updated by Anonymous almost 20 years ago

SourceForge user: mhkay

Logged In: YES

user_id=251681

Thanks for reporting this. It turns out to be a rather nasty

error in the algorithm for allocating slot numbers to global

variables in XQuery - the two variables are being given the

same slot number (i.e. the same location in storage). I'm

working on it. It happens because global variables can be

imported into a module without being imported into the

top-level module.

Michael Kay

Please register to edit this issue

Also available in: Atom PDF