Regarding the initial report: It turns out that this works as expected if module.xq has an explicit "xquery version" declaration. Since that is clearly a best practice anyway, I'm lowering the priority of this bug. However, as far as is I know "xquery version "3.0";" is supposed to be the default in Zorba, so it should behave identically whether or not it is there.
Should this be assigned to Nicolae as a parser problem, or are there spec issues?
Regarding the initial report: It turns out that this works as expected if module.xq has an explicit "xquery version" declaration. Since that is clearly a best practice anyway, I'm lowering the priority of this bug. However, as far as is I know "xquery version "3.0";" is supposed to be the default in Zorba, so it should behave identically whether or not it is there.
Should this be assigned to Nicolae as a parser problem, or are there spec issues?