Comment 2 for bug 867042

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;

?