Ghislain - it seems to work if you specify the option on the command line:
% zorba --option '{http://www.zorba-xquery.com/options/features}enable=common-language' -q 'jsoniq version "1.0"; { "foo" : "bar" }'
<.>:1,2: Zorba static warning [zwarn:ZWST0009]: feature not supported by the common language grammar: version declaration; raised at /home/ceej/zo/src/src/compiler/translator/translator.cpp:2495
{ "foo" : "bar" }
It kind of makes sense to me that declaring the option inside the query itself doesn't retro-actively jump back and ensure that you didn't do anything bad before the option itself was parsed.
Ghislain - it seems to work if you specify the option on the command line:
% zorba --option '{http:// www.zorba- xquery. com/options/ features}enable= common- language' -q 'jsoniq version "1.0"; { "foo" : "bar" }' zo/src/ src/compiler/ translator/ translator. cpp:2495
<.>:1,2: Zorba static warning [zwarn:ZWST0009]: feature not supported by the common language grammar: version declaration; raised at /home/ceej/
{ "foo" : "bar" }
It kind of makes sense to me that declaring the option inside the query itself doesn't retro-actively jump back and ensure that you didn't do anything bad before the option itself was parsed.