Project

Profile

Help

Bug #3502

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

Added by Debbie Lockett 9 months ago. Updated 2 months ago.

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

100%

Applies to JS Branch:
1.0, Trunk
Fix Committed on JS Branch:
1.0, Trunk
Fixed in JS Release:
SEF Generated with:
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.

History

#1 Updated by Debbie Lockett 9 months ago

  • Status changed from New to In Progress

Fix committed on 1.0 and trunk:

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

#2 Updated by Debbie Lockett 9 months ago

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

Documentation updated.

#3 Updated by Debbie Lockett 2 months 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