Project

Profile

Help

Bug #2708

Updated by Michael Kay over 8 years ago

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 

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

 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 

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

 Attempting to load this stylesheet produces the message 

 *SXPK0002: Cannot load expression with tag map*

Back