Project

Profile

Help

Bug #6360

closed

setOutputFile does not seem to work with transformToFile()

Added by O'Neil Delpratt 10 months ago. Updated 6 months ago.

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

100%

Estimated time:
Applies to branch:
Fix Committed on Branch:
12
Fixed in Maintenance Release:
Found in version:
12.4.2
Fixed in version:
12.5
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:

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