Actions
Bug #2708
closedExporting a literal map
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
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.
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.
Updated by O'Neil Delpratt over 7 years ago
- Applies to branch trunk added
- Applies to branch deleted (
9.8)
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
Actions