Project

Profile

Help

Feature #3571

closed

Have some equivalent of saxon:discard-document

Added by Pieter Masereeuw almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Low
Category:
-
Sprint/Milestone:
-
Start date:
2017-12-12
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

It would be nice to have some equivalent of saxon:discard-document() in Saxon-JS in order not to fill up the user's computer's memory.

Actions #1

Updated by Debbie Lockett over 6 years ago

  • Assignee set to Debbie Lockett
  • Applies to JS Branch 1.0, Trunk added

Added implementation for saxon:discard-document() in Saxon-JS (committed on 1.0 and 2.0 branches).

Note that the function is exported as a "javaCall" expression, which was not previously implemented in Saxon-JS. (Unlike saxon:timestamp(), which was exported as an "ifCall" expression.) But the expression is very similar to "ifCall", so it is easily implemented with similar code, to look for the relevant function in ExtraFn.js.

Added JS unit tests: saxonExt/discardDoc01 and discardDocErr01.

To do: add information to documentation.

Actions #2

Updated by Debbie Lockett over 6 years ago

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

Documentation updated: added subsection about available Saxon extensions in Conformance section (conformance/saxon-extensions); and note in development/source-documents.

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