gimsieke/xspec

x:import does not transitively import xquery modules

Opened this issue · 0 comments

When one xspec document imports another xspec document testing a different 
xquery module than the one referenced from the /x:description of the base xspec 
document, that xquery module is not imported by the resulting test xquery.   

This was originally reported on the xspec mailing list: 
http://groups.google.com/group/xspec-users/browse_thread/thread/b4695fbb4b0fb3ea

I've attached the documents needed to reproduce the problem.  It's commented 
out as PROBLEM 2.  

(It could be argued that this *shouldn't* work, since it's the equivalent of 
testing private methods.  However, if we take the approach that x:import is for 
batch-testing related xqueries, then it should.  I tend to think that it should 
work.)

Original issue reported on code.google.com by jsulak@gmail.com on 18 Jun 2010 at 7:51

Attachments: