Add support for character maps in serializer

Bug #867042 reported by Gabriel Petrovay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
Medium
Matthias Brantner

Bug Description

Zorba serializer does not seem to support character maps.

Revision history for this message
Gabriel Petrovay (gabipetrovay) wrote :
Revision history for this message
Gabriel Petrovay (gabipetrovay) wrote :

Why is this marked as invalid?

The query below:

let $sp :=
  <serialization-parameters
      xmlns="http://www.w3.org/2010/xslt-xquery-serialization">
    <use-character-maps>
      <character-map character="#" map-string="123"/>
    </use-character-maps>
  </serialization-parameters>
return
  fn:serialize(<my>#abc</my>, $sp)

issues the result:

&lt;my&gt;#abc&lt;/my&gt;

Shouldn't this be:

&lt;my&gt;123abc&lt;/my&gt;

?

Changed in zorba:
status: Invalid → New
Revision history for this message
Gabriel Petrovay (gabipetrovay) wrote :

If the bug is still invalid, please clean up the code referencing it in parsing_and_serializing_impl.cpp

Chris Hillery (ceejatec)
tags: removed: serializer
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.