Bug #5997
closedXSLT version for fn:transform
100%
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.
Updated by Michael Kay over 1 year 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.
Updated by O'Neil Delpratt over 1 year 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