Project

Profile

Help

Bug #4622

closed

Adaptive serializer fails when outputting a single attribute node

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
Serialization
Sprint/Milestone:
-
Start date:
2020-06-29
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
2
Fix Committed on JS Branch:
2
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

Got error

XError:Serialize called for an attribute node; code:SENR0001

when serializing a single attribute node using the adaptive output method.

Actions #1

Updated by Michael Kay over 3 years ago

While AdaptiveSerializer.processItems() has logic to handle attribute nodes directly, AdaptiveSerializer.serialize() doesn't use this; instead it invokes serItem(), which invokes serNode(), which fails on an attribute node.

Actions #2

Updated by Michael Kay over 3 years ago

  • Category set to Serialization
  • Status changed from New to Resolved
  • Priority changed from Low to Normal
  • Fix Committed on JS Branch 2.0 added

Fixed AdaptiveSerializer.serialize() to handle this case.

Actions #3

Updated by Community Admin about 3 years ago

  • Applies to JS Branch 2 added
  • Applies to JS Branch deleted (2.0)
Actions #4

Updated by Community Admin about 3 years ago

  • Fix Committed on JS Branch 2 added
  • Fix Committed on JS Branch deleted (2.0)
Actions #5

Updated by Debbie Lockett almost 3 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in JS Release set to Saxon-JS 2.1

Bug fix applied in the Saxon-JS 2.1 maintenance release.

Please register to edit this issue

Also available in: Atom PDF Tracking page