Project

Profile

Help

Bug #5126

closed

SaxonCS: Cannot set character map in Saxon.Api.Serializer

Added by Michael Kay about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
.NET API
Sprint/Milestone:
-
Start date:
2021-10-13
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
11
Fix Committed on Branch:
11
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

In SaxonCS, Attempting to set a character map via the Serializer API doesn't work.

It should work like this, but this has no effect

                Serializer serializer = proc.NewSerializer();
                IDictionary<int, string> charMap = new Dictionary<int, string>();
                charMap.Add('e', "f");
                serializer.SetCharacterMap(new QName("", "m"), charMap);
                serializer.SetOutputProperty(new QName("use-character-maps"), "{}m");
                serializer.SetOutputProperty(new QName("method"), "xml");

Please register to edit this issue

Also available in: Atom PDF