Actions
Bug #6360
closedsetOutputFile does not seem to work with transformToFile()
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();
Updated by O'Neil Delpratt 10 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
.
Added by Norman Tovey-Walsh 5 months ago
Updated by O'Neil Delpratt 5 months ago
- Status changed from Resolved to Closed
- Fixed in version set to 12.5
Bug fix applied in the Saxon 12.5 Maintenance release.
Please register to edit this issue
Actions
Commit 006d925e O'Neil 2024-02-23 09:26:06+00:00: SaxonC bug fixes #6360, 6357 and others