Project

Profile

Help

Bug #5997

closed

XSLT version for fn:transform

Added by Michael Kay about 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2023-04-26
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

It's not clear how to invoke a 4.0 stylesheet using fn:transform.

Generally, we've been changing the code to do what the documentation says: to run XSLT 4.0, you have to request it in the invocation API; it's not enough to request it in the xsl:stylesheet/@version.

This is slightly at odds with the fn:transform specification, which suggests that if no specific version is requested in the fn:transfom options, then xsl:stylesheet/@version is used. However it think it makes sense to require a very explicit request at this stage of 4.0 development, given that lots of change in the spec can still be expected.

So I'm changing fn:transform to align with the Java/C# API. To use 4.0 capabilities in the called stylesheet, you must (a) have 4.0 enabled in the calling stylesheet, and (b) request `xslt-version="4.0" in the fn:transform options.

Actions #1

Updated by Michael Kay 12 months ago

  • Status changed from New to Resolved
  • Applies to branch 12, trunk added
  • Fix Committed on Branch 12, trunk added
  • Platforms .NET, Java added

Fixed in the 12.x and main branches.

Actions #2

Updated by O'Neil Delpratt 12 months ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 12.2 added

Bug fix applied in the Saxon 12.2 maintenance release

Please register to edit this issue

Also available in: Atom PDF