Project

Profile

Help

Bug #5307

closed

SENR0001 Cannot serialize a map using this output method

Added by O'Neil Delpratt over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
C++ API
Start date:
2022-02-11
Due date:
% Done:

100%

Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
11.1
Fixed in version:
11.3
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:

Description

Reported by user here: https://saxonica.plan.io/boards/4/topics/8524

The get_result_documents() is currently restricted to PyXdmNode objects. If user sets the raw result values flag then the following error occurs as a result of executing their stylesheet:

Error at char 6 in expression in xsl:sequence/@select on line 21 column 59
  SENR0001  Cannot serialize a map using this output method
  In template rule with match="item" on line 18 of
     invoked by xsl:apply-templates at #14
  In template rule with match="root" on line 12 of
     invoked by built-in template rule (shallow-copy)
  In template rule with match="/" on line 25 of
{'item-1.json': }

The API needs to accept a Map of (String, PyXdmValue).

Please register to edit this issue

Also available in: Atom PDF