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 over 6 years ago. Updated almost 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.

Please register to edit this issue

Also available in: Atom PDF Tracking page