Project

Profile

Help

Bug #3502

closed

ixsl:source() does not correctly return an empty sequence when there is no global context item

Added by Debbie Lockett about 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
2017-10-27
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
1.0, Trunk
Fix Committed on JS Branch:
1.0, Trunk
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

Similar to https://saxonica.plan.io/issues/3500, if no source document is supplied for the transformation, then ixsl:source() does not return an empty sequence (e.g. a test of exists(ixsl:source()) returns true when it should be false).

Note that the documentation needs to be updated, as it currently says nothing about this case of having no global context item, as allowed in XSLT 3.0.

JS unit test ixsl/source01 added.

Actions #1

Updated by Debbie Lockett about 7 years ago

  • Status changed from New to In Progress

Fix committed on 1.0 and trunk:

Return Iter.Empty when context.fixed.globalContextItem === null.

Actions #2

Updated by Debbie Lockett about 7 years ago

  • Status changed from In Progress to Resolved
  • Fix Committed on JS Branch 1.0, Trunk added

Documentation updated.

Actions #3

Updated by Debbie Lockett over 6 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in JS Release set to Saxon-JS 1.1.0

Bug fix applied in the Saxon-JS 1.1.0 maintenance release.

Please register to edit this issue

Also available in: Atom PDF Tracking page