Project

Profile

Help

Bug #5823

closed

The implemented fn:slice function signature differs from the Saxonica docs and the specification

Added by Philip Fearon over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2023-01-16
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

Using the attached XSLT 4.0 - with extensions enabled - with SaxonJ 12.0 PE:

When running the attached XSLT (test.xsl) from the command-line against itself I get the following error:

Error in xsl:variable/@select on line 9 column 76 of test.xsl:
  XPTY0004  The required item type of the second argument of fn:slice() is map(*)
Errors were reported during stylesheet compilation
Further tests showed that fn:slice must have 2 arguments: item()* and map(*) - the Saxon 12 documentation (and the spec) however indicate 4 arguments can be supplied - with the last 3 optional: 

fn:slice($input as item()*, $start as xs:integer?, $end as xs:integer?, $step as xs:integer?) as item()*

Files

test.xsl (489 Bytes) test.xsl simple repro Philip Fearon, 2023-01-16 16:33

Please register to edit this issue

Also available in: Atom PDF