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();
Actions #1

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 6 months ago

Revision c74a3faa | diff

Commit 006d925e O'Neil 2024-02-23 09:26:06+00:00: SaxonC bug fixes #6360, 6357 and others

Actions #2

Updated by O'Neil Delpratt 6 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.

Actions #3

Updated by Community Admin 6 months ago

  • Fix Committed on Branch 12 added

Please register to edit this issue

Also available in: Atom PDF