Project

Profile

Help

Bug #3739

closed

Allow ixsl:set-property with the empty sequence as the @select expression

Added by Debbie Lockett almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
XSLT export
Sprint/Milestone:
-
Start date:
2018-04-06
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.7, 9.8, trunk
Fix Committed on Branch:
9.7, 9.8, trunk
Fixed in Maintenance Release:
Platforms:

Description

It should be possible to use ixsl:set-property to set a property of a JS object to null, by supplying the empty sequence as the @select expression. However this is not allowed at compile time.

Raised as Saxon-JS bug #3738, but track compile time code changes here.

Actions #1

Updated by Debbie Lockett almost 6 years ago

  • Status changed from New to Resolved
  • Fix Committed on Branch 9.7, 9.8, trunk added

Similarly, allow ixsl:set-style/@select to be an empty sequence (so type is optional string rather than single string). Note that setting a style property to null is the same as setting to the empty string, but I think it makes sense to maintain the alignment with ixsl:set-property.

JS unit tests ixsl/setProperty03 and ixsl/setStyle10 added.

Changes committed in IXSLFunctionSet on 9.8 and trunk branches; and IxslFunctionLibrary on 9.7 branch.

Actions #2

Updated by O'Neil Delpratt almost 6 years ago

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

Bug fix applied in the Saxon 9.8.0.12 maintenance release.

Please register to edit this issue

Also available in: Atom PDF