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.
-- 
https://code.launchpad.net/~zorba-coders/zorba/new-jsoniq/+merge/162375
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to