Project

Profile

Help

Bug #2708

closed

Exporting a literal map

Added by Michael Kay over 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XSLT export
Sprint/Milestone:
Start date:
2016-04-13
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.7, trunk
Fix Committed on Branch:
9.7, trunk
Fixed in Maintenance Release:
Platforms:

Description

It is possible to export a stylesheet containing a constant map; however, such a stylesheet cannot be imported.

This does not happen when a map is written literally as, for example

<xsl:sequence select="map{'a':5, 'b':6}"/>

because such a map is exported as a sequence of calls on internal functions whose effect is to recreate the map.

It does happen, however, when the map is expressed by a call on parse-json() with a literal argument, for example

<xsl:variable name="json">{'a':5, 'b':6}</xsl:variable>
<xsl:sequence select="parse-json($json)"/>

Attempting to load this stylesheet produces the message

SXPK0002: Cannot load expression with tag map

Actions #1

Updated by Michael Kay over 8 years ago

  • Description updated (diff)
Actions #2

Updated by Michael Kay over 8 years ago

  • Status changed from New to Resolved
  • Applies to branch 9.8 added
  • Fix Committed on Branch 9.7, 9.8 added

Patch committed on the 9.7 and 9.8 branches.

Actions #3

Updated by O'Neil Delpratt over 8 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 9.7.0.5 added

Bug fix applied in the Saxon 9.7.0.5 maintenance release.

Actions #4

Updated by O'Neil Delpratt over 8 years ago

  • Sprint/Milestone set to 9.7.0.5
Actions #5

Updated by O'Neil Delpratt over 7 years ago

  • Applies to branch trunk added
  • Applies to branch deleted (9.8)
Actions #6

Updated by O'Neil Delpratt over 7 years ago

  • Fix Committed on Branch trunk added
  • Fix Committed on Branch deleted (9.8)

Please register to edit this issue

Also available in: Atom PDF