Project

Profile

Help

Bug #5374

closed

TransformFromFile fails to create output file

Added by O'Neil Delpratt about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Category:
C++ API
Start date:
2022-03-07
Due date:
% Done:

100%

Estimated time:
Found in version:
11.2
Fixed in version:
11.3
Platforms:

Description

Reported by user here: https://stackoverflow.com/questions/71381858/saxonc-ee-11-2-transformfromfile-produces-empty-output/71383253#71383253

The following snippet of C++ code which uses transformFromFile fails to create output file:

SaxonProcessor* processor = new SaxonProcessor(false);
    processor->setcwd( Current Working Directory );
    Xslt30Processor* xslt = processor->newXslt30Processor();

    XdmNode* xmlfile = processor->parseXmlFromFile( Some Xml File );
    XsltExecutable* xslte = xslt->compileFromFile(Some Xsl File);
    xslte->setOutputFile(Output File);

    xslte->transformToFile(xmlfile); 

Please register to edit this issue

Also available in: Atom PDF