text serialization with jsoniq fails

Bug #1034990 reported by Dennis Knochenwefel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Matthias Brantner

Bug Description

example query:
------------------------
  import schema namespace output = "http://www.w3.org/2010/xslt-xquery-serialization";

  serialize( { "message": "test" },
    <output:serialization-parameters>
      <output:encoding value="UTF-8"/>
      <output:method value="text"/>
    </output:serialization-parameters>)
----------------------

returns:

   "getNodeKind" not implemented for item type "jdm:object"; raised
   at /home/pilot/pilot/zorba/src/store/naive/item.cpp:1055

http://www.zorba-xquery.com/html/jsoniq#c+PMIaIoODyKpXfuQwfhzK4z+l8=

Tags: jsoniq

Related branches

Till Westmann (tillw)
tags: added: jsoniq
Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

The problem is that the text serializer is not able to deal with JSON items.
We need to change the spec saying that it's an error if the text serialization encounters a JSON item.
After the spec was changed, this needs to be implemented.
Also, for usability, we need to make sure that

- fn:trace serialization should use the hybrid serialization method
- the default serialization method is hybrid

Changed in zorba:
assignee: Ghislain Fourny (gislenius) → Matthias Brantner (matthias-brantner)
milestone: none → 2.7
Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

The serialization defaults are now tracked by bug: https://bugs.launchpad.net/zorba/+bug/1048751

Changed in zorba:
status: New → In Progress
importance: Undecided → High
Changed in zorba:
status: In Progress → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.