Project

Profile

Help

Bug #5656

closed

XDM array is not converted to a true JS array?

Added by Martynas Jusevicius almost 2 years ago. Updated 8 days ago.

Status:
Resolved
Priority:
Normal
Category:
IXSL extensions
Sprint/Milestone:
Start date:
2022-08-22
Due date:
% Done:

0%

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

Description

According to XDM to JavaScript Conversion array(*) should be converted to a JS array.

However this code:

<xsl:variable name="array" select="[ 'a' ]" as="array(*)"/>
<xsl:sequence select="ixsl:call($array, 'push', [ 'b' ])"/>

gives error:

ixsl:call: object method 'push' not found

Same error for this code (note that @as is absent here):

<xsl:variable name="array" select="js:Array([ 'a' ])"/>
<xsl:sequence select="ixsl:call($array, 'push', [ 'b' ])"/>

Related issues

Related to SaxonJS - Bug #4815: Conversion of XDM maps to JS objectsResolvedDebbie Lockett2020-10-30

Actions

Please register to edit this issue

Also available in: Atom PDF Tracking page