Project

Profile

Help

Bug #6360

closed

setOutputFile does not seem to work with transformToFile()

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

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

100%

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

Description

Writing to a file with setOutputFile does not seem to work with transformToFile()

In the following example the resultForTransformWithoutArgument.xml is not created and no exception is thrown:

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

Please register to edit this issue

Also available in: Atom PDF