These functions are declared as taking an xs:string? as an argument. If
one is able to pass something like <a/> (which is not a string), then it
points to a bug elsewhere in the code, i.e., something should have
checked that the actual argument type doesn't match the declared
argument type -- right?  If so, that's not my code.

You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.

  json 2.0 bug: wrong behavior for parsing empty value

Status in Zorba - The XQuery Processor:

Bug description:
  Parsing an empty value has wrong behavior for both JSON mappings (Snelson and 
  Please see failing tests:
  - test/rbkt/zorba/json/json-snelson-empty-value
  - test/rbkt/zorba/json/json-jsonml-empty-value

  For instance in zorba/json/json-snelson-empty-value.xq:

  import module namespace json = 

  Should raise error(s)
  But instead Zorba returns a result.

  For test/rbkt/zorba/json/json-jsonml-empty-value.xq:

  import module namespace json = 
  let $options :=
      <json-format value="JsonML-array"/>

  Zorba returns
  instead of

To manage notifications about this bug go to:

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to