Actions
Bug #6360
closedsetOutputFile does not seem to work with transformToFile()
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();
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 repository. The real problem here is how the source document is supplied. In the example above we set the sources as setInitialMatchSelectionAsFile
. We failed to pass this as the source in the internals of transformToFile
.
Please register to edit this issue
Actions