Project

Profile

Help

Bug #5117

closed

Saxon-CS: enabling 4.0 extensions from XSLT command line

Added by Michael Kay over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Saxon extensions
Sprint/Milestone:
-
Start date:
2021-10-07
Due date:
% Done:

100%

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

Description

See https://saxonica.plan.io/boards/3/topics/8303

It's not clear whether it's possible to enable 4.0 extensions when running from the XSLT command line.

Actions #1

Updated by Michael Kay over 2 years ago

  • Status changed from New to In Progress

The documentation at https://www.saxonica.com/documentation11/index.html#!v4extensions suggests it should be enough to EITHER set the configuration option ALLOW_SYNTAX_EXTENSIONS (which can be done from the command line), or to set the XsltVersion property in the XsltCompiler object (which can only be done using the API).

In fact it seems only the latter works.

Actions #2

Updated by Michael Kay over 2 years ago

  • Status changed from In Progress to Resolved
  • Fix Committed on Branch trunk added

I've made it so that setting --enableSyntaxExtensions on the command line now works.

This was trickier than it appears; we have to make sure that setting enableSyntaxExtensions on the configuration updates the defaultXsltCompilerInfo to set the language version to 4.0.

Actions #3

Updated by O'Neil Delpratt over 2 years ago

  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 11.1 added
  • Platforms Java added

Bug fix applied in the Saxon 11.1 release.

Actions #4

Updated by O'Neil Delpratt over 2 years ago

  • Status changed from Resolved to Closed

Please register to edit this issue

Also available in: Atom PDF