Project

Profile

Help

Bug #2708

Exporting a literal map

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

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

100%

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

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

History

#1 Updated by Michael Kay almost 4 years ago

  • Description updated (diff)

#2 Updated by Michael Kay almost 4 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.

#3 Updated by O'Neil Delpratt almost 4 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.

#4 Updated by O'Neil Delpratt almost 4 years ago

  • Sprint/Milestone set to 9.7.0.5

#5 Updated by O'Neil Delpratt almost 3 years ago

  • Applies to branch trunk added
  • Applies to branch deleted (9.8)

#6 Updated by O'Neil Delpratt almost 3 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