Sorry, I meant:
declare namespace zerr = "http://zorba.io/modules/zorba-errors";
A full query is:
(: ----- CUT HERE ----- :)
declare namespace err = "http://www.w3.org/2005/xqt-errors";
declare namespace zerr = "http://zorba.io/modules/zorba-errors";
import module namespace jx = "http://zorba.io/modules/json-xml";
let $src := '{
"score" : 248 "misplaced"
}'
return
try {
jx:json-to-xml($src)
}
catch * {
{
"code": $err:code,
"description": $err:description,
"module": $err:module,
"line-number": $err:line-number,
"column-number": $err:column-number,
"line-number-end": $zerr:line-number-end,
"column-number-end": $zerr:column-number-end
}
}
--
https://code.launchpad.net/~paul-lucas/zorba/pjl-misc/+merge/174785
Your team Zorba Coders is subscribed to branch lp:zorba.
--
Mailing list: https://launchpad.net/~zorba-coders
Post to : [email protected]
Unsubscribe : https://launchpad.net/~zorba-coders
More help : https://help.launchpad.net/ListHelp