Actions
Bug #5823
closedThe implemented fn:slice function signature differs from the Saxonica docs and the specification
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
Please register to edit this issue
Actions