Project

Profile

Help

Bug #6358

closed

exception not thrown for executable->transformToString() if source is null

Added by O'Neil Delpratt 2 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Category:
C++ API
Start date:
2024-02-22
Due date:
% Done:

100%

Estimated time:
Found in version:
12.4.2
Fixed in version:
Platforms:

Description

I have noticed in the following PHP code that the underlying exception is not thrown, but $result is just returned as NULL:

       $transformer = self::$saxonProc->newXslt30Processor();
        $foo_xml = "trax/xml/foo.xml";
        $executable = $transformer->compileFromAssociatedFile($foo_xml);
        $executable->setInitialMatchSelectionAsFile($foo_xml);
        $result = $executable->transformToString()

What is happening is the C++ transformToString is not throwing the exception found.

Actions #1

Updated by O'Neil Delpratt 2 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Bug fixed and committed to the repository

Please register to edit this issue

Also available in: Atom PDF